2008 Jan 10 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.
2008 Jan 10 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.
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.
2008 Jan 10 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.
2008 Jan 10 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..
2008 Jan 10 5:54 AM
Hi,
Please refer this demo program in the system
DEMO_DYNPRO_TABCONT_LOOP_AT
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |