‎2006 Nov 07 1:23 PM
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
‎2006 Nov 07 1:25 PM
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
‎2006 Nov 07 1:27 PM
set a selection field for your table control ,
( for examle FLAG(1) )
then loop at tc_xyz where FLAG eq 'X'.
..........
endloop.