cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete item or version of an item?

Former Member
0 Kudos

Hi guys,

By mistake we have created version of items during change of decision point. Since we don't use version's, they are just sitting their. We can go specifically in each item and delete it's version. But don't want to do the manual job as it will be very time consuming.

I am thinking of writing a simple program which will read those version items and pass them to a FM/BAPI for deletion. But so far I have not found a FM which will delete the item. I have testet a few FM in SE37 but they don't perform deletion on those items.

Any help will be greatly appreciated?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Nahman,

There is a standard report /RPM/VERSION_DELETION that you can run

I have never used this myself so not sure what it does and if this will help you. Please take a look

Regards

Chatsworth

Former Member
0 Kudos

Hi Chatsworth,

Thanks for the tip. I tried but this does not delete the version item. As input I provide the original item guid and as i debug through the program it looks like its performing delete, as it never fails in the program and the program code runs through smoothly. Then I go back in the tables and see the version item is still their and its also still their if I look in the version tab in the item.

Am I missing any commit or do I need to run this program in some special way?

Thanks

Former Member
0 Kudos

Hello Nahman

I am not sure to be honest with you...

I came across this report a while back and remembered about it when I read your post - I have however never had a need to use it.

Sorry I cant be of much assistance to you in this regard

Regards

C

Former Member
0 Kudos

Hi again,

I just came a cross a FM which does the same and it works

Just pass the version item info in the delete table and it will delete the version item.

FM: RPM_ITEM_VERSION_CTRL_SAVE_DB

Thanks for your help.

Answers (0)