‎2008 Dec 16 6:07 AM
Hi all,
I am Using ALV grid using Object Oriented methods.I am doing some changes in my Internal table in HANDLED_DATA_CHANGED event method.But while coming out from this Screen flowlogic,the updated records were disapper in Internal table...What is the reason for this..how can i overcome this...?
Thanks In advance..
‎2008 Dec 16 9:18 AM
Hi,
DATA: lt_rows TYPE lvc_t_row,
lt_index TYPE lvc_s_row-index.
CALL METHOD ref_grid->get_selected_rows
IMPORTING
et_index_rows = lt_rows.
LOOP AT lt_rows INTO lt_index.
READ TABLE it_tab INTO wa_it_tab "reading internal tab with current index
INDEX lt_index.
modify it_tab from wa_it_tab
INDEX lt_index.
ENDLOOP.
Thanks & Regards,
Krishna...
‎2008 Dec 16 6:11 AM
‎2008 Dec 16 6:26 AM
‎2008 Dec 16 7:43 AM
Hi shan & Saurabh,
Thanks for your reply....I modifid my ITAB in DATA_CHANGED event method.But while it comes out of this event method,the modified data disappered.Why it is happing like this...what is the solution for this?
‎2008 Dec 16 9:18 AM
Hi,
DATA: lt_rows TYPE lvc_t_row,
lt_index TYPE lvc_s_row-index.
CALL METHOD ref_grid->get_selected_rows
IMPORTING
et_index_rows = lt_rows.
LOOP AT lt_rows INTO lt_index.
READ TABLE it_tab INTO wa_it_tab "reading internal tab with current index
INDEX lt_index.
modify it_tab from wa_it_tab
INDEX lt_index.
ENDLOOP.
Thanks & Regards,
Krishna...