Skip to content

Commit

Permalink
IDOC/IEXT: Fix deserialize in background (abapGit#7113)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtools authored Dec 10, 2024
1 parent bc36dcc commit 3d3cae3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/objects/core/zcl_abapgit_file_deserialize.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ CLASS zcl_abapgit_file_deserialize IMPLEMENTATION.
DELETE lt_requires WHERE obj_type <> 'IASP'
AND obj_type <> 'PROG'
AND obj_type <> 'IARP'.
WHEN 'IDOC' OR 'IEXT'.
lt_requires = lt_items.
DELETE lt_requires WHERE obj_type <> 'TABL'.
WHEN 'DCLS'.
lt_requires = lt_items.
DELETE lt_requires WHERE obj_type <> 'DDLS'.
Expand Down
3 changes: 3 additions & 0 deletions src/objects/zcl_abapgit_object_idoc.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ CLASS zcl_abapgit_object_idoc IMPLEMENTATION.
MOVE-CORRESPONDING ls_idoc-attributes TO ls_attributes.

IF zif_abapgit_object~exists( ) = abap_false.
" Avoid popup asking for package
tadir_insert( iv_package ).

CALL FUNCTION 'IDOCTYPE_CREATE'
EXPORTING
pi_idoctyp = mv_idoctyp
Expand Down
3 changes: 3 additions & 0 deletions src/objects/zcl_abapgit_object_iext.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ CLASS zcl_abapgit_object_iext IMPLEMENTATION.
EXCEPTIONS
OTHERS = 1.
ELSE.
" Avoid popup asking for package
tadir_insert( iv_package ).

CALL FUNCTION 'EXTTYPE_CREATE'
EXPORTING
pi_cimtyp = mv_extension
Expand Down

0 comments on commit 3d3cae3

Please sign in to comment.