10-01-2008 2:49 PM
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
10-01-2008 2:53 PM
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
10-01-2008 2:53 PM
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.
10-01-2008 3:00 PM
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.