Skip to Content
0
Dec 27, 2007 at 06:43 AM

Problem with Cell Variants

22 Views

Hi All,

We have a scenario in which we have to change the cell editor of a column (Requester_ID) based on the value of another column (Request_type). The column Request_type can have 4 different values.

The requirement is to make the column REQUESTER_ID editable, if the value of REQUEST_TYPE is anything other than '4'. when it is '4', REQUESTER_ID has to be non editable.

We created a cell editor of type input field for the column REQUESTER_ID. Then we created a cell variant of type text view for this field. The cell variant key is set to '4' and the field name is set to REQUEST_TYPE.

But this approach gives a dump when there is any value other than '4' in REQUEST_TYPE. It is not taking the default cell editor as input field for other values 1,2,3.

Do we have to create a cell variant for each possible value, or is there any other approach.

If there is no other way, we are thinking of creating a new field, with only two values. One indicating REQUEST_TYPE as 4, otherwise initial.

This is very urgent requirement. Any help in this regard will be great.

Also please provide the reference/help for cell variants. I am not able to find one in help.sap.com.

Thanks,

Anand