By
Published: 22 Feb 2007
In the Smart Forms driver program in select-options, I can select a range of purchase order numbers. Now where do I write a loop condition so that I can print a single purchase order per page?
There are many ways to accomplish your goal. For instance, you could put the loop in your print program itself, wrapped around the successive calls to the Smart Form, passing in the changed document information each time.
However, if I understand your requirement correctly, I would recommend that you write your print program to produce a single PO at a time and leverage 'wrapper' transaction ME9F (PO message output) to handle the looping for you. One of the benefits of this approach is that it ensures the message control table NAST gets updated properly when output is issued for each individual PO.
Dig Deeper on SAPscript and Smart Forms
An SAP user is working with an SAPscript form to create the form development for an Invoice List, and wants to know if it's possible to migrate the ...
Continue Reading
An SAP user is looking to fix an error with a packing slip print-out in an SAP Smart Form.
Continue Reading
An SAP user is trying to align a barcode in the center of a defined window on an SAP Smart Form.
Continue Reading