01-10-2008 5:23 AM
I want to modify my database table by module pool using table control.
Where to change data in an internal table and where to modify data in Dbtab.
01-10-2008 5:43 AM
Hi,
The data displayed on the table control will be availabale in the corresponding internal table. Update your database table from the internal table like:
UPDATE sflight FROM TABLE sflight_tab.
where sflight_tab is an itab of sflight.
or use modify statement like:
Modify sflight FROM TABLE itab
.
Hope this helps.
Regards,
Renjith Michael.
01-10-2008 5:43 AM
Hi,
The data displayed on the table control will be availabale in the corresponding internal table. Update your database table from the internal table like:
UPDATE sflight FROM TABLE sflight_tab.
where sflight_tab is an itab of sflight.
or use modify statement like:
Modify sflight FROM TABLE itab
.
Hope this helps.
Regards,
Renjith Michael.
01-10-2008 5:52 AM
Hi Shrama,
I will send a sample code 4 u for to modify the database fileds.
check the following code once ok..
when 'SAVE'.
*Modify Internal Table
modify gt_head index my_table-current_line.
if sy-subrc eq 0.
*Modify Database Table
modify yvbap from table gt_head.
endif.
Here my_table is a TABLE CONTROL NAME.
Award points if helpful.
Kiran Kumar.G.A
Have a Nice Day..
01-10-2008 5:54 AM
Hi,
Please refer this demo program in the system
DEMO_DYNPRO_TABCONT_LOOP_AT