0% found this document useful (0 votes)
404 views10 pages

Step 1: Go To SE11 and Give Your Table Name and Open It. Here My Table Is ZEMPID - TABLE

This document provides steps to create a table maintenance generator (TMG) in SAP to allow for updating related fields based on value changes. Step 1 involves opening an existing table. Step 2-5 outline generating the TMG. Step 6 saves the TMG. Step 7 accesses the TMG. The TMG is then customized with ABAP code: module filldata is created to update department description on change. Module filldata2 is created to update manager name based on manager ID. F4 help is added to manager ID field to select values. Upon saving, the TMG updates related fields as configured.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
404 views10 pages

Step 1: Go To SE11 and Give Your Table Name and Open It. Here My Table Is ZEMPID - TABLE

This document provides steps to create a table maintenance generator (TMG) in SAP to allow for updating related fields based on value changes. Step 1 involves opening an existing table. Step 2-5 outline generating the TMG. Step 6 saves the TMG. Step 7 accesses the TMG. The TMG is then customized with ABAP code: module filldata is created to update department description on change. Module filldata2 is created to update manager name based on manager ID. F4 help is added to manager ID field to select values. Upon saving, the TMG updates related fields as configured.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Step 1: 

Go to SE11 and give your table name and open it.

Here my table is ZEMPID_TABLE

Create a value range for EMP_DEP filed and MAG_ID

EMP_DEP
MAG_ID

Step 2: Click on Utilities and then Table Maintenance Generator.

Step 3: Enter Authorization Group as &NC&.

Access for the tables can be restricted through Authorization Group.

&NC& is a default Authorization Group. Give Function group name as the table name.
Step 4: Select Maintenance type One Step

Step 5: Click on Find Screen Number. Select Propose screen number.

Step 6: Press Enter and click on Create. It will ask you to save then save it.
Once it is created, it will show you Request Completed Successfully.

Step 7: Go to sm30 tcode enter table name

click maintain
Based on the requirement when change the EMP DEPPARTMENT the DEP DESCRIPTION SHOULD
CHANGE

Step 8: For this Open function group and screen number 0001 for this tmg

On this I am write this code Module filldata

On the module filldata I write this to change the description it for creating
Same way I write same module filldata at down of  MODULE SET_UPDATE_FLAG ON CHAIN-
REQUEST. For updating

The list box comes automatically because we given value range for this filed emp_dep

SAME we given value range for the filed MAG_ID

Based on requirement I should give f4 help for the filed MAG_ID

Based on the MANGER ID the MANAGER NAME SHLOUD CHANGE

To set up f4 help for the filed MANGER ID


For this Open function group and screen number 0001 for this tmg

Step 8: Go to tab ELEMENT LIST and go tab texts/I/O templates make the file NO DROP

The there no drop down for filed MANGER ID

Then write event on screen process on values-request

On the module getf4data I write this code


DD_DOMVALUES_GET function module is use to get value of value range

I APPEND MANGER ID for to the table DDTEXT1

F4IF_INT_TABLE_VALUE_REQUEST function module is get f4 help on he filed

When click on f4 help we get this popup


Same way based on manager id I should change the manager name for that I write this code

On the module Filldata2

On this module I wirte this code

Based on this code when change manager id the name of manager is will change automatically

It creation

For update Same way I write same module filldata2 at down of


MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST. For updating

You might also like