Good day,
When my original nested package setup is:
- ZDEV (Structure Package)
-- ZBC (Structure Package)
-- -- ZBC_ABA (Structure Package)
-- -- -- ZBC_ABA_ATF (Development Package)
All packages in the GitHub repository will reflect the correct types after staging, and I create the ZDEV package manually in the target system. So far so good.
However, when pulling the repository (Folder Logic = Full) in a new system the following error is given:

Besides that the error message (import of object...failed) is incorrect, since the package actually are imported, they are imported as type Development Packages, thus ignoring the source XML values for:
<RESTRICTED>X</RESTRICTED>
<MAINPACK>S</MAINPACK>
In the target system this then results in:
- ZDEV (Structure Package)(as manually created beforehand)
-- ZBC (Development Package)
-- -- ZBC_ABA (Development Package)
-- -- -- ZBC_ABA_ATF (Development Package)
For both the stage and pull I've used the standalone version: abapmerge 0.16.0 - 2024-04-24T14:41:46.792Z and both SAP systems are S4H op2023.
Good day,
When my original nested package setup is:
-- ZBC (Structure Package)
-- -- ZBC_ABA (Structure Package)
-- -- -- ZBC_ABA_ATF (Development Package)
All packages in the GitHub repository will reflect the correct types after staging, and I create the ZDEV package manually in the target system. So far so good.
However, when pulling the repository (Folder Logic = Full) in a new system the following error is given:

Besides that the error message (import of object...failed) is incorrect, since the package actually are imported, they are imported as type Development Packages, thus ignoring the source XML values for:
<RESTRICTED>X</RESTRICTED><MAINPACK>S</MAINPACK>In the target system this then results in:
-- ZBC (Development Package)
-- -- ZBC_ABA (Development Package)
-- -- -- ZBC_ABA_ATF (Development Package)
For both the stage and pull I've used the standalone version: abapmerge 0.16.0 - 2024-04-24T14:41:46.792Z and both SAP systems are S4H op2023.