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

Triggerring SAP Script page dynamically

Former Member
0 Likes
383

Hi

I have 3 pages,and 2 pages has main window.

last page is independent to these 2 pages and it has only one window(not main window)

My question is i need to trigger that last page after 2nd page.

I did like

IF &NEXTPAGE& EQ 0

&NEWPAGE& = 'LAST'

ENDIF.

I have designed two pages which has main windows and in third page I get the terms and conditions

I am printing the Purchase order I have to print last page has terms and conditions. The problem is if i have one line item it should print in first page and then the next page should have terms and conditions and if line items exceeds more than two pages it has to print all line items and then terms and conditions has to print

Your help will be highly appreciated.

Thanks in advance

3 REPLIES 3
Read only

Former Member
0 Likes
350

U can handle that via your print pgm.

print header.

loop at itab.

print item details.

endloop.

print terms&conditions.

If you follow the above it would print as you require.

Read only

0 Likes
350

i cannot make any changes in the print program. I need to do changes in the SAP SCRIPT form only

Read only

Former Member
0 Likes
350

Hello,

U can try like this.

IF &NEXTPAGE& EQ 0

NEW-PAGE last

endif.

Please check and let me know.

regards