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

table control

Former Member
0 Likes
631

Hi All,

I have created a table control. When i select the rows and scroll down, the rows i have selected are getting un-selected. But the selected rows are getting printed according to the requirement. Only thing is it is getting un-seelcted once we scroll up/down.

But while debugging i have found this values.

TCCUSTOM-LINE_SELECTOR = 'X'.

TCCUSTOM-LINE_SEL_MODE = '2'.

this is working properly. I dont know what could be the reason for the problem.

Please help me on this.

Thanks,

Karthi.

Moderator message: please use a more descriptive subject line next time.

Edited by: Thomas Zloch on Apr 19, 2010 2:12 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
598

Hi Karthi,

Check all your PBO modules, it seems like that you've pre-populated your table control and modify your table control with table_conbrol-mark.

You might check all your PAI modules as well.

Do a debug in all your modules and create a Watch-Point in your table_control-mark.

Pls let me know if I can provide more information.

Thanks.

Jun

5 REPLIES 5
Read only

asik_shameem
Active Contributor
0 Likes
598

Hi,

You might have written the logic for populating the table control data in PBO. That is why its happening I guess. Move the coding in to the PAI.

Read only

Former Member
0 Likes
598

Hi,

My suggestion is.....

U have to make the changes in Table control reflect in the Internal table...use this code in PAI...

PROCESS AFTER INPUT.
LOOP AT <internal table for table control>.
    MODULE reflect_data_internal_table.
  ENDLOOP.

Then in MODULE reflect_data_internal_table.

write this line..

MODIFY <INTERNAL TABLE> FROM <WORKAREA OF INTERNAL TABLE> INDEX <TABLE CONTROL>-current_line.

Now if u run the pgm the selection u made in table control will reflect in internal table...and thus will not disappear...

Edited by: SENTINEL on Apr 19, 2010 1:15 PM

Read only

Former Member
0 Likes
599

Hi Karthi,

Check all your PBO modules, it seems like that you've pre-populated your table control and modify your table control with table_conbrol-mark.

You might check all your PAI modules as well.

Do a debug in all your modules and create a Watch-Point in your table_control-mark.

Pls let me know if I can provide more information.

Thanks.

Jun

Read only

former_member233090
Active Contributor
0 Likes
598

hi

hi,,,,

go through the below demoprograms


DEMO_DYNPRO_TABLE_CONTROL_1
DEMO_DYNPRO_TABLE_CONTROL_2

and c the example in saptechnical go to Tutorials then ABAP and TableControlDemo

Edited by: Bhavana Amar on Apr 19, 2010 2:26 PM

Edited by: Bhavana Amar on Apr 19, 2010 2:27 PM

Read only

Former Member
0 Likes
598

I solved it myself