Application Development and Automation 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: 
Read only

Multiple record update in TABLE Control.

Former Member
0 Likes
735

Hi All,

I m developing dialog program with table control.

I want to know how to update multiple records through the table control if user selects more than one.

Also depending on some condition i want to change the status of one reocrd and not the column as a display field and won't be editable. I have tried with loop at screen and modify screen, but it is showing the whole column as display only.

ANy solution let me know

2 REPLIES 2
Read only

anversha_s
Active Contributor
0 Likes
368

Hi,

pls chk this standard pgms.

for examples on table control

demo_dynpro_tabcont_loop

demo_dynpro_tabcont_loop_at

RSDEMO_TABLE_CONTROL

chk a sample code.

DATA :BEGIN OF int_table OCCURS 0,
       fld1 TYPE ztable-fld1,
        fld2 TYPE ztable-fld2,
        fld3 TYPE ztable-fld3,
        chk(1),
      END OF int_factor.

*write the blow code in PAI

LOOP AT int_table WHERE chk = 'X'.
*modify the data base table
MODIFY ztable FROM  int_table. "from header
clear int_table
ENDLOOP.

regards

Anver

Read only

Former Member
0 Likes
368

set a selection field for your table control ,

( for examle FLAG(1) )

then loop at tc_xyz where FLAG eq 'X'.

..........

endloop.