Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding table maintenance generator

Former Member
0 Likes
515

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
479

Yes possible.

From Routines.

you need to search with TMG routine in SDN.you will get your answer.

2 REPLIES 2
Read only

Former Member
0 Likes
480

Yes possible.

From Routines.

you need to search with TMG routine in SDN.you will get your answer.

Read only

Former Member
0 Likes
479

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.