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

How trigger next page in SAP SCRIPT?

aaruljothi
Participant
0 Likes
4,534

Hi Experts,

I have an SAP Script form with two pages and 5 windows common to both the page. From a report program i call the form elements. I have an internal table containing the records that should be displayed. In one page only one record should be displayed. For the next record i should trigger the next page from the program. Can anyone tell how to do that?.

Arul Jothi.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,634

Please refer to the following:

New-page <page name>: Prints the text following this command on a new page (when a page name is specified then that page is taken as the next page)

Good luck.

Please close the issue with appropriate points, if it helps.

Venu

Hi Experts,

I have an SAP Script form with two pages and 5 windows common to both the page. From a report program i call the form elements. I have an internal table containing the records that should be displayed. In one page only one record should be displayed. For the next record i should trigger the next page from the program. Can anyone tell how to do that?.

Arul Jothi.

5 REPLIES 5
Read only

Former Member
0 Likes
1,635

Please refer to the following:

New-page <page name>: Prints the text following this command on a new page (when a page name is specified then that page is taken as the next page)

Good luck.

Please close the issue with appropriate points, if it helps.

Venu

Read only

Former Member
0 Likes
1,634

Hi Arul,

Use New-page <page name>. This will trigger the new page for the script.

Thanks

Kathirvel

Read only

Former Member
0 Likes
1,634

Hi Arul.

Please use

Create a text element in a Wnidow and call that element in your report program.

In form Under this text elemet define

/: new-page = 'PAGE NAME' like 'NEXT' etc..

Read only

Former Member
0 Likes
1,634

Hai,

In any of your windows (preferably main) make an element (say NEW).In this element write NEW-PAGE as a command line. After each item you can call this element and the next page will be triggered.All subsequent printing will go to the next page and so on.

Regards

Binoo

Read only

Former Member
0 Likes
1,634

Hi,

In the program you can call the function module 'CONTROL_FORM' with command NEW-PAGE based on the condition what you want. It triggers page break automatically.

I hope it solves your problem

Cheers

Rajavardhana Reddy