05-07-2017 6:18 PM
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.
05-07-2017 8: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.
05-08-2017 5:48 AM
In PAI part after u select 'UPDATE' , update your internal table , and again loop that internal table.