Printing multiple line items in a box for a purchase order
What could cause a box command to print line items only once instead of multiple times? Expert Mark Smithson surmises the answer.
ITEM_LINE_3F_PRICE(Text element)
BOX XPOS '0.0' CM YPOS '1.0' CM WIDTH '1.5' CM HEIGHT 2 CM FRAME 10 TW
BOX XPOS '1.5' CM YPOS '1.0' CM WIDTH '2.5' CM HEIGHT 1 CM FRAME 10 TW
BOX XPOS '4.0' CM YPOS '1.0' CM WIDTH '3.0' CM HEIGHT 1 CM FRAME 10 TW
BOX XPOS '7.0' CM YPOS '1.0' CM WIDTH '3.0' CM HEIGHT 1 CM FRAME 10 TW
BOX XPOS '10.0' CM YPOS '1.0' CM WIDTH '3.0' CM HEIGHT 1 CM FRAME 10 TW
BOX XPOS '13.0' CM YPOS '1.0' CM WIDTH '1.8' CM HEIGHT 1 CM FRAME 10 TW
BOX XPOS '14.8' CM YPOS '1.0' CM WIDTH '1.5' CM HEIGHT 1 CM FRAME 10 TW
BOX XPOS '16.3' CM YPOS '1.0' CM WIDTH '3.0' CM HEIGHT 1 CM FRAME 10 TW
&EKPO-EBELP& &EKPO-EMATN& &EKPO-TXZ01& &EKET-EINDT& &EKET-UZEIT& &EKPO-MENGE& &EKPO-MEINS& &EKPO-KONNR&&EKPO-KTPNR&
That being said, if you are determined to draw dynamic boxes in the MAIN window, take a look at SAP-provided print program 'PSFC_OBJECT_LIST' and SAPscript form 'PSFC_PRINT_LAY'. Here the print program tracks precisely where each text element begins and ends so that it can accomplish this, but it requires a rigidly built form. I'll leave it to you to decide whether the trade-off in design flexibility is worth it.