Update zcl_abapgit_object_cota.clas.abap

removed @ in select
This commit is contained in:
Ben9ka 2025-02-05 12:47:44 +01:00 committed by GitHub
parent 82568c2545
commit d022e87b3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,14 +17,12 @@ CLASS zcl_abapgit_object_cota IMPLEMENTATION.
METHOD zif_abapgit_object~changed_by.
DATA lx_error TYPE REF TO cx_root.
TRY.
SELECT SINGLE changedby FROM ('sapcontargethead')
WHERE id = @ms_item-obj_name AND version = 'I'
INTO @rv_user.
SELECT SINGLE changedby FROM ('sapcontargethead') INTO rv_user
WHERE id = ms_item-obj_name AND version = 'I'.
IF rv_user IS INITIAL.
SELECT SINGLE changedby FROM ('sapcontargethead')
WHERE id = @ms_item-obj_name AND version = 'A'
INTO @rv_user.
SELECT SINGLE changedby FROM ('sapcontargethead') INTO rv_user
WHERE id = ms_item-obj_name AND version = 'A'.
ENDIF.
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise_with_text( lx_error ).