Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Purchase Order Output Types

Former Member
0 Kudos

Hi,

My requirement is that clients needs different header in Purchase Order Printout based on Plant. Means for each Plant we need a particular Header in Purchase Order.

I have found that for Purchase Order, Standard Output Type NEU is there and we attach either the standard Layout 'MEDRUCK' or custom layout to it.

Now I am thinking of making multiple Custom Layout(Copies of MEDRUCK). And also making a separate Output type for each Plant. then I will attach the appropraite Layout to each Output Type created.

1. My Question is can we create multiple Output Types?

2. And also attach multiple Output Types to a PO. And select any one(based on the need) at the time of Printing?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Nitin,

1) You can create multiple output types for a purchase order and each output type will have different layout names when use assign outtypes through transaction NACE.

2)Yes,You can select a particular output type for a PO.

Just specify a parameter in your driver program which will accept output type(KSCHL).

I recommends you not to create multiple layouts based on each plant. Try to create a Pagewindow in your layout which can hold PO header data.Based on your plant you can pass values through text elements to Pagewindow.You can simply write code for this in your driver program.

Note:Plz award points if is is helpful

Thanks,

Vinay

7 REPLIES 7

Former Member
0 Kudos

Hi Nitin,

Sure you can, but that is not a good solution for your problem. It is by fas easier to just copy the standard form and create multiple headers (one for each plant) and just print the header you want during runtime based on the plant. In this way you will have only one form, regardsless the number of plants.

Regards,

John.

0 Kudos

hi

in ur print program check for the plant

if plant eq 'A'.

open_form 'form1'.

elseif plant eq 'B'.

open_form 'Formb'.

else.

endif.

reward points if it helps

Regards

Gunjan

0 Kudos

Hi Gunjan,

Could you please clarify on where exactly to inset the code you have sent.

I am seeing the Driver Program as 'SAPFM06P' in which the Form Routine is 'ENTRY_NEU' for Print output. This form Rourine is using to FM 'ME_READ_PO_FOR_PRINTING' - for reading thr PO Data.

and Other 'ME_PRINT_PO' for Printing the PO.

Now where do you want me to insert the code(in program 'SAPFM06P' or in suboruitne 'ENTRY_NEU' or in FM 'ME_READ_PO_FOR_PRINTING').

If anyone knows please reply as it will solve my problem.

Former Member
0 Kudos

Hi Nitin,

1) You can create multiple output types for a purchase order and each output type will have different layout names when use assign outtypes through transaction NACE.

2)Yes,You can select a particular output type for a PO.

Just specify a parameter in your driver program which will accept output type(KSCHL).

I recommends you not to create multiple layouts based on each plant. Try to create a Pagewindow in your layout which can hold PO header data.Based on your plant you can pass values through text elements to Pagewindow.You can simply write code for this in your driver program.

Note:Plz award points if is is helpful

Thanks,

Vinay

0 Kudos

Hi,

Could you please clarify on where exactly to inset the code you have sent.

I am seeing the Driver Program as 'SAPFM06P' in which the Form Routine is 'ENTRY_NEU' for Print output. This form Rourine is using to FM 'ME_READ_PO_FOR_PRINTING' - for reading thr PO Data.

and Other 'ME_PRINT_PO' for Printing the PO.

Now where do you want me to insert the code(in program 'SAPFM06P' or in suboruitne 'ENTRY_NEU' or in FM 'ME_READ_PO_FOR_PRINTING').

If anyone knows please reply as it will solve my problem.

0 Kudos

Hi Nitin ,

Have you solved it? Could you kindly post an example that I can use as template if any available and provide short description step by step solution?

Thank you in advance,

Yutah

0 Kudos

Hi Nitin,

if you have soled it than pleaes let us know. Same issue I am facing.