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 to delete Modified/Inactive version from abap program

0 Likes
13,472

I have a ABAP program screen that I made changes to, pressed the save icon, but did not activate. So I have "Modified/Inactive" status.

I want to delete what I saved and just to back to the original.

I don't have a transport, so I don't want to undo my changes and activate it, which would make the program identical, but it would create a transport entry which I am trying to avoid. I just want to delete my saved version and go back to before I did anything without adding to a transport.

I am able to see the inactive version in SE80, but can I remove this saved version?

12 REPLIES 12
Read only

Sandra_Rossi
Active Contributor
0 Likes
12,955

I don't understand: if you did a change (whatever activated or not) and it was not assigned to a transport request, it means that even the menu action "return to active version" won't assign it to a transport request.

If not, you should check the bug with SAP support.

Read only

0 Likes
12,955

could be a $tmp and there is no version with TR to go back to previous code.

Read only

0 Likes
12,955

frdric.girod probably the OP focused on transport requests for no good reason as maybe the only question the OP has is about returning to the active version. I'm always surprised to see people thinking about possible consequences on something they don't even know (if that's the case/maybe the question is more complex than said...)

Read only

0 Likes
12,955

There is no active version to go back to. The return to active version text is greyed out.

Read only

12,955

abap_1920932 Honestly I don't understand your situation. The screenshot clearly shows the active version of the report.

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
12,955

Hello abap_1920932

While editing the inactive version of your program, you can use the menu Utilities -> Versions -> Return to Active Version

That will overwrite the inactive version with the active one. You will get a popup warning about loosing your changes in the inactive version.

Best regards

Dominik Tylczynski

Read only

12,955

In addition, in Eclipse/ADT the corresponding function is in menu "Edit" > "Toggle active and inactive version".

Kind regards

Jan

Read only

0 Likes
12,955

There is no active version to go back to. The return to active version text is greyed out.

Read only

12,955

abap_1920932 Honestly I don't understand your situation. The screenshot clearly shows the active version of the report.

Read only

Sandra_Rossi
Active Contributor
0 Likes
12,955

From your multiple comments:

It means it's already active and there's no inactive version, it's why "return to active version" is grayed out.

Of course, what the screen is showing doesn't correspond to what you have described in the question.

Read only

Sandra_Rossi
Active Contributor
12,951

Just realized that your issue is about the versioning of SCREENS.

I just reproduced your case: I did a change, saved, and I don't see the "modified" version, nor I can "return to active version" (which is normal as there is no "modified" version):

I can't find any SAP Note about this (and no info in the forum), maybe it's not possible. Hopefully you can contact SAP support to get more information.

Good luck!

NB: I'm surprised that in your screenshot, you have an empty Request, you should have either LOCAL or a Transport Request number, if it was modified. Maybe that's due to specificities in the package assigned to the program containing your screen, or anything else, I can' say...

3a9e4ce873a94034b33dc62b0ce600ee FYI

Read only

billypeoples
Newcomer
0 Likes
12,194

In SAP ABAP Editor (SE80), you can easily discard your inactive changes without creating a transport. Here's how:

1- In SE80, navigate to your ABAP program screen.
2- Look for the "Version" menu (usually on the top menu bar).
3- Within the "Version" menu, select "Version Management".
4- This will display a list of versions for your program.
5- Identify the "Inactive" version you want to discard (usually the latest one).
6- Right-click on the inactive version and choose "Toggle active and inactive version".

This action will discard your un-activated changes and revert the program back to its original state. You won't create any unnecessary transport requests and your program will be back to how it was before your modifications.