Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Changed Data not updating through TMG

Hi All,

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.

Please help.

Former Member
Former Member replied

Hi all,

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.

   CLEAR W_ZDCC_REMARK.

   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.
   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.

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question