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

scrolling in tablecontrol

Former Member
0 Likes
895

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

9 REPLIES 9
Read only

Former Member
0 Likes
856

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

Read only

0 Likes
856

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?

Read only

0 Likes
856

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.

Read only

Former Member
0 Likes
856

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

Read only

0 Likes
856

no information on my query in that link.

Read only

Former Member
0 Likes
856

If u want the vertical screoll bar.. tc_control --> Table control name

u can give

tc_control-lines = sy-loopc.( orelse give value directly)

Read only

0 Likes
856

hai sumi,

i have scrolling...but the problem is with selceting rows in tablecontrol.

Read only

0 Likes
856

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.

Read only

Former Member
0 Likes
856

MARK ANSWERED