‎2006 Jul 26 11:04 AM
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,
‎2006 Jul 26 11:08 AM
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
‎2006 Jul 26 11:09 AM
hi rama ,
u have to copy <b>SAPFM06P</b> not MEDRUCK.
Regards
prabhu
‎2006 Jul 26 11:09 AM
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.
‎2006 Jul 26 1:59 PM
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?