Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

module-pool table control

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

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..

Former Member
0 Kudos

Hi,

Please refer this demo program in the system

DEMO_DYNPRO_TABCONT_LOOP_AT