Application Development 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: 

New-page

Former Member
0 Kudos

Hi,

For Every new document number a new-page has to be

generated in scripts and also the changed Document number has to be displayed in new-page

How to do this?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

In ur driver program use the statment AT NEW 'Doc.No'

loop at it.

at new docno.

Call function 'Start_form'.

Call function 'write_form'.

Call function 'end_form'.

endat.

endloop.

hope it will useful.

4 REPLIES 4

Former Member
0 Kudos

Hi,

To display a new page use the field &sapscript-formpages& in your program...

Regards,

Bhumika

Former Member
0 Kudos

Hi,

/E FlightInfo   < Text Element >

< declare a variable DocNo >

/: IF DocNo ne &fs_vbap-vbeln&.   < This will compare with the previous Document Number. If it is not same then New page triggers >

/:   New-page.                

/:  Else.

*   &fs_vbap-vbeln&

*  DocNo =  &fs_vbap-vbeln&

/: Endif.

Regards,

Swapna.

Former Member
0 Kudos

Hi,

In ur driver program use the statment AT NEW 'Doc.No'

loop at it.

at new docno.

Call function 'Start_form'.

Call function 'write_form'.

Call function 'end_form'.

endat.

endloop.

hope it will useful.

Former Member
0 Kudos

In the loop of document

display data in the Main Window

after that call element New-Page to display every document in the mainwindow or place all the data related to a document in the main window so that for every document new page will get trigger .

to get the page number display page number in the footer window. using script variable &SAPSCRIPT-FORMPAGES&