Abstract:
To make serial number field editable and non -editable dynamically based on the material in ALV display, if a material is serialized(editable) and gray out if not.
Executive Summary:
This program is used to make the ALV field editable if a material is serialized and disable if a material is not serialized for the users. User can provide the serial numbers and can post the Material document on click of save.
Processing Logic:
PERFORM fill_celltab USING gt_outtab-sernp
CHANGING lt_celltab.
FORM fill_celltab USING wt_outtab-sernp TYPE marc-sernpCHANGING pt_celltab TYPE lvc_t_styl.
DATA: ls_celltab TYPE lvc_s_styl,
l_mode TYPE raw4.
IF wt_outtab-sernp <> ''.
l_mode = cl_gui_alv_grid=>mc_style_enabled.
ELSE.
l_mode = cl_gui_alv_grid=>mc_style_disabled.
ENDIF.
ls_celltab-fieldname = 'FIELD'.”field= the field name you want to make editable”
ls_celltab-style = l_mode.
INSERT ls_celltab INTO TABLE pt_celltab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |