Hello I tried to update a dataset in a se11 table using UPDATE Statement.
It doesn't work and I get a sy-subrc = 4.
That is my code:
TABLES ZTDM_SAPOUTPUT. * Arbeitsbereich definieren DATA: wa_ZTDM_SAPOUTPUT LIKE ZTDM_SAPOUTPUT. wa_ZTDM_SAPOUTPUT-PK = '1'. wa_ZTDM_SAPOUTPUT-FNCODE = '3'. wa_ZTDM_SAPOUTPUT-MATNR = '3'. wa_ZTDM_SAPOUTPUT-MAKTX = '3'. wa_ZTDM_SAPOUTPUT-ZEINR = '3'. wa_ZTDM_SAPOUTPUT-MATKL = '3'. wa_ZTDM_SAPOUTPUT-STATE = '1'. UPDATE ZTDM_SAPOUTPUT FROM wa_ZTDM_SAPOUTPUT. Write: 'UPDATE returned' , sy-subrc. SKIP.
The given Dataset having PK=1 doesn't get updated.
Maybe my understanding is wrong:
Is it correct that the updated dataset ist defined by the primary key in this workingarea?
My Primary Key is PK.
Can you see the error?