Skip to Content

Selected Record is Deselecting automatically in Table control

I have a table control with some records. I can view only 10 records without dragging(Visible part). I have UPDATE button in my screen, whenever that button is clicked one of the fields in selected record should update. The records which are in Non-visible part of Table control are deselecting automatically where as visible part of records are not deselecting automatically when UPDATE Button is clicked. Can someone explain me what might be the issue?

In debugging what I observed is PAI loop is triggering only for the visible part of table control after that cursor is jumping to some other line. I have a Check field to capture selected record in the TABLE CONTROL DATA Internal table .whenever any record is selected that CHK Field is updating to FLAG 'X', based on this flag field i am capturing selected data.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 07, 2017 at 07:53 PM

    It's impossible to tell you which part of your code is wrong. I can just tell you that everything you said is correct. If there's a de-select of lines, it can only come from your code.

    You should add a watchpoint on the internal table to know which statement clears unintentionally the selection component.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 08, 2017 at 04:48 AM

    In PAI part after u select 'UPDATE' , update your internal table , and again loop that internal table.

    Add comment
    10|10000 characters needed characters exceeded