Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Regarding ALV

Hi all,

I am using alv grid display where i had put only one column as editable. now what i need is,can we change the data in database at one go although i changes more than one records.

e.g. I got 8 records in alv and i changed values of ok status for all 8 records

can we change all 8 record's new values in database at one go.

Tags:
replied
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
    I_CALLBACK_PROGRAM                = W_REPID
    I_CALLBACK_PF_STATUS_SET          = 'PF_STATUS'
    <b>I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'</b>


FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
                        P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.

 when 'SAVE'.

 <b> Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data</b>


   modift ztable from table itab.

endcase.

ENDFORM.
0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question