Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV objects

Former Member
0 Likes
554

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..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
530

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...

4 REPLIES 4
Read only

Former Member
0 Likes
530

refer demo program..

BCALV_EDIT_03

Read only

Former Member
0 Likes
530

Hi,

try this link, this can provide you some help:

Regards

Saurabh

Read only

0 Likes
530

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?

Read only

Former Member
0 Likes
531

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...