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

Copying function module & program with all ENHANCEMENT-POINT

Former Member
0 Likes
1,974

Guyz,

i'm on ecc6.0 and want to copy a standard report and FM with all its enhancement points. Can i do ? Kindly let me know how to do the same ?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,294

Hi Sreedhar,

I am afraid that you cannot copy the enhancement points while copying the sap standard programs and function modules..

Any way when you copy the Standard program of FM they become just has normal z program and you can enhance them any way you want after copying.. than why you what those Enhancement points..

Enhancement Points are available in standard programs for customer enhancement to add extra functionality to the existing functionality.. and when you copy the FM or Report you can modify/Enhance it as you like.. and this no need of Enhancement Points in Custom Porgrams and the FM.

Hope you have better idea now..

regards,

Pavankumar

9 REPLIES 9
Read only

Former Member
0 Likes
1,294

Hi,

Enhancement frame work is the new concept using which SAP allows you to change the existing programs

See the following blogs that talk about the same in detail

/people/thomas.weiss/blog/2006/01/24/what-the-new-enhancement-framework-is-for-150-its-basic-structure-and-elements-for-beginners

/people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement

/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series

/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework

/people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework

Check the theard also

https://forums.sdn.sap.com/click.jspa?searchID=3456104&messageID=2839972

<b>Reward points</b>

Regards

Read only

0 Likes
1,294

Dear skk,

i'm afraid blogs doesn't talk about my question...

any pointers pls ?

Read only

Former Member
0 Likes
1,295

Hi Sreedhar,

I am afraid that you cannot copy the enhancement points while copying the sap standard programs and function modules..

Any way when you copy the Standard program of FM they become just has normal z program and you can enhance them any way you want after copying.. than why you what those Enhancement points..

Enhancement Points are available in standard programs for customer enhancement to add extra functionality to the existing functionality.. and when you copy the FM or Report you can modify/Enhance it as you like.. and this no need of Enhancement Points in Custom Porgrams and the FM.

Hope you have better idea now..

regards,

Pavankumar

Read only

0 Likes
1,294

i'm not looking for enhancing copied code... when I copy standard FM, it doesn't copy enhancement codes (code inside enhancement spots ), as it involves hundreds of includes, copying all of them manually would be real tough task .....

Read only

0 Likes
1,294

Yes when you copy the FM it will not copy code inside enhancement spots, and enhancement points first see weather you can enhance the existing function module user new enhancement framework if not copy FM and all the includes in Z FM and Z includes and then modify the FM with the code in the enhancement spots and your additional logic as per your needs, OR go for custom function module as there is no easy way out...

Regards,

Pavankumar

Read only

0 Likes
1,294

Thanks for your suggestion pavan kumar. Actually as there was no way i could enhance standard function module, i had to copy to Z... and found enhancement code was n't copied....

now do you expect me to check for all enhancements in each and every include ( there are at around 100 includes), and re-implement the enhancement spot ? Could you elaborate pls ?

Thanks

Read only

0 Likes
1,294

Sreedhar ,

When you want to copy a Std. Fm , always you have to copy the Function Group and not at Fm level. Hope this help.

Thx

Parthi

Read only

0 Likes
1,294

Parthiban -- I did the same..

All -- Requirement changed ==> no copying of std FMs....

thanks for all ur help anyways.

Read only

Former Member
0 Likes
1,294

Requriement changed