Problem solve Get help with specific problems with your technologies, process and projects.

How do I print a single purchase order per page?

Expert Mark Smithson suggests means by which a programmer might have a Smart Form print a single purchase order per page in SAP.

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