Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull unable to move a used DDIC object to another package #4974

Closed
sandraros opened this issue Sep 26, 2021 · 3 comments
Closed

Pull unable to move a used DDIC object to another package #4974

sandraros opened this issue Sep 26, 2021 · 3 comments
Assignees

Comments

@sandraros
Copy link
Contributor

I have the following issue to do a pull which solely consists in moving the DDIC data element ZTESTDATAELEMENT to a sub-package (demos).

To reproduce (latest version of abapGit used: 1.110.0):

  1. New Online repository https://github.com/sandraros/test-abapgit
  2. Pull
  3. Switch to branch change-package-assignment
    image
  4. We can see the warning "Changed package assignment of DTEL ZTESTDATAELEMENT" from /src/ztestdataelement.dtel.xml to /src/demos/ztestdataelement.dtel.xml. Not sure if it's normal to have Stage instead of Pull.
  5. Advanced>Selective Pull
  6. Popup to "Delete and recreate local object" (so I guess to recreate it in package $abap2xlsx_demos)
    image
  7. Popup "Select the objects which should be overwritten"
    image
  8. "Object DTEL ZTESTDATAELEMENT has dependencies and must be deleted manually", "Deletion of DTEL ZTESTDATAELEMENT failed", "Error during uninstall. Check the log."
    image
  9. Pull Log
    image
  10. Call Stack
    image

So, I deleted manually the DDIC data element ZTESTDATAELEMENT (to do that, I had to first delete the object which was using this data element, hopefully only one class ZCL_TEST_ABAPGIT) and did a pull which worked perfectly.

@mbtools
Copy link
Member

mbtools commented Sep 27, 2021

It's a known issue. Changing package assignment is handled as "delete + re-create". In your case, the delete does not work due to dependencies.

See #4274. The solution is to move objects to other packages via a change of TADIR (only if the object itself has not changed).

I will work on a fix.

@mbtools mbtools self-assigned this Sep 27, 2021
@mbtools
Copy link
Member

mbtools commented Oct 6, 2021

#4980 should fix this. Please test again.

@sandraros
Copy link
Contributor Author

Works nicely, thank you! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants