mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
Fix extended check issues - Part 7 (#7092)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
parent
b835900776
commit
697bc7f51d
|
@ -61,7 +61,7 @@ CLASS zcl_abapgit_object_iobj IMPLEMENTATION.
|
|||
iobj_not_found = 1
|
||||
illegal_input = 2
|
||||
bct_comp_invalid = 3
|
||||
not_authorized = 4
|
||||
* not_authorized = 4 " not in lower releases
|
||||
OTHERS = 5.
|
||||
IF sy-subrc = 0.
|
||||
ASSIGN COMPONENT 'TSTPNM' OF STRUCTURE <lg_viobj> TO <lg_tstpnm>.
|
||||
|
@ -200,6 +200,7 @@ CLASS zcl_abapgit_object_iobj IMPLEMENTATION.
|
|||
ASSERT sy-subrc = 0.
|
||||
|
||||
IF zif_abapgit_object~exists( ) = abap_false.
|
||||
TRY.
|
||||
CALL FUNCTION 'BAPI_IOBJ_CREATE'
|
||||
EXPORTING
|
||||
details = <lg_details>
|
||||
|
@ -213,8 +214,23 @@ CLASS zcl_abapgit_object_iobj IMPLEMENTATION.
|
|||
hierarchycharacteristics = <lt_hierarchycharacteristics>
|
||||
elimination = <lt_elimination>
|
||||
hanafieldsmapping = <lt_hanafieldsmapping>
|
||||
xxlattributes = <lt_xxlattributes>.
|
||||
xxlattributes = <lt_xxlattributes> ##ARG_OK.
|
||||
CATCH cx_sy_dyn_call_param_not_found.
|
||||
CALL FUNCTION 'BAPI_IOBJ_CREATE'
|
||||
EXPORTING
|
||||
details = <lg_details>
|
||||
IMPORTING
|
||||
return = ls_return
|
||||
TABLES
|
||||
compounds = <lt_compounds>
|
||||
attributes = <lt_attributes>
|
||||
navigationattributes = <lt_navigationattributes>
|
||||
atrnavinfoprovider = <lt_atrnavinfoprovider>
|
||||
hierarchycharacteristics = <lt_hierarchycharacteristics>
|
||||
elimination = <lt_elimination>.
|
||||
ENDTRY.
|
||||
ELSE.
|
||||
TRY.
|
||||
CALL FUNCTION 'BAPI_IOBJ_CHANGE'
|
||||
EXPORTING
|
||||
infoobject = <lg_infoobject>
|
||||
|
@ -229,7 +245,22 @@ CLASS zcl_abapgit_object_iobj IMPLEMENTATION.
|
|||
hierarchycharacteristics = <lt_hierarchycharacteristics>
|
||||
elimination = <lt_elimination>
|
||||
hanafieldsmapping = <lt_hanafieldsmapping>
|
||||
xxlattributes = <lt_xxlattributes>.
|
||||
xxlattributes = <lt_xxlattributes> ##ARG_OK.
|
||||
CATCH cx_sy_dyn_call_param_not_found.
|
||||
CALL FUNCTION 'BAPI_IOBJ_CHANGE'
|
||||
EXPORTING
|
||||
infoobject = <lg_infoobject>
|
||||
details = <lg_details>
|
||||
IMPORTING
|
||||
return = ls_return
|
||||
TABLES
|
||||
compounds = <lt_compounds>
|
||||
attributes = <lt_attributes>
|
||||
navigationattributes = <lt_navigationattributes>
|
||||
atrnavinfoprovider = <lt_atrnavinfoprovider>
|
||||
hierarchycharacteristics = <lt_hierarchycharacteristics>
|
||||
elimination = <lt_elimination>.
|
||||
ENDTRY.
|
||||
ENDIF.
|
||||
|
||||
IF ls_return-type = 'E'.
|
||||
|
@ -409,6 +440,7 @@ CLASS zcl_abapgit_object_iobj IMPLEMENTATION.
|
|||
|
||||
lv_iobjnam = ms_item-obj_name.
|
||||
|
||||
TRY.
|
||||
CALL FUNCTION 'BAPI_IOBJ_GETDETAIL'
|
||||
EXPORTING
|
||||
infoobject = lv_iobjnam
|
||||
|
@ -423,7 +455,22 @@ CLASS zcl_abapgit_object_iobj IMPLEMENTATION.
|
|||
hierarchycharacteristics = <lt_hierarchycharacteristics>
|
||||
elimination = <lt_elimination>
|
||||
hanafieldsmapping = <lt_hanafieldsmapping>
|
||||
xxlattributes = <lt_xxlattributes>.
|
||||
xxlattributes = <lt_xxlattributes> ##ARG_OK.
|
||||
CATCH cx_sy_dyn_call_param_not_found.
|
||||
CALL FUNCTION 'BAPI_IOBJ_GETDETAIL'
|
||||
EXPORTING
|
||||
infoobject = lv_iobjnam
|
||||
IMPORTING
|
||||
details = <lg_details>
|
||||
return = ls_return
|
||||
TABLES
|
||||
compounds = <lt_compounds>
|
||||
attributes = <lt_attributes>
|
||||
navigationattributes = <lt_navigationattributes>
|
||||
atrnavinfoprovider = <lt_atrnavinfoprovider>
|
||||
hierarchycharacteristics = <lt_hierarchycharacteristics>
|
||||
elimination = <lt_elimination>.
|
||||
ENDTRY.
|
||||
|
||||
IF ls_return-type = 'E'.
|
||||
zcx_abapgit_exception=>raise( |Error getting details of InfoObject: { ls_return-message }| ).
|
||||
|
|
Loading…
Reference in New Issue
Block a user