abapGit
abapGit copied to clipboard
Deleted function group is still serialized as empty XML
A TADIR entry exists for a deleted Function Group, the exists method fails, yet an empty XML file is generated containing
<?xml version="1.0" encoding="utf-8"?>
<abapGit version="v1.0.0" serializer="LCL_OBJECT_FUGR" serializer_version="v1.0.0">
<asx:abap version="1.0" xmlns:asx="http://www.sap.com/abapxml"/>
</abapGit>
I manually created a tadir entry for a function group but I'm not able to reproduce this. It seems also very unlikely that anything is serialized if exists fails:
https://github.com/abapGit/abapGit/blob/fd673dac68f80bdaf4d0885f347c306319a5c70a/src/objects/zcl_abapgit_object_fugr.clas.abap#L1375-L1379
Aware of this, yet it was happening on a customer system. I've got it on my todo to debug when I'm next working on that system to see what's going on.
was this fixed by #7147?
I tried to reproduce. The closest I get is https://github.com/abapGit-tests/FUGR/edit/test/src/zabapgit_unit_test.fugr.xml
You would have to delete the top include and main program to get an empty xml as you reported above.
Then you have TADIR and TLIBG entries but nothing else. No code, no description in TLIBT.
AFAICT, that's not possible with regular means. You would have to monkey around on the database.