‎2007 Jul 16 10:06 AM
hello guys,
i created a table control with scrolling option...i have a check box in my table..the problem is when i check one row,and scroll the row is automaticlay deselected..any solution?
the following programs have the same issue..(try selecting and then scroling)
demo_dynpro_table_control_1
demo_dynpro_table_control_2
‎2007 Jul 16 10:17 AM
Hi,
Refering to demo_dynpro_table_control_1, in the PBO, between the
LOOP WITH CONTROL TABLE.
ENDLOOP.
There is a module that is the responsible to modith the internal table with the value in layout.
In the example program, this "modification" is performed by a button (or function code SETM.) In you program you have to put the same loop with a module and in that module put the statment like the following.
MODIFY itab INDEX table-current_line.
Try it.
Bye
enzo
‎2007 Jul 16 12:27 PM
hi enzo,
tried with the statement 'MODIFY itab INDEX table-current_line.' ..not successful.
actualy,in my tabcontrol,the user will scroll and select some rows and then hit a button to upload the selected rows to an internal table.
can u explain a bit eloborately as to how this can be done?
‎2007 Jul 16 1:48 PM
Hi,
If you want to select multiple row in table control then make sure you have given multiple line selection property for that table control.With wizard type this check will be written automatically.
‎2007 Jul 16 10:19 AM
please see this link for table control and <b>related things with screen shots and the events triggering ....</b>
<a href="http://">http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm</a>
reward points if it is usefull.....
Girish
‎2007 Jul 16 11:35 AM
‎2007 Jul 16 12:30 PM
If u want the vertical screoll bar.. tc_control --> Table control name
u can give
tc_control-lines = sy-loopc.( orelse give value directly)
‎2007 Jul 16 1:01 PM
hai sumi,
i have scrolling...but the problem is with selceting rows in tablecontrol.
‎2007 Jul 16 1:07 PM
I have the same thing in my program...
Declare one variable as mark in ur internal table( it_payment_holiday.)
using this PAI module this will be updated...
PROCESS AFTER INPUT.
LOOP AT it_payment_holiday.
CHAIN.
FIELD it_payment_holiday-fpltr.
FIELD it_payment_holiday-fkdat.
FIELD it_payment_holiday-fproz.
FIELD it_payment_holiday-fakwr.
FIELD it_payment_holiday-waers.
FIELD it_payment_holiday-vbel1.
FIELD it_payment_holiday-belnr.
FIELD it_payment_holiday-mark.
FIELD it_payment_holiday-fksaf.
MODULE tc_ph_modify ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
Module user_command.
MODULE tc_ph_modify INPUT.
MODIFY it_payment_holiday
INDEX tc_ph-current_line.
ENDMODULE. "TC_PH_MODIFY INPUT
mopdule user_command INPUT.
.
case sy-ucomm .
when 'Disp'.
loop at it_payment_holiday where mark = 'X'.
PROCESS...
endloop.
endmodule.
‎2007 Jul 18 7:10 AM