Changed Data not updating through TMG
I have a Z table in which I have added some events in its TMG.
My problem is the table is not getting updated while I change any record.
The event number is 18.
It is done.
Solution is as below.
In the Event 02 the code is written.
DATA: W_ZDCC_REMARK TYPE ZDCC_REMARK. " DCC Document Reason for Remark
FIELD-SYMBOLS: <FS1> TYPE ANY,
<FS2> TYPE ANY,
<FS3> TYPE ANY.
ASSIGN ('<VIM_EXTRACT_STRUC>-REMARK') TO <FS1>.
IF <FS1> IS ASSIGNED.
SELECT SINGLE * FROM ZDCC_REMARK INTO W_ZDCC_REMARK
WHERE REMARK = <FS1>.
IF sy-subrc = 0.
W_ZDCC_REMARK-ZUNAME = SY-UNAME.
W_ZDCC_REMARK-ZERSDA = SY-DATUM.
W_ZDCC_REMARK-ZUZEIT = SY-UZEIT.
MODIFY ZDCC_REMARK FROM W_ZDCC_REMARK.
ENDIF. " IF <FS1> IS ASSIGNED
One additional thing is also needed for the same.
We have to configure the table in transaction SCDO.
This will solve the purpose.