‎2008 Sep 16 12:47 PM
hi
i have one scenario . supppose there are 4 fields in a table. user enters data into it using table maintenance generator. he enters data only for 2 fields remaining 2 fields should get populated automatically.
is it possible?
‎2008 Sep 16 12:48 PM
Yes possible.
From Routines.
you need to search with TMG routine in SDN.you will get your answer.
‎2008 Sep 16 12:48 PM
Yes possible.
From Routines.
you need to search with TMG routine in SDN.you will get your answer.
‎2008 Sep 16 1:20 PM
Go to SE11->Table Maintenance generator -> Environment->Modification-> Events
Here you can define events and the form routines that will be invoked on that particular event.
Say for example you want to populate details for the user who created the records, define the form FRM_CR_DATE (any form routine name) for populating the Create Details using event 05.
Event 05 is fired for "Creating a new entry".
Click on the EDITOR Button and write the following code for saving the user details while creating a new record.
*---------------------------------------------------------------------*
* FORM FRM_CR_DATE *
*---------------------------------------------------------------------*
form frm_cr_date .
ztablename-created_by = sy-uname .
ztablename-created_on = sy-datum .
ztablename-create_time = sy-uzeit.
endform .
The current username, system date and time will be moved to the table work area for each record created.