Application Development 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: 

about creation of T-code to a table

Former Member
0 Kudos
135

will any scenario comes for creating a T-code to a table (eg : for mara or for any user created table).If so how to create a T-code for a table?

1 ACCEPTED SOLUTION

0 Kudos
111

Hi,

You cannot create a TCODE for a table, what you can do is Generate a Maintenance screen for it using Table Maintenance Generator option and then you can create the transaction for the Function group in which you have created the Maintenance screen.

Regards,

Sesh

4 REPLIES 4

0 Kudos
112

Hi,

You cannot create a TCODE for a table, what you can do is Generate a Maintenance screen for it using Table Maintenance Generator option and then you can create the transaction for the Function group in which you have created the Maintenance screen.

Regards,

Sesh

Former Member
0 Kudos
111

Hi,

Table Maintenance generator is required for that.

If the requirement is to update the table only programmatically

and not manually then table maint generator is not required.

Manual entries in table can be maintained ( New record can be inserted / existing can be modified )

using transaction SM 30, if the table maintenance for the table is generated.

http://help.sap.com//saphelp_470/helpdata/EN/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm

How to activate Table maint.

Goto SE11 and open the table.

Click UTILITIES -> Table Maint. Generator, Enter the details and click on Save. Then activate the table.

chk a sample 1.

refer.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20im...

******************

how to create a a T-code of that

Go to se93.

Then create the new T.code.

Under that select parameter Transaction.

Then give the sm30 in the t.code in default values tab.

check the checkbox skip initial screen.

in classification tab.

click checkbox inherit gui attributes..

Now below..

In the default values..

WRITE

viewname = give ur table name.

show = X

save and check it once...

now u can able to call ur table through ur new t.code...

Regards

Reshma

kvenkatesh-in
Explorer
0 Kudos
111

Hi,

As they said first you have to generate table maintenance for your custom table. Then you can create a Parameter transaction to that table. In parameter transaction you have to give SM30 as base transaction.

-Venkatesh

Former Member
0 Kudos
111

Hi

Go to SE93 TCODE.

Need to Pass the transaction code as ZXXX.

Need to click on create buton.

Need to pass the development class as ZXX.

Need to pass the transaction text XXXXXXXXXXXX

Under transaction need to pass SM30.

Under default values pass below values.

Name of Screen Field Value

VIEW_NAME ZXXXXX(Table)

UPDATE X

Click on Save Button.

Reward points if useful.

Thanks & Regards,

Vasudeva Rao