Application Development and Automation 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: 
Read only

Creating multiple smartform under the same spool.

Former Member
0 Likes
985

Hi all,

I have a requirement where I need to call the smartform inside a loop.

The forms are getting generated in different spools but I need it under the same spool number.

Please help me if you have any idea regarding this.

I have set tdnewid as X when it loops for the first time and clearing it during the 2nd loop.But this is not helping the cause.

Helpful answers will be rewarded.

Thanks in advance,

sandeep

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
556

Try with clearing the receiver of the spool.

Like:


      CLEAR LS_PARAM-TDRECEIVER.

      CALL FUNCTION LF_FM_NAME
           EXPORTING
                      OUTPUT_OPTIONS       = LS_PARAM
....

Regards,

Naimesh Patel

Read only

valter_oliveira
Active Contributor
0 Likes
556

Use TDNEWID as you did (is correct). Then, set tdimmed = space (not immidiate print) for the first N-1 lines, and tdimmed = 'X' in the last one.

Also, tdcovtitle must be the same for all pages.

Regards,

Valter Oliveira.

Read only

Former Member
0 Likes
556

Are any of the other ITCPO values changing between forms? I'm not sure which ones need to be identical to append the spool jobs but I expect it's a inconsistancy in ITCPO values between the forms that is the problem.