Skip to content

Commit

Permalink
apack: additional namespace case (abapGit#6851)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtools authored Mar 14, 2024
1 parent 463f112 commit fe457a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/apack/zcl_abapgit_apack_reader.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ CLASS zcl_abapgit_apack_reader IMPLEMENTATION.
ls_descriptor TYPE zif_abapgit_apack_definitions=>ty_descriptor,
lv_descriptor_cust TYPE string,
lv_descriptor_sap TYPE string,
lv_descriptor_nspc TYPE string,
lv_class_name TYPE abap_abstypename,
lv_empty TYPE string,
ls_namespace TYPE zif_abapgit_definitions=>ty_obj_namespace.
Expand All @@ -106,12 +107,15 @@ CLASS zcl_abapgit_apack_reader IMPLEMENTATION.
ls_namespace = zcl_abapgit_factory=>get_sap_namespace( )->split_by_name( lv_class_name ).

IF ls_namespace-namespace IS NOT INITIAL.
lv_descriptor_cust = |{ ls_namespace-namespace }{ lv_descriptor_sap }|.
lv_descriptor_nspc = |{ ls_namespace-namespace }{ lv_descriptor_sap }|.
ENDIF.

ASSIGN io_manifest_provider->(lv_descriptor_cust) TO <lg_descriptor>.
IF <lg_descriptor> IS NOT ASSIGNED.
ASSIGN io_manifest_provider->(lv_descriptor_sap) TO <lg_descriptor>.
IF <lg_descriptor> IS NOT ASSIGNED AND lv_descriptor_nspc IS NOT INITIAL.
ASSIGN io_manifest_provider->(lv_descriptor_nspc) TO <lg_descriptor>.
ENDIF.
ENDIF.
IF <lg_descriptor> IS ASSIGNED.
" A little more complex than a normal MOVE-CORRSPONDING
Expand Down

0 comments on commit fe457a0

Please sign in to comment.