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

SAP-SCRIPT Changes

Former Member
0 Likes
565

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

4 REPLIES 4
Read only

Former Member
0 Likes
534

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.

Read only

sridhar_k1
Active Contributor
0 Likes
534

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

Read only

Former Member
0 Likes
534

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.

Read only

Former Member
0 Likes
534

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