‎2006 Aug 08 4:05 PM
Hi.
My requirement is that in a SAP-SCRIPT, I have a list of say 5 items on first page, 10 items on subsequent pages and in the last page , I want to display a single item always along with the footer details.
Please tell me what piece of code to write and where to write?
Thanks
‎2006 Aug 08 4:09 PM
My understanding is that you need to print one item per page.
Create a new text element NEW-PAGE in main window.
After each item print in driver program, call this element which will trigger new page. In this way each item will be displayed in new page.
‎2006 Aug 08 4:09 PM
Issue NEW-PAGE command from print program using CONTROL_FORM function module after each line in the loop.
or
add /: NEW-PAGE after the item variables in the sapscript MAIN window
Regards
Sridhar
Message was edited by: Sridhar K
‎2006 Aug 08 4:28 PM
Hi subash,
Print Footer notes only on the last page
Command to used in your sapscripts :-
/: IF &NEXTPAGE& EQ 0
whatever footer you want.
/: ENDIF
regards,
keerthi.
‎2006 Aug 08 4:52 PM
hi,
In the script, declare a text element in the main window and write the record value. and trigger the command NEW PAGE.
In the driver program, while looping at the internal table, call this text element (declared in the script) for every loop pass.
Regards,
Richa