In SAP ABAP, creating a custom transaction code (TCode) for a table allows users to directly maintain or display table entries without remembering the standard transaction names.
Prerequisites :
Before creating a TCode:
A custom table should already exist in the Data Dictionary.Example table: ZVA_EMP_20Proper authorization to create transactions.
Create a Table Maintenance Generator( TMG ) :
Go to se11 Transaction Code.Enter your custom Table name ( Ex : ZVA_EMP_20 ).Click on Display.From the top menu ( Utilities → Table Maintenance Generator ).
Click on Table Maintenance Generator .
Click on find screen no.
Select propose screen number and click on ok.Now Click on create button then TMG Generated.
SAP generates:
Function groupMaintenance screensStandard maintenance program
Test Table Maintenance :
Go to SM30 Tcode .Enter a Table Name and Click on Maintain.
Create a Custom Transaction Code :
Now create a direct transaction for the table.
Open Transaction SE93.Enter custom transaction code ( ex : ZEMP_MAINT ).Click on a Create.Choose Transaction Type is Transaction with parameters (Parameter Transaction).
Now Click on save T-code for Table created .
Providing the Default values also.
Finally open table t-code ( ZEMP_MAINT ).
Click on Enter.
Now open .
Flow :
SE11
↓
Generate Table Maintenance
↓
SM30 Test
↓
SE93
↓
Create Parameter Transaction
↓
Assign SM30 Parameters
↓
Save & Test
Conclusion :
Creating a T-Code for a custom table in SAP ABAP involves:
Creating a table maintenance generatorTesting using SM30Creating a parameter transaction in SE93Passing table parameters to SM30
This approach helps users directly maintain table entries through a simple custom transaction code.
In SAP ABAP, creating a custom transaction code (TCode) for a table allows users to directly maintain or display table entries without remembering the standard transaction names.Prerequisites :Before creating a TCode:A custom table should already exist in the Data Dictionary.Example table: ZVA_EMP_20Proper authorization to create transactions.Create a Table Maintenance Generator( TMG ) :Go to se11 Transaction Code.Enter your custom Table name ( Ex : ZVA_EMP_20 ).Click on Display.From the top menu ( Utilities → Table Maintenance Generator ).Click on Table Maintenance Generator . Click on find screen no.Select propose screen number and click on ok.Now Click on create button then TMG Generated.SAP generates:Function groupMaintenance screensStandard maintenance programTest Table Maintenance : Go to SM30 Tcode .Enter a Table Name and Click on Maintain. Create a Custom Transaction Code :Now create a direct transaction for the table.Open Transaction SE93.Enter custom transaction code ( ex : ZEMP_MAINT ).Click on a Create.Choose Transaction Type is Transaction with parameters (Parameter Transaction).Now Click on save T-code for Table created .Providing the Default values also. Finally open table t-code ( ZEMP_MAINT ). Click on Enter.Now open .Flow :SE11↓Generate Table Maintenance↓SM30 Test↓SE93↓Create Parameter Transaction↓Assign SM30 Parameters↓Save & TestConclusion :Creating a T-Code for a custom table in SAP ABAP involves:Creating a table maintenance generatorTesting using SM30Creating a parameter transaction in SE93Passing table parameters to SM30This approach helps users directly maintain table entries through a simple custom transaction code. Read More Technology Blog Posts by Members articles
#SAP
#SAPTechnologyblog