Code: Alles auswählen.
REPORT z_shop_user_1p.
TABLES zshop_user.
DATA lv_name(45) TYPE c.
DATA wa_user_name(148) TYPE c.
wa_user_name = 'Test'.
UPDATE zshop_user FROM wa_user_name.
SELECT name FROM zshop_user INTO lv_name.
WRITE lv_name.
ENDSELECT.
Versuch mal:User1234 hat geschrieben: ↑30.08.2021 09:32Code: Alles auswählen.
REPORT z_shop_user_1p. TABLES zshop_user. DATA lv_name(45) TYPE c. DATA wa_user_name(148) TYPE c. wa_user_name = 'Test'. UPDATE zshop_user FROM wa_user_name. SELECT name FROM zshop_user INTO lv_name. WRITE lv_name. ENDSELECT.
Code: Alles auswählen.
UPDATE zshop_user SET name = 'Test' WHERE ??? = 'xxx'.
If sy-subrc = 0.
COMMIT WORK.
ENDIF.