‎2007 Jul 18 2:13 PM
Hi,
I need to create different boxes in the sapscript. The place to create the boxes are in the main window.
for eg. there needs to be a line item box and as the line items finishes there has to a separate box for other texts.
How do i identify where the line items are to be finished in the layout (ie where in first page, at which line or does it go top the 2nd page) after that a box has to put for the other text.
Appreciate your ideas.
Thanks,
Stock
‎2007 Jul 18 2:20 PM
Hi,
go to following link :
http://sapmaterial.com/sap_scripts.html
Reward points if helpful
Regards
Srikanta Gope
‎2007 Jul 18 2:31 PM
Hi,
I think you need to use dynamic box.define a variable in the print program and increase its value in the loop you are using to write the form.As the line items will get printed the boxes will print also.
If you need more clearification describe your scenario in detail.
Regards,
Vivek
‎2007 Jul 18 2:34 PM
See the below commands i used to design box in SAP Script
IF &PAGE& EQ '1'.
BOX FRAME 10 TW
POSITION WINDOW
BOX WIDTH '74' CH HEIGHT '3.1' LN FRAME 10 TW I
POSITION XORIGIN '3.0' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '5.0' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '7.2' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '8.3' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '9.5' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '12.0' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '14.5' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
POSITION XORIGIN '17.0' CM
BOX WIDTH 0 CM HEIGHT '34.5' LN FRAME 10 TW
ENDIF.
IF &PAGE& NE '1'.
POSITION WINDOW
BOX WIDTH '74' CH HEIGHT '36.5' LN FRAME 10 TW
POSITION WINDOW
BOX WIDTH '74' CH HEIGHT '3.1' LN FRAME 10 TW INTENSITY 10
POSITION XORIGIN '0.9' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '3.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '5.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '7.2' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '8.3' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '9.5' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '12.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '14.5' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '17.0' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
POSITION XORIGIN '19.7' CM
BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW
ENDIF
Thanks
Seshu