Symptom
While trying to delete a package in ABAP Environment, the following error is shown: "Package contains 6 objects", "Objects cannot be deleted, check issues"
Environment
ABAP Environment - SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open ABAP Environment
- Go to Project Explorer
- Select empty package XYZ
- Right-click to display context menu
- Click on Delete
- The Delete dialog shows the following error:
Objects cannot be deleted, check issues
- Object Name: XYZ
- Object Type: ABAP Package
- Transport request: Local
- Issues: Package contains 6 objects.
Cause
There are some deleted objects that prevent the package deletion.
Resolution
- Open the "I_CustABAPObjDirectoryEntry" view and execute it with "F8".
- When the data preview is open, click on the "Add filter" button and select ABAPPackage.
- Enter the name of the package XYZ that you want to delete.
- If an object has the "ABAPObjectIsDeleted" field set to "X" that means that the object was deleted but the deletion was not transported.
- To delete these objects, you need to manually add them to the transport.
- This can be done by opening the transport task and adding objects manually by specifying the Object Name (ABAPObject in the view), Object Type (ABAPObjectType), and Program ID (ABAPObjectCategory).
The information to fill the fields can be found in "I_CustABAPObjDirectoryEntry" view.
To fill the fields you have to fill in:
- Object Name (ABAPObject in the view).
- Object Type (ABAPObjectType in the view).
- Program ID (ABAPObjectCategory in the view).
See Also
Keywords
"Package contains", "objects", "Objects cannot be deleted, check issues", package, abap environment, s/4hana cloud, s4hc, adt, eclipse, delete , KBA , BC-DWB-AIE-PAK , Package Tools in ABAP in Eclipse , Problem