Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Full ALV column getting editable not just cell!

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member182040
Active Contributor
0 Kudos

Check Standard Report BCALV_EDIT_01 Full ALV column editable

5 REPLIES 5

Clemenss
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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..

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member182040
Active Contributor
0 Kudos

Check Standard Report BCALV_EDIT_01 Full ALV column editable