cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Script

kesavadas_thekkillath
Active Contributor
0 Kudos

Im printing a 'MAIN' Part in a sap script..

The data will be of many rows..

Actually the main body fits only for 7 rows..

After 7 rows the data must get printed on the next page ( ie..the next 7 rows and so on)

How to do this ???

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

adjust the main window and make sure only 7items fit into that ..if u have more items then they automatically goes into second page..

regards

Former Member
0 Kudos

Hi,

you surely must be having a driver programme for this scriot. All the data that you wish to print would be included in an internal table, i guess.. so loop the internal table and in the loop call the FM Write_form and call the Main Window, and wrie ur data in there. I think this should work.

Thanks

Nayan

kesavadas_thekkillath
Active Contributor
0 Kudos

This is the same i have done..

But for ex : the 8 and 9 record are overwriting the 1 and 2 printed earlier..

Former Member
0 Kudos

dont do anything, SAP-SCRIPT will habdle this totally alone.

once the "to be printed" data will not fit in the main window sap-script will do a pagebreak.

It will do some more even but you dont have to take care about that

kesavadas_thekkillath
Active Contributor
0 Kudos

But its not happening here...

The 8 and 9 record are over writing 1 and 2.

Former Member
0 Kudos

ähm has your SAP-SCRIPT a second page?

e.G. a first and a next?

Former Member
0 Kudos

u give a counter, after 7 trigger control command with new-page