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

Module Pool Programming

Former Member
0 Likes
605

Hi friends, i am facing problems with module pool programming as i am doing it first time . actually i need to create a custom table(ztable) and i need to create a transaction code for the user to enter data into it. when ever the user enters data in transaction it should be populated into my ztable automatically. for that i need to write code under PAI and PBO. pls send some code to meet this criteria.

Kumar.

5 REPLIES 5
Read only

Former Member
0 Likes
577

Hi

Why don't you generate the table maitenance program (for SM30) by trx SE11?

If you want to create one by yourelf you should use the table control concept, so try to ee some sample from trx DWDM.

Max

Read only

Former Member
0 Likes
577

hi,

<b>Table Maintenance generator is required for your requirement.</b>

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...

<u><b>

how to create a a T-code of TMG of ur table</b></u>

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...

Rgds

Reshma

Read only

0 Likes
577

Hi Reshma what ever u said to create table maintanace is right.but i need some validations to be done before entering the data into table. is i am able to do it in SM30. i think no. for this reason i required module pool programe.

Kumar.

Read only

0 Likes
577

Hi

U can use the exit available for SM30 in order to insert your validations, after gererating the program you need to go to Enviroment->Modifications->Events.

Anyway if you need you can change the code generated directly

Max

Read only

Former Member
0 Likes
577

go through the ABAPDOCU transaction

Sudheer