‎2007 Feb 20 2:33 PM
Hi friends ,
i have used ALV functionmodule 'REUSE_ALV_GRID_DISPLAY'
in which i have made 2 fileds r editable.
and i have defined one PF Sattus and added one exta button<- that is fine
problem is if i entering values in that 2 fields and i am saving the entries those values are not comming in the table ( i have not getting the valuse in the internal table -seen in debugging).
if i made refresh(or pressed any button) and then save, then i am getting those 2 values in internal table.....
so user can not click refres(or any button) na
directly he press save...so
what is d solution to get those vales in table....
Regsrds,
Ramesh
‎2007 Feb 20 2:35 PM
HI ramesh,
Use the following code:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.
when 'SAVE'.
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
Now your internal table will have the data that is seen in the editable alv.
endcase.
ENDFORM.
‎2007 Feb 20 2:34 PM
‎2007 Feb 20 2:35 PM
HI ramesh,
Use the following code:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.
when 'SAVE'.
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
Now your internal table will have the data that is seen in the editable alv.
endcase.
ENDFORM.