cancel
Showing results for 
Search instead for 
Did you mean: 

Printing of Boxes dynamically in main window

Former Member
0 Kudos

Is it possible to provide some conditions in SAPScript (form) to add boxes depending on the presence of different number of document numbers?i.e if there are 10 document numbers 10 boxes to be provided.Can this be handled in Main window of the script?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can hnadle this,

You need to write a perform in the Script. and get the No of records which are printed in the main window according to that maintain 2 variables in that whcih we use the window size in the layout.

in the Main windoe element, write as

BOX WIDTH '1.2' CM HEIGHT <b>&HEIGHT&</b> CM FRAME 10 TW

BOX WIDTH '9.5' CM HEIGHT &HEIGHT& CM FRAME 10 TW

BOX WIDTH '11.5' CM HEIGHT &HEIGHT& CM FRAME 10 TW

BOX WIDTH '13.5' CM HEIGHT &HEIGHT& CM FRAME 10 TW

BOX WIDTH '15.9' CM HEIGHT &HEIGHT& CM FRAME 10 TW

BOX WIDTH '19.1' CM HEIGHT &HEIGHT& CM FRAME 10 TW

Height field should be in the TOP of the Driver program , i mean it should be a global field. and maintain this Height according to your requirment.

Former Member
0 Kudos

Thanks a lot.

Regards,

Savitha

Answers (0)