‎2019 Sep 10 9:39 PM
Hello experts,
Could you please give me the best solution to this question?
When creating a new Nace message for purchase order, what will be the best option: to create a new printing program or it will be better to copy the standard report SAPFM06P and adjust it according???
We have this doubt and we have bet some beers ..
Thanks in advance,
Regards
‎2019 Sep 10 10:48 PM
Rebecca,
This question will pull out many different perceptions. I am keen to know what are viewpoint of other members.
As for me, I would create a new program and copy/refer only the part of code which is useful to me.
Here are some of the reasons for doing this.
With creation of new program we can code for only what is required and keep the program clean.
And if we design the new report based on OOPS principal having ABAP UNIT test integrated then many components can be designed as reusable which can be reused in other programs.
Cheers.!
Rameez
‎2019 Sep 11 8:56 AM
Good morning Rameez,
Thank you so much for your answer and your support!!! I know that this is the typical discussion which make different perceptions, that's why I want to know what will be the best one 🙂
Just one thing, if you do not copy the standar report and change it according, if for any reason SAP release a correction, your new report will not have it and you'll have to adapt it.... So this is depending on the point of view. I've checked several systems for several clients and all of them copy the standard and adapt it, but maintaining the original includes....
I want to thank you your point of view...hope others experts join this thread for give their opinion.
Thanks in avance for your help!
Regards
‎2019 Sep 11 9:12 AM
most of the times the print program is only containing a list of includes. So if you copy this program you keep the standard part & only add a new include for the specific part. In the specific part you have to use as much as possible the standard routines.
So, if there is any modifications in the standard part, automaticaly your specific parts will have it also
‎2019 Sep 11 9:15 AM
So then Frederic, you're agree with me that the best option is to copy the standard one and do a client include for the client modifications, don't you?
‎2019 Sep 11 9:59 AM
Exactly
And if you need, for an upgrade or anything else, to find the standard copy, you could use the clone finder (/SDF/CD_CCA)
there is also a tool in Solman
‎2019 Sep 11 10:21 AM
Thank you so much Frederic for your help 🙂 is nice to hear that you're aagree with that solution and is not a crazy idea 🙂 I think i've won some beers!!
More opinions about this topic are accepted, but I think to copy report SAPFM06P and adapt the specific one is the best option!
Thanks a lot!