03-24-2020 5:25 AM
Hi Friends,
I am calling a smart form in a class method. print preview is working in method but the spool is not generated.
I have copied the same coding program(SE38). Here spool is generated.
Can we call smart form in methods?
Thanks with Regards,
Vallamuthu M.
03-24-2020 5:53 AM
Can you please attach the portion of code, where how you call the smartform
03-24-2020 8:37 AM
There's absolutely no objection to "call smart form in methods", that will run exactly the same as if you call it from anywhere else.
03-24-2020 9:22 AM
vallamuthu.madheswaran2,
There is no difference between Calling smart form in method and program.
Am confused from your query. Are you expecting a spool when Print preview is given?
Are you trying same operation in both ways?
Hope you have called the respective method in the program? Can you explain the issue in detail on how you have coded for the same?
Regards!
03-24-2020 10:52 AM
Please don't post as an ANSWER. Please EDIT your question to add additional information (possible as long as nobody adds an answer). Or use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.
03-24-2020 10:55 AM
How did you check that the spool is not generated? SP01? Did you make sure to check all spools generated this day?
Did you make sure by debug that the smart form is "called"?
03-24-2020 11:55 AM
Dear Vallamuthu
Based on your code, there should not be any problem. As Sandra mentioned, did you check the spool thouroughly.
If so, Please check the User parameter - (for the user who executes) - the following check box is enabled ?
If this is enabled, the spool item would have been deleted..
Find and update us
PS: Like this you already had one question on smartform - Is that same samrtform you are asking about. You never responded to that. PLease remember to close the thread if you have solultion - it will be helpful for others
Regards,
Venkat
03-24-2020 12:45 PM
Hi Friends,
I have commented tdimmed and added tdnewid. Inside the loop, After callinng the form I have cleared the tdnewid, so all pages(line items) comes under single spool request.
* ls_out_opt-tdimmed = 'X'.
ls_out_opt-tdnewid = 'X'.
Thanks with Regards,
Vallamuthu M.
03-24-2020 12:49 PM
You mean, the issue is resolved now?
Please update the solution as Answer and close the thread.
Also, Please note that you have one more question on the smartform - Is that the same one ?
Please also update that question also if you have solution and close the thread
Closing the thread with Solution marked will help others to see the solution if they have similar issues.
Thanks for understanding
Venkat