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

Last Changed By Date

Hi Experts,

In a custom table i need to create a Last Changed by feild which need to be populated automatically when a new record is added or change the existing record.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 24, 2007 at 11:09 AM

    Hi Raghvendra,

    Are you going to update the Z table through a table maintenance?

    If yes, then you have two approaches:

    1. Since its a Z table - the table maintenance will be under a Z function group and hence you can create your own PAI module in LOOP~ENDLOOP in PAI section and have the module react to ON INPUT-REQUEST - and update the last changed by field with SY-UNAME

    2. Use SAP modification events BEFORE_SAVE

    Kind regards,

    Aditya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 25, 2007 at 07:45 AM

    Hi Raghavendra,

    If you are updating table through SM30 (Table maintrenace generator ) then you can use events for this purpose.

    Refer to this link

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 26, 2007 at 09:50 AM

    if it is a z then u can update it by assigning the field name to sy-ucome inside ur program..........

    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.