‎2010 Apr 08 9:46 AM
Hi Experts, I have struck up in generating item no and saving data.
Can any one tell me how to store the data from table wizard to a database table in a modulepool. and is it possible to generate the line item no like 10 20 30... in the first column as item no. and which shold be taken automatically when i press enter after entering some data in the row.
Thanks in Adv
‎2010 Apr 08 10:05 AM
HI,
Every thing you have said can be done very easily and very much possibal. Look for any simple document on table control. If you know how table control worl you can easily do it.
Just a way to move forward.
LOOP WITH CONTROL tab_con.
MODULE fill_tab_con.
ENDLOOP.
In every loop pass one line of control is read.
and to populate new entry with counter pouplate tab_con-counter field with desigre value.then call same loop in PBO
see this link for more help.
[http://sap.niraj.tripod.com/id29.html]
Edited by: Anurag_n on Apr 8, 2010 11:06 AM
‎2010 Apr 08 10:14 AM
but the thing is that i have to get the item no as soon as i press ENTER KEY and the data has to be save to the database table when i press save on the application tool bar
‎2010 Apr 08 10:28 AM
Update the serial number field in PAI of screen
loop with control <control name>
<modify the srno field>.
endloop.Regards
Vinod