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.

This was last published in February 2007

Dig Deeper on SAPscript and Smart Forms

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.