Application Development and Automation 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: 
Read only

PO Printing

Former Member
0 Likes
432

I have made Customizes SAP Script for PO Printing as per the Company's standard. For this I have made th Z Txn. ever time the user has to run that Z Txn and then get the printout of the PO,

in ME23N there is one button Print Preview how can i assingn my SAP Script to that Programme so that the user can view th PO Print Preview there itself without going into the Z Txn.

abhishek

I have made Customizes SAP Script for PO Printing as per the Company's standard. For this I have made th Z Txn. ever time the user has to run that Z Txn and then get the printout of the PO,

in ME23N there is one button Print Preview how can i assingn my SAP Script to that Programme so that the user can view th PO Print Preview there itself without going into the Z Txn.

abhishek

2 REPLIES 2
Read only

Former Member
0 Likes
409

Hi,

If you wants to execute the Script from the Std t Code (like ME23N), there is no need to you to assign a Z transaction for the program.

In the NACE transaction, select the Application, go to output type NEU and against that Change the Print Program SAPFM06P to your Z program and assign the Z form/Smartform what you have changed in the palce of MEDRUCK.

once you assign the program and Form( custom made) here, by default they get triggered from the Std t Codes.

reward if useful

regards,

Anji

Read only

Former Member
0 Likes
409

Hi Abhishek,

For using the functionality associated with the print preview from ME23N you would need to attach the form to a suitable output type. The standard output type configured for scripts is NEU and the form attached is MEDRUCK.

What you would need to do is goto transaction NACE, chose application EF (for POs) and goto output types then select NEU output type and double click on processing routines. Then goto medium of output 1 and change the name of the script to yours.

Then once in your PO, goto header -> messages and configure (add your output type with medium 1 manually). Once done, you should be able to che ck the print preview.

I would suggest you copy MEDRUCK and make modifications in that for a garuanteed result.

Regards,

Aditya