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

Deleting Objects inside an package

preetamr
Explorer
0 Likes
8,526

Hi All,

Before I start describing my issue, I would like to mention that I have tried to search the forum for specific solution or hint to resolve my issue. However, I couldn't find anything that might be helpful for resolving the issue.That's why I starting this new discussion hoping for some input from experts.

I have a "development class"/"package" let's say ZDEV and I have around 100+  objects of different type for example, some are tables, some are programs, some are classes, some are webdynpro components. Deleting each and every object would be impractical and waste of time as the count of objects are very high. I am looking for some solution or hint that might help me get it done. Maybe some FM or Class that might help or atleast some procedure that I can code and automate the task.

As I have been through different discussion like "Deleting Objects under package" and similar. So, please don't repeat those solutions because, they just don't work.

Thanks in advance,

Preetam Kajal Rout

18 REPLIES 18
Read only

kiran_k8
Active Contributor
0 Likes
6,780


Preetam,

If you are expecting to get this task done in one shot.......

Suppose if the Z Package has 100 Z Objects,how you will come to a conclusion which one of the Objects is available across D Q and P,if there are any dependencies in between these objects,and if there are any version differences between D Q and P ?

K.Kiran.

Read only

0 Likes
6,780

Kiran,

No, we can't say that. However, What if I want it to be deleted from only one system. No dependency from other systems.

Read only

kiran_k8
Active Contributor
0 Likes
6,780

Preetam,

I think deleting it from D or Q and leaving it in P will result in inconsistency across the landscape and should not be the approach.To my knowledge,it is not possible without checking manually one by one in terms of versions and dependecies.Actually this should have been the first question......Why do you want to delete that many objects from Z package ?

K.Kiran

Read only

0 Likes
6,780

Kiran,

Basically, This was completely a new development and it's only in D . We haven't yet transported/moved it to Q or P. So, before moving it we want to clean the D and import again for consistency. A normal procedure we follow. However, this time the count of object under the package is very hight, that's why wanted to take an automated approach.

Preetam

Read only

edgar_nagasaki
Contributor
0 Likes
6,780

Hi Preetam,

Would suggest you to do it through SE80, by selecting package and then deleting objects under it (it removes object from package but also from system). It would take some time but just a matter of hours and would ensure no big mistakes would take place.

Regards,

Edgar

Read only

0 Likes
6,780

Okay, Even if I tried doing that. Now I am facing issue while deleting tables or table types with "Cannot delete object TABL <table_name> in quantity mode". Any ideas?

Read only

Former Member
0 Likes
6,780

Try SE03, there you can give your package name , once you get list of all the objects in that package, reassign them to some other package or delete.

Read only

0 Likes
6,780

Abhishek,

Can you please provide some links or some hints on how to proceed? There are a number of tools in SE03 TCODE.

Preetam

Read only

0 Likes
6,780

Go to SE03, , go to change object directory entries, give your package name there, it will display all objects, double clicking on them will ask you to change package name.

Read only

0 Likes
6,779

Abhishek,

Thanks, I am able to see the screen. However, you said in earlier answer that I can delete as well. Can you help me regarding that?

Read only

0 Likes
6,779

Select  the object in final list, go to object menu, delete object entry option is there.

But it seems to be not working for my ides system. you try it.

Read only

0 Likes
6,779

No, It's not working for mine too.

Read only

0 Likes
6,779

Hi,

This should be fairly simple.

Goto to se16, table E071

Enter the transport number and it will list down all the objects in the transport.

then Goto se16 transaction and check for table VRSD.

enter all the objects.

This will give you all the versions of the objects.

Simply the objects which have multiple versions have been transported.

Also E071* table(do not remember the exact table name), but if you enter the object name, then it can given you all the transports as well, and you can check from STMS that transport has been imported into which all tables.

Do let me know incase of any questions.

Ashish

Read only

0 Likes
6,779

Hi Ashish,

Thanks for the reply. However, I couldn't understand how will it help me delete everything inside a package.

Preetam

Read only

0 Likes
6,779

Once you know which object is present only in D+Q+P, D+Q, and D only, then you can delete the objects from the package manaully.

I think there would be a way to do in a automated way as well, but since the amount of risk involved is huge, in creating inconsistency between different systems, i rather would prefer to do it manually.

Ashish

Read only

0 Likes
6,779

Thanks. I would also do that.

Read only

Former Member
0 Likes
6,779

This message was moderated.

Read only

preetamr
Explorer
0 Likes
6,779

Thanks to all for providing your solution and suggestion. It was very helpful