‎2009 Aug 21 8:18 AM
I need to save my data in a database table after i enter the values in alv.
Can any1 help me in this, the call method i need is for version 4.6
‎2009 Aug 21 8:28 AM
‎2009 Aug 24 7:08 AM
Solved it by searching through forums.
FORM save_database .
Getting the selected rows index
CALL METHOD O_GRID->GET_SELECTED_ROWS
IMPORTING ET_INDEX_ROWS = i_selected_rows.
Through the index capturing the values of selected rows
LOOP AT i_selected_rows INTO w_selected_rows.
READ TABLE itab INTO wa INDEX w_selected_rows-index.
IF sy-subrc EQ 0.
MOVE-CORRESPONDING wa TO w_modified.
APPEND append w_modified TO i_modified.
ENDIF.
ENDLOOP.
MODIFY zzzmaterial FROM TABLE i_modified.
ENDFORM. " save_database