Skip to Content
author's profile photo Former Member
Former Member

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2015 at 10:50 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2015 at 01:00 PM

    Hi Yash,

    After creating event number 18, Create another event 02 for "after save".

    It will save the changes.

    Best Regards,

    Somya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2015 at 02:36 PM

    You're going to have to share your code if you really want some help.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2015 at 03:30 PM

    Hi Yash,

    Are you updating the Table primary key via TMG. Normally during change, when we are updating the Table primary key for the particular record in that time only the TMG won't work. Kindly confirm the same.

    If you still face the problem, kindly share the code written in event and table screenshot too...

    Regards

    Rajkumar Narasimman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2015 at 06:12 AM

    Hi Yash,

    Instead of doing it through event . you can achieve this through writing

    code in overview sceen number PAI.

    TRY below code.

    IN PAI

    FIELD ZDCC_REMARK-ZUNAME module custom_pai.

    FIELD ZDCC_REMARK-ZERSDA module custom_pai.

    FIELD ZDCC_REMARK-ZUZEITmodule custom_pai.

    MODULE custom_pai input.

    ZDCC_REMARK-ZUNAME = sy-uname.
    ZDCC_REMARK-ZERSDA = SY-DATUM.
    ZDCC_REMARK-ZUZEIT = Sy-UZEIT.

    ENDMODULE.


    Thanks,

    Marimuthu.K

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.