mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
WEBI: Fix multiple service methods
This commit is contained in:
parent
f002715b47
commit
e9affd102a
|
@ -48,7 +48,7 @@ ENDCLASS.
|
|||
|
||||
|
||||
|
||||
CLASS ZCL_ABAPGIT_OBJECT_WEBI IMPLEMENTATION.
|
||||
CLASS zcl_abapgit_object_webi IMPLEMENTATION.
|
||||
|
||||
|
||||
METHOD handle_endpoint.
|
||||
|
@ -78,12 +78,12 @@ CLASS ZCL_ABAPGIT_OBJECT_WEBI IMPLEMENTATION.
|
|||
zcx_abapgit_exception=>raise( 'todo, WEBI BAPI' ).
|
||||
ENDIF.
|
||||
|
||||
IF lines( is_webi-pvepfunction ) <> 1.
|
||||
zcx_abapgit_exception=>raise( 'todo, WEBI, function name' ).
|
||||
ENDIF.
|
||||
|
||||
* field ls_endpoint-endpointname does not exist in 702
|
||||
READ TABLE is_webi-pvepfunction INDEX 1 ASSIGNING <ls_function>.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |WEBI { ms_item-obj_name }: couldn't detect endpoint name| ).
|
||||
ENDIF.
|
||||
|
||||
li_endpoint->set_data(
|
||||
data_version = '1'
|
||||
data = <ls_function>-function ).
|
||||
|
@ -472,3 +472,4 @@ CLASS ZCL_ABAPGIT_OBJECT_WEBI IMPLEMENTATION.
|
|||
ENDMETHOD.
|
||||
|
||||
ENDCLASS.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user