cancel
Showing results for 
Search instead for 
Did you mean: 

How to Persist Selected Rows Highlighted in Table Control on Table Scrolling

Former Member
0 Kudos

Hello Experts,

Am Operating a Transaction through Module Pool program. I need to Process Certain Selected Rows from

'N' Numbers of Rows. As soon as I Scroll Down My Table the Selected Table Rows gets Unselected and

My Screen gets Refreshed. I checked my Background Process where I do get my itab-field value 'X' ,

those which got selected. But am not able to Display the Selected rows highlighted (yellow) at PBO Whose itab-field Value is 'X'.

Please Suggest with Code.

Thanks & Regards,

Milan.

Accepted Solutions (0)

Answers (1)

Answers (1)

Vasantha_D
Participant
0 Kudos

hi ,

you have to update the internal table with the selected rows under PAI

loop ....endloop.

PAI

LOOp at itab.

module <module name>.

endloop.

in that module write the code as

modify itab from workarea index <tablecontrolname>-current_line.

plz give points if helpful..

Regards

Vasantha

Former Member
0 Kudos

Hello Vasantha,

Its there in my code already as.

MODIFY it_zpo_progress FROM wa_zpo_progress INDEX po_progress_invoice-current_line.

My Issue is once this Table in PAI gets Populated with Additional Value of Selected Rows by the User

i.e. it_zpo_progress-SEL = 'X' and then Its been called again in PBO; over there Those Rows Which were Selected by the User (i.e. selected field set true: 'SEL' value is 'X') must get highlighted for Which I tried this Syntax po_progress_invoice-line_selector = 'X'

but couldn't got it Reflected on My Screen.

janisar_munshi
Participant
0 Kudos

use in PBO

LOOP AT itab CURSOR tbl_control-current_line
     WITH CONTROL tbl_control.

   ENDLOOP.

Milan, Try following logic

PAI


LOOP AT itab.
     MODULE update_data.
   ENDLOOP.

module update_data.


MODIFY itab INDEX tbl_control-current_line TRANSPORTING sel.

endmodule.

also make sure you are using table control with selection column with itab-sel.

Regards,

Janisar