Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform in method

vallamuthu_madheswaran2
Active Contributor
0 Kudos

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.

8 REPLIES 8

venkateswaran_k
Active Contributor
0 Kudos

Can you please attach the portion of code, where how you call the smartform

Sandra_Rossi
Active Contributor
0 Kudos

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.

former_member1716
Active Contributor

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!

Sandra_Rossi
Active Contributor
0 Kudos

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.

Sandra_Rossi
Active Contributor
0 Kudos

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"?

venkateswaran_k
Active Contributor
0 Kudos

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

vallamuthu_madheswaran2
Active Contributor
0 Kudos

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.

venkateswaran_k
Active Contributor

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