10-07-2010 9:37 PM
Need desparate help please...
A very strange thing is happening. I have DATA_ITAB for ALV display. The ITAB has 2 extra fields one for STYLE one for COLOR as follows:-
TYPES : cellstyles TYPE lvc_t_styl ,
*for editing cells
For cell coloring
cellcolor TYPE lvc_t_scol.
The correct cells are being coloured based on the logic. The issue is with the editable cells. The whole column is being made editable including the cell. I have checked in debugger all rows of the ITAB_DATA have correct fields in the cellstyles tab with fields sorted to reflect which fields should be edidable for each index. Still the whole column is being made editable.
I am NOT using edit flag for the field catalogue so that is not a problem......I have included the cellstyles field in the layout of the grid....
Can anyone help with this issue......thnx
10-08-2010 5:56 AM
10-07-2010 11:15 PM
Hi Salman,
this is produced by your program. In debugger you can check the cellstyles table field for each row. Most probabe you do not clear the workarea/field befor setting the next table row.
Check in debugger.
Regards,
Clemens
10-08-2010 8:54 AM
I have sent snapshot of data_itab and style tables to your personal id as i couldnt see a way of attaching here. I have been chcking in DEBUGGER for the last 3 days and i see the DATA_ITAB is filled properly with the style_itab with correct fields.......
Not sure, i am beginning to think this is a bug in SAP....Please advice..
10-08-2010 9:02 AM
Can anyone plese give me 2 quick clarifications:-
Does the order of fields in the DATA_ITAB matter?
Does the DATA_ITAB need to be sorted.
I know the CELL_ITAB field in the DATA_ITAB need to contain sorted fields,,,but is there any other condition like the above 2?
Thnx
10-08-2010 10:29 AM
Thank you guys for your silence That prompted me to continue to look at my code and finally noticed I had marked the column editable in fieldcat
Once i switched that of and then called the following it worked like a GEM:-
CALL METHOD p_ob_grid->set_ready_for_input
EXPORTING
i_ready_for_input = 1.
<< Please do not offer points >>
Edited by: Rob Burbank on Oct 8, 2010 2:11 PM
10-08-2010 5:56 AM