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

print program script

former_member206396
Active Participant
0 Likes
645

hai SDNs,

for purchase order, standard print program is : SAPFM06P.. and it is also

configured in NACE with corresponding form. now my doughtis , i have to copy that print program

and make some changes...

but in my case.. write-form is not there in "SAPFM06P" it is in some other program..

"SAPLMEDRUCK".. so eventhough in nace, "SAPFM06P" is configured. internally again this program

calling "SAPLMEDRUCK".(this is function pool program)

i have to copy "SAPLMEDRUCK". to z<prog>. how to link my prog to sapfm06p. so this program internally

should call my function pool.

how to do this? could any one help me out..!

thaning you,

4 REPLIES 4
Read only

Former Member
0 Likes
555

Hi,

Check whether there is any 'Call Customer Function' Command in the Function Module. If there is any then you can write you program in it.

Regards,

Prashanth

Read only

Former Member
0 Likes
555

hi rama ,

u have to copy <b>SAPFM06P</b> not MEDRUCK.

Regards

prabhu

Read only

Former Member
0 Likes
555

Hi Rama,

Just check how the program SAPLMEDRUCK is linked to the print program SAPFM06P in the debugging mode.May be 'submit report and return' command will be used there.You can do this for your Z program also.

Read only

0 Likes
555

Program SAPFM06P contains many INCLUDE programs.

In these INCLUDES, calls are made to function modules in in SAPLMEDRUCK.

You will have to copy SAPFM06P, copy the INCLUDE FM06PE02, and change the function module calls to use your own custom function modules. In your Z_SAPFM06P, you have to reference the new INCLUDE Z_FM06PE02. Z_FM06PE02 calls your new functions.

By changing the print program and INCLUDE, you will lose any future changes made through SAP support packages or upgrades.

Unless you have a complicated requirement, most custom enhancements can be made using PERFORM statements in the SAPscript layout set. It is safer.

What types of changes to you need to make to the purchasing documents?