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

Dynamic header in Sapscript

Former Member
0 Likes
362


Hi ,

I am currently working on sapscript. My requirement is to display Inbound deliver note using Script. In it a single Inbound delivery note can have multiple handling units. Data corresponding to a particular HU should be displayed on same page and also the HU number for it should be displayed on Header along with barcode. When second HU number is encountered page break should trigger and same process should be repeated.

I am unable to display HU Number in header correctly as only last HU Number is always pickedd and displayed in header along with barcode. Also due to page break page numbers are not displayed correctly in header. Every page is displayed as page 1.

Please suggest as how to get Hu number and page number correctly for every page of single Inbound delivery note.

1 REPLY 1
Read only

VijayCR
Active Contributor
0 Likes
312

Hello,

Inside of SAPSCRIPT (Transaction SE71) use the control command NEW-PAGE. (Control Commands are identified by typing /: in the format column).

Inside the Print Program (Transaction SE38) use Function Module CONTROL_FORM to call the command NEW-PAGE:

Thanks,

Vijay