Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

ABAP Dictionary: Can We Create A Transaction Code For Table Maintenance Generator?

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 17

ABAP Dictionary

Can We Create a Transaction Code for Table Maintenance Generator? Yes. we can create a tcode for table maintenance generator (TMG) using parameter transaction option. What is SAP Table Maintenance Generator? SAP Table Maintenance Generator (TMG) is a tool to generate a table maintenance program i.e. it will generate a program to maintain (Create, Edit & Delete) entries in a table. How to Create Secondary Index on SAP Table? Secondary index will be created to avoid performance issues while accessing data from a table using non-key fields in the selection criteria. How to create a SAP parameter ID? SAP parameters are used to store values in user-specific global SAP memory. SAP memory allows you to pass these values between programs. How to check whether a SAP table has a text table? First of all what is a text table? Text table is a table which contains descriptions in several languages for each key in the main table.

Can We Create a Transaction Code for Table Maintenance Generator?


To create a transaction code for Table Maintenance Generator (TMG), go to transaction code SE93.

Enter the name of the t-code to be created and press CREATE.

In the pop-up enter short description for the new t-code, Select the Transaction with parameters radio button and press continue.

In the create parameter transaction screen, Enter SM30 for transaction and check the Skip initial screen checkbox. Now add the following parameters using the insert new row button. NAME OF SCREEN FIELD VIEWNAME ZEMPL VALUE

UPDATE

Another way of creating a t-code for TMG is just create a REPORT program and call the function module VIEW_MAINTENANCE_CALL by passing view name and action as parameters. Then create a t-code for the report program.

With the parameter ACTION, you can specify the processing action to be performed. Possible actions are: ACTION DESCRIPTION S U T Display Change Transport

What is SAP Table Maintenance Generator?


To generate a table maintenance generator (TMG) for a table, display the table in ABAP Dictionary (SE11).

Select Display/Maintenance Allowed for Data Browser/Table View maintenance under Delivery Maintenance tab.

Go to Menu Utilities > Table Maintenance Generator.

Enter the proper authorization group (&NC& is without any authorization) and function group. If the entered function group does not exist, it will create a new function group to store the dialog modules of TMG. Select one step for Maintenance type and click on Find Screen Numbers on application toolbar.

Select Propose screen numbers and click on continue.

The screen number for overview screen will be automatically populated. Now click on CREATE icon on application toolbar.

Assign TMG and function group to proper package and save.

Table maintenance program is created with the above message in the status bar. Now to maintain entries in the table, go to Maintain Table Views (SM30).

In SM30 enter table name and click on maintain.

Click on New Entries button on application toolbar to maintain new entries in the table.

How to Create Secondary Index on SAP Table?


To create a secondary index on SAP table, display the table in ABAP dictionary (SE11).

We shall create a secondary index on non-key field i.e. Name. Click on Indexes button on application toolbar.

Select Yes in the popup window.

Enter index name and press continue.

Enter description for the index and index

fields i.e. MANDT and NAME. Do not forget to enter MANDT as the first index field if

it is a client dependent table. Save and activate the index.

How to create a Foreign Key in SAP table?


The purpose of the foreign key is to validate the data that is being entered into a table by checking entries in a check table. Foreign keys are checked by the front end user interface only and it is not checked if you issue a direct a SQL statement to update the database. Follow the steps given below to create a foreign key in SAP table. Step 1: Open the table in Data Dictionary (SE11) for which you want to create a foreign key. Select the field for which you want to create the foreign key and press Foreign Keys button.

Step 2: In the popup window enter the check table name and press Generate proposal button.

Step 3: The system proposes the foreign key relation based on the domain. Check that the foreign key relationship proposed by the system is correct and press copy.

Foreign key is created, now save and activate the table. To check the foreign key go to menu path Utilities->Table Contents->Create Entries.

Try to create an entry in Zemployee table with Department ID that is not there in the Department table. Enter the values and try to save the entry.

Observe the error message in the status bar. The user interface does the foreign key validation before creating the entries.\

How to create a SAP parameter ID?


SAP parameters are used to store values in user-specific global SAP memory. SAP memory allows you to pass these values between programs. ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements. Follow the steps given below to create a SAP parameter ID. Step 1: Go to SM30, enter TPARA in Table/View field and press Maintain.

Step 2: Enter the name of the Parameter ID to be created and press enter.

Step 3: Enter the description for the Parameter ID and save it.

How to check whether a SAP table has a text table?


First of all what is a text table? Text table is a table which contains descriptions in several languages for each key in the main table. The key of a text table always contains the key of main table along with a language key field(SPRAS). To check whether a table has a text table, display the table in data dictionary(SE11).

Use the menu path GOTO->Text Table.

If the table has a text table, then the text table will be displayed in the same session else a proper message will be displayed in the status bar.

You might also like