mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
Fix missing i_suppress_dialog parameter syntax error in 731 system (#4328)
* Fix missing i_suppress_dialog parameter syntax error in 731 system
* replace cx_root with cx_sy_dyn_call_param_not_found
* revert back to cx_root because checks have failed
"Statement does not exist in ABAPv702(or a parser error)"
* Revert "revert back to cx_root because checks have failed"
This reverts commit 73b9b2aa6f
.
* replace cx_root with cx_sy_dyn_call_param_not_found, sorry i didn't see that extra quote character, should be fine now.
* fix whitespace
Co-authored-by: larshp <larshp@hotmail.com>
This commit is contained in:
parent
0e4f29efa1
commit
55ee890080
|
@ -403,7 +403,7 @@ CLASS zcl_abapgit_object_devc IMPLEMENTATION.
|
|||
intern_err = 4
|
||||
OTHERS = 5.
|
||||
|
||||
CATCH cx_root.
|
||||
CATCH cx_sy_dyn_call_param_not_found.
|
||||
|
||||
li_package->delete(
|
||||
EXCEPTIONS
|
||||
|
@ -419,18 +419,32 @@ CLASS zcl_abapgit_object_devc IMPLEMENTATION.
|
|||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
|
||||
li_package->save(
|
||||
EXPORTING
|
||||
i_suppress_dialog = abap_true
|
||||
EXCEPTIONS
|
||||
object_invalid = 1
|
||||
object_not_changeable = 2
|
||||
cancelled_in_corr = 3
|
||||
permission_failure = 4
|
||||
unexpected_error = 5
|
||||
intern_err = 6
|
||||
OTHERS = 7 ).
|
||||
TRY.
|
||||
CALL METHOD li_package->('SAVE')
|
||||
EXPORTING
|
||||
i_suppress_dialog = abap_true
|
||||
EXCEPTIONS
|
||||
object_invalid = 1
|
||||
object_not_changeable = 2
|
||||
cancelled_in_corr = 3
|
||||
permission_failure = 4
|
||||
unexpected_error = 5
|
||||
intern_err = 6
|
||||
OTHERS = 7.
|
||||
|
||||
CATCH cx_sy_dyn_call_param_not_found.
|
||||
|
||||
li_package->save(
|
||||
EXCEPTIONS
|
||||
object_invalid = 1
|
||||
object_not_changeable = 2
|
||||
cancelled_in_corr = 3
|
||||
permission_failure = 4
|
||||
unexpected_error = 5
|
||||
intern_err = 6
|
||||
OTHERS = 7 ).
|
||||
|
||||
ENDTRY.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise_t100( ).
|
||||
ENDIF.
|
||||
|
|
Loading…
Reference in New Issue
Block a user