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

Problem with change/delete structure in package

Former Member
0 Likes
2,529

Hello!

I got the task to delete a package in the ABAP Dictionary. In this package there are structures that I can´t delete. I get the following message:

You cannot edit object R3TR TABL Y1LASME with the standard editor
Choose 'Display object' or 'Cancel'.

Y1LASME is one of the structures. The other one I don´t know.

So, how is it possible to delete this structure and then to delete the package?

Thanks.

7 REPLIES 7
Read only

Former Member
0 Likes
1,116

My assumption is that this is not a 'real' structure but a IDOC segment, hence SE11/SE80 do not allow you to delete it.

Go to transaction WE31 instead

- Put in the structure name

- Choose Menu 'Edit - Cancel Release'

- only unreleased segments can be deleted

- Chooes Menu 'Segment - Delete Segment'

- That's it

Hope that helps,

Michael

Read only

0 Likes
1,116

I could unrelease it.

But then I got:

Segment type Y1LASAD is still used

Altough nobody uses it. I also logged off from the system and logged in again, only opened WE31.

edit

When I use the Where-used-list nothing happens except in the status bar it is displayed "Original language German (DE), Display in English (EN)". It doesn´t seem to fit to this operation. Because if there is no used-list, it should return at least a message instead of this.

Edited by: Geraldine Pastor Guzman on Jun 6, 2008 5:15 PM

Read only

0 Likes
1,116

Did you do a where-used on the segment to see which extension it is still used in?

In that case the only thing you need to do is to go to transaction WE30, put in the extension name in object name, select extension radio button and go into change mode (don't forget to cancel release before doing that), then just set the cursor on your segment and cut it out, save and exit. Don't forget to set the release again.

In case the where used does say that it is not used any more than there is an inconsistency in your system or some navigation index is not up to date.

If you are 100% sure that the segment is definitely no longer used, you always have the possibility to debug :

Set a breakpoint in include MSED4F01 form routine segment_delete in line 184 (ECC6) at statement IF l_rc eq 0. which is fter the statement PERFORM segment_check_usage USING pi_object l_rc.

The l_rc should be 4, so at that point just change it to 0 and the delete part will be executed.

HOWEVER - if this segment is still used in an extension any Idoc running in or out using this extension will at least no longer work or even dump!!!

Hope that helps,

Michael

Read only

0 Likes
1,116

Together with a colleague we did the following:

WE31:

Segment name -> Cancel Release

Where-used list --> noted the name of the basic type

WE30:

Inserted name of basic type

Cancel Release

Delete

WE31:

Delete Segment

Done!

back in SE80 the structures are still listed. Right Click and "Delete" says " does not exist".

Delete the package above it says "The package still contains subobjects" (although they don´t exist!).

I guess it´s maybe a bug of the Dictionary?!

Read only

0 Likes
1,116

Hmm that sounds like the segment has not been deleted completely, I guess you need to some more investigation where it might still be used.

There are quite a few tables where entries are made if an IDOC segment is created,

here are a few tables:

- EDISEGMENT

- DD02L

- DD02T

- TADIR

Sometimes it also helps to recreate the segment with one field and then delete it again.

You should also check the EDI config to make sure it is not referenced in any extension (use area menu WEDI)

Hope that helps,

Michael

Read only

0 Likes
1,116

Thanks.

Could delete it. Just created new (empty) ones and then delete them.

But I couldnt delete the package. Is still in use although nothing is listed in the where-used list.

Anyway, thanks for your help.

Read only

Former Member
0 Likes
1,116

Marking thread as answered. See above.