‎2007 Mar 20 2:19 PM
HI Experts,
I have built a table control based on a DB table using table control wizard.I have added the code to insert a blank line to the table control. I have added another button to update the data into the DB table. Now I want ot enter the values in the blank line and click on the update button the values should get updated in the DB table. what is the logic i need to write to achieve this??
thanks in advance
sankar
‎2007 Mar 20 2:21 PM
HI Sankar,
Refer these programs
RSDEMO_TABLE_CONTROL
DEMO_DYNPRO_TABLE_CONTROL_1
DEMO_DYNPRO_TABLE_CONTROL_2
RSDEMO02
Regards,
Santosh
‎2007 Mar 20 2:21 PM
Check these reports in SE38.
DEMO_DYNPRO_TABLE_CONTROL_1
DEMO_DYNPRO_TABLE_CONTROL_2
DEMO_DYNPRO_TABCONT_LOOP_AT.
Regards,
Amit
‎2007 Mar 20 2:29 PM
hi guys,
thnaks for your reply
Unfortunately none of the program is helpful. No program talks about the updation of the data from the table control to the DB table..
thanks
sankar
‎2007 Mar 20 6:22 PM
Hi,
For eg: itab is the table control.
In PAI:
if sy-ucomm = 'UPDATE':
update mara from itab.
ENDIF.
Br,
Laxmi
‎2007 Mar 20 3:23 PM
Hi
Whenever you create a tablecontrol , u assign some internal table or database table to it. In case of internal table , if u want to update database , u just have to write an update DB from internal table in PAI of your program.I hope its helpful for you .
Reagards
Madhumati
*Rewards points if helpful
‎2007 May 25 8:25 AM
Hi Madhumati,
I also have to do same sineario in my program , if you have solved this problem please send me my persional id itsajaypandey@yahoo.co.in .
I am waiting for your reply .:)
Thankx in Advance
Ajay Pandey