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 - Pagebreak

Former Member
0 Likes
546

Hi Friends,

(1) I am new to ABAP.I have created a purchase order using sapscript form. In the main window of the first page i want to display only 5-6 lines, after that remaining lines should be display in the subsequent page.

(2) If the purchase order contains only 5-6 item numbers, then all the data's should be displayed in the main window of the first page and below the main window i have created a window for "terms and conditions".So here both "main" and "terms and condition" windows should be displayed in the first page itself.

If Purchase order contains more than 6 lines then the remaining rows in the main window should be displayed in the next page and "terms and condition" window should not display in the first page, it should be displayed in the second page after the completion of data in the Main window.

Plz do the needful.

Thanks in Advance.

1 ACCEPTED SOLUTION
Read only

dani_mn
Active Contributor
0 Likes
522

HI,

you should set the size of the main window as that it should have the area to display onlu 5-6 items so it will automatically go to next page after displaying 5-6 items.

for terms and condition to display in last page only.

you can write IF ENDIF in your sapscript like this.

IF &NEXTPAGE& EQ ''

*write your terms and comments.

ENDIF

Regards,

HRA

Hi Friends,

(1) I am new to ABAP.I have created a purchase order using sapscript form. In the main window of the first page i want to display only 5-6 lines, after that remaining lines should be display in the subsequent page.

(2) If the purchase order contains only 5-6 item numbers, then all the data's should be displayed in the main window of the first page and below the main window i have created a window for "terms and conditions".So here both "main" and "terms and condition" windows should be displayed in the first page itself.

If Purchase order contains more than 6 lines then the remaining rows in the main window should be displayed in the next page and "terms and condition" window should not display in the first page, it should be displayed in the second page after the completion of data in the Main window.

Plz do the needful.

Thanks in Advance.

2 REPLIES 2
Read only

dani_mn
Active Contributor
0 Likes
523

HI,

you should set the size of the main window as that it should have the area to display onlu 5-6 items so it will automatically go to next page after displaying 5-6 items.

for terms and condition to display in last page only.

you can write IF ENDIF in your sapscript like this.

IF &NEXTPAGE& EQ ''

*write your terms and comments.

ENDIF

Regards,

HRA

Read only

Former Member
0 Likes
522

Hi !!!

Thank you very much for ur kind response.