The ALV Grid hides inside itself possibility to use ASCII symbols. All you need to do is to mark the one of fields in field-catalog as symbol and then use constants defined in TYPE-POOL SYM in order to ...
... and you can modify layout or field catalog settings to make it editable. Please check following code to see example of usage:
report zsalv_grid_events.
class lcl_grid_trick definition ...
Column class was created to be able modify faster the settings of field catalog at any place and time. Each field of field catalog has it set method with only one parameter IV_VALUE which type is equal ...
... ethod to create LVC field-catalog from internal table like in this article.
class-methods lvc_fcat_from_itab
importing
!it_table type standard  ...
... 3 ways to make your grid editable, you can set whole grid editable in layout, some columns in field catalog and some cells in cells style table. This demo shows it all.
"! This is demo for FALV with edit settings ...
... e
falv->title_v1 = 'ZDEMO_FALV10'.
"Changing some of field catalog settings for column colors
falv->column( 'SEATSMAX' )->set_color( 'C700'&n ...
... to adapt fieldcatalog the we can use standard old technique of getting frontend field catalog and then manipulating the entries or we can use column method which returns zcl_falv_column object and then ...
... le editable reports to omit screen creation
All events are already handled and with redefinition of method I can faster use it
Faster setting of layout and field catalog attributes
Eas ...
... editable reports to omit screen creation All events should be already handled and with redefinition of method I can faster use it Faster setting of layout and field catalog attributes Easy switch ...
Many people still asks how to create field catalog for CL_GUI_ALV_GRID or REUSE_ALV_GRID_DISPLAY on a base of internal table. This is very easy since we have SALV classes, you could see it in ...
... columns in ALV grid (LVC_T_COL) and fieldcatalog of ALV (LVC_T_FCAT). This FM adds proper selection-screen lines on a base of fieldcatalog and selected columns, then it displays selection-screen ...
... add missing fields to the field catalog and then fill them during the call of MB51 - this would solve the first part of the request but users will have to do additional two clicks to go to ALV grid which ...
... add needed fields to fieldcatalog and call FM to update characteristics when save button was pressed. I realized I need dynamic structure for ALV which will call standard screen for characteristic update. ...
... here.... firstly I check if the fieldcatalog was passed. If not then I create it on a base of internal table with usage of cl_salv_table and cl_salv_controller_metadata=>get_lvc_fieldcatalog. ...
... a method to fill only fields from one subscreen. I will use here FM RS_VARIANT_CATALOG to allow user to select variant for subscreen, FM RS_VARIANT_CONTENTS to read it's content, FM RS_ISOLATE_1_SELSCREEN to ...
... will be always empty, used to set up a summary on that field so subtotal lines are displayed in grid. Our fields are defined so lets set fieldcatalog and sort properties for them (lvc_s_sort): loop at ...