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

Editable ALV

Former Member
0 Likes
306

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
286

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.

2 REPLIES 2
Read only

Former Member
Read only

Former Member
0 Likes
287

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.