‎2007 May 22 1:01 PM
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.
‎2007 May 22 1:03 PM
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
‎2007 May 22 1:05 PM
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.
<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
‎2007 May 22 1:12 PM
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.
‎2007 May 22 1:21 PM
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
‎2007 May 22 1:17 PM