2004 Aug 27 3:04 AM
Hi,
How can I make one cell in a ALV control editable?
Is it possible to do so by specifying the column and row index to do this?
The BCALVEDIT* programs tend to allow columns editable, but not demonstrate down to a cell level.
Thanks.
Michael
Hi,
How can I make one cell in a ALV control editable?
Is it possible to do so by specifying the column and row index to do this?
The BCALVEDIT* programs tend to allow columns editable, but not demonstrate down to a cell level.
Thanks.
Michael
2004 Aug 27 7:33 AM
Hi Michael,
you can do this as follows:
- in your ALV-structure you need a (technical) field of the type LVC_T_STYL. You can define the name of the field as you desire, e.g. CELLTAB.
- the layout structure of the ALV of type LVC_S_LAYO has a field named STYLEFNAME. You must fill this field with the name of your table, in our example CELLTAB: ls_layout-stylefname = 'CELLTAB'.
- to define the style for a cell or a row in your ALV you must fill the CELLTAB of the respective row. The type LVC_S_STYL has two fields: FIELDNAME and STYLE; if you want the style only for a cell you must fill the field FIELDNAME with the name of the respective field in your ALV-structure. If you want the style for the whole row, you can leave the field FIELDNAME blank. For the several styles of the ALV-Grid have a look at the member variables of the ALV-Grid named MC_STYLE*. The editable / not_editable styles are MC_STYLE_ENABLED and MC_STYLE_DISABLED, respectively.
Hope this helps ...
best regards,
Michael
2004 Aug 27 7:47 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |