Posts

Showing posts with the label Editable ALV fields

SAP ABAP - Sample Report Program On Making ALV Grid Fields Editable.

Image
This is a sample report program which shows how to make alv grid fields editable. This report program make the total screen editable. Also shown is how an event is triggered at run time. SAMPLE PROGRAM: REPORT zsample_alv_grid_edit. TYPE-POOLS: slis. * DATE TO BE DISPLAYED DATA: gt_sflight TYPE TABLE OF sflight. DATA: gs_layout TYPE slis_layout_alv. * SELECTION SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_sflight. * ALV EDITABLE SET-UP gs_layout-edit = 'X'. * CALL ALV DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'ZBCALV_FULLSCREEN_GRID_EDIT' i_callback_user_command = 'USER_COMMAND' i_structure_name = 'SFLIGHT' is_layout = gs_layout TABLES t_outtab = gt_sflight. *&---------------------------------------------------------------------* *& Form user_command *&-------------------------------------------------------...