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

About Nace printing program

former_member384574
Active Participant
0 Likes
1,450

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

6 REPLIES 6
Read only

rameez_khan
Active Participant
0 Likes
1,307

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.

  • Latest changes or bug correction released by SAP will not reflect in copied programs, this has to be taken care manually. Plus most of the times we notice this when something goes wrong.
  • Most of the times we end up having junk code in report and cleaning the junk code becomes tedious if you have deadlines on the head.
  • Extra attention and efforts are required. Sometimes includes are copied but reference to original include is made in main program, some of the enhancement also get copied.

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

Read only

former_member384574
Active Participant
0 Likes
1,307

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

Read only

1,307

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

Read only

former_member384574
Active Participant
0 Likes
1,307

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?

Read only

1,307

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

Read only

former_member384574
Active Participant
0 Likes
1,307

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!