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

SAPScripts

Former Member
0 Likes
971

Hi ALL,

I developed a SAPscript program and form and attached them to the PO in NACE transaction. When I try to print from ME22 my program is not been called and some other program is been called which starts with SAP..Could u help me in this please...

Thanks

Vinod

8 REPLIES 8
Read only

Former Member
0 Likes
925

Hi

See the message type is loaded in the document and check if it's the same message you have inserted by NACE.

Max

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
925

The standard PO print program is SAPFM06P. This then calls ME_PO_PRINT which is a function module of group MEDRUCK. If you are using a custom version of the function module, meaning that you copied function group MEDRUCK into ZMEDRUCK you need to coy SAPFM06P into SAPF<b>Z</b>M06P. Then you need to change the call from ME_PRINT_PO to ZME_PRINT_PO. In you config, you need to tell it to use SAPF<b>Z</b>M06P instead of SAPFM06P.

Regards,

Rich Heilman

Read only

0 Likes
925

Hey Rich,

I have already customized the progra to ZSAPFM06 and the form to Z_MEDRUCK_PO_CAD.Is this not the correct path..

Thanks And Regards

Vicky

Read only

0 Likes
925

If you were following naming conventions, then you would have named it as SAPF<b>Z</b>M06P. Anyway, in your custom program, you must make sure that it is calling your function module instead of the ME_PRINT_PO. Check in the include FM06PE02, the form entry_neu.

Regards,

Rich Heilman

Read only

0 Likes
925

Hey Rich,

I just need to add some fields to item deails so i have customized it to ZSAPFM06 and appended some code in write_form function module and changed the form name to Z_MEDRUCK_PO_CAD. So do i still need to change the ME_PRINT_PO. If so what change do i need to make.

Thanks And Regards

Vinod

Read only

0 Likes
925

You changed the code in the WRITE_FORM function module?

Regards,

Rich Heilman

Read only

0 Likes
925

yes

Read only

0 Likes
925

Noooooooooooooooooo! This function module is used in every sapscript print program in the entire system. There is no need to change this function module nor should you. Revert your changes immmediately. Please email me at the address on my business card and I can walk you thru the process(with screenshots).

Regards,

Rich Heilman