Hi ,
In my ALV list out of 10 record i have selected 6th and 7th record and press the button APPROVE.
When i press APPROVE the selected record should be saved in data base table S501.
I have done the coding but the condition is taking only 1st record which i have not selected.
WHEN W_YAZ1-APPROVE = 'X'.
SORT T_S501.
LOOP AT T_S501.
READ TABLE T_YZA1 INTO W_YZA1 WHERE .....
MOVE CORESSPONDING......
ENDLOOP
APPEND T_S501.