09-08-2008 4:35 AM
Hi all.
I'm using the SET_TABLE_FOR_FIRST_DISPLAY method to display alv grid.
My question is how can I set up specific cells for editing or not.
The same columns can be editable at the first record and disable at the second.
Thanks in advance,
Rebeka
09-08-2008 4:51 AM
Hi,
You need to use the attribute
Use attribute CL_GUI_ALV_GRID=>MC_STYLE_ENABLED to set a cell to status "editable".
Use attribute CL_GUI_ALV_GRID=>MC_STYLE_DISABLED to set a cell to status "non-editable".
Please check the program BCALV_EDIT_02.
Hope this helps you.
Thanks,
Ruthra
09-08-2008 4:51 AM
Hi,
You need to use the attribute
Use attribute CL_GUI_ALV_GRID=>MC_STYLE_ENABLED to set a cell to status "editable".
Use attribute CL_GUI_ALV_GRID=>MC_STYLE_DISABLED to set a cell to status "non-editable".
Please check the program BCALV_EDIT_02.
Hope this helps you.
Thanks,
Ruthra
09-08-2008 4:53 AM
Hi ,
If you want to edit the field in the alv report then you can specify the same in your fieldcatlog for which you have to specify Filedcat-input = 'X'. The example for the is given below :
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KWMENG'.
LS_FIELDCAT-TABNAME = 'HEADER'.
LS_FIELDCAT-SELTEXT_L = 'SO Qty.'.
LS_FIELDCAT-INPUT = 'X'.
APPEND LS_FIELDCAT.
By this way you can keep the field as editable in a Alv report .
I hope this answers your question ....
Regards
Shankar
09-08-2008 4:59 AM
09-08-2008 5:04 AM
Hi Rebeka,
Check below links
http://www.saptechnical.com/Tutorials/ALV/Edit/F4.htm
http://www.saptechnical.com/Tutorials/ALV/Edit/demo.htm
Thanks and Regards,
Syf
09-08-2008 5:54 AM
Hello Rebeka
You will find all required information in the excellent tutorial
[An Easy Reference For ALV Grid Control|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907], pages 47ff
Please note that LVC_T_STYL is a sorted table type. Thus, you need to use INSERT ... INTO TABLE... statements instead of APPEND.
Regards
Uwe