Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9041

Refresh_table display problem

$
0
0

Hi Experts,

 

I created editable ALV  Program.

 

Ctrated copy button in tool bar.

user has to select the row and click on copy based on that i am identifying the row and inserting the internal table.

 

using cl_gui_alv_grid->get_selectd->rows.

 

First time i clicked on copy it is getting copied but in second time by selecting the row and clicking copy it is not coping and not showing row.

 

see below code .

 

WHEN 'COPY'.
     v_alvgd->check_changed_data( ).
     CALL METHOD v_alvgd->get_selected_rows
       IMPORTING
         et_index_rows = lv_row
         et_row_no     = lv_id.

    READ TABLE lv_id into lv_id1 INDEX 1.


*Read table lv_id into lv_id1 INDEX 1.

lv_index1 = lv_id1-ROW_ID  .

DESCRIBE TABLE i_final LINES lv_no.

   READ TABLE i_final2 into w_final2 INDEX lv_index1.
   lv_index2 = lv_index1 + lv_no.
   INSERT w_final2 INTO i_final index lv_index2.
       i_pbo = i_final.

 

CALL METHOD v_alvgd->refresh_table_display
     EXPORTING
       is_stable = i_re_alv
     EXCEPTIONS
       finished  = 1
       OTHERS    = 2.
   IF sy-subrc <> 0.

 

 

Please check and let me know how to resolve it its an urgent.

 

Thanks & regards

Kiran


Viewing all articles
Browse latest Browse all 9041

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>