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

How can I get the orignal code for a standard ABAP program?

neil_hoff
Participant
0 Likes
947

The reason I am asking is because we put custom code into the enhancement point of the program and moved it to production a while ago.

Then the custom code was deleted from the enhancement point and moved to production. Now we are having issues.

Because the coding was done to the enhancement point, no versions were saved.

1. Can we get the original SAP program the way it was before we made any changes to it?

2. What is the best way to version changes in enhancement points?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
914

Firslty code written in Enhancement Point (either Implict or Explict) will not change the Standard SAP Code. Added custom code is created as include program and called whenever program is called for display or execute.

Best way to version management is to activate or deacviate the Enhancement Point.

8 REPLIES 8
Read only

Former Member
0 Likes
915

Firslty code written in Enhancement Point (either Implict or Explict) will not change the Standard SAP Code. Added custom code is created as include program and called whenever program is called for display or execute.

Best way to version management is to activate or deacviate the Enhancement Point.

Read only

0 Likes
914

We did activate the enhancement point, but the version did not change.

Is there a setting somewhere that versions when enhancement points are activated?

Read only

former_member214857
Contributor
0 Likes
914

Hi

You can remove the enhancement implementation to remove the enhaced code. All enhancements ends in the E include and do not belong to the original program.

Kind regards

Read only

0 Likes
914

So...How do I get the original enhancement point code? Is this possible?

Read only

0 Likes
914

Hello

You can check transaction Se20 and edit the Enhancement implementation. The enhancement point is described there, and also you can check the source code of the enhancement.

Kind regards

Carlos Machado

Read only

0 Likes
914

Yo can only hope there's something like ABAP version management. Only then you can restore your deleted code.

Read only

Former Member
0 Likes
914

If this was done as an SAP Enhancement and this Enhancement was transported out of the Development client then you should have a version to go back to. If the Enhancement was changed and then somebody deleted the code before the Enhancement was released then you are out of luck. Using SAP Enhancement functionality will not change the version of the main program.

Read only

uwe_schieferstein
Active Contributor
0 Likes
914

Hello Neil

Given the fact that you do not see any versions I assume you won't have the corresponding transport requests either.

Otherwise you could try to import the original requests a second time and, thereby, restore the coding.

Regards

Uwe