cancel
Showing results for 
Search instead for 
Did you mean: 

Error when trying to Color table row

Former Member
0 Kudos

Hi,

I am following the WIKI [http://wiki.sdn.sap.com/wiki/display/WDABAP/ColourtherowintheTable |http://wiki.sdn.sap.com/wiki/display/WDABAP/ColourtherowintheTable ]to highlight a row in the Table (Not ALV). But when i am getting a error The argument '' cannot be interpreted as a number

If i remove the context binding to the cell_design attribute of the column, everything works fine.

Can anyone please suggest?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi, Aditya .

Yes. When u wanna set the color of the row in table, it's certain that you are using "Cell_design" property of the columns.

Just as the upper expert said, you should check: whether you pass the "Cell_design" value is illegal or not. you can go to SE11 to see the datatype "WDUI_TABLE_CELL_DESIGN", whose domain's value list can tell you what/which value can be legal.

very glad to discuss with you about this topic.

Best wishes.

Former Member
0 Kudos

My Context attibute's type is WDUI_TABLE_CELL_DESIGN and i am passing 01, 02, 00 values. Just to double check i have commented my code where i am populating these codes. But still it is erroring out. I dont have any clue where i am doing wrong.

Former Member
0 Kudos

hi, Aditya.

Okay. if you comments your code where you set the color using "WDUI_TABLE_CELL_DESIGN", and the error still exists. You should check whether other places pop-out this error msg.

For example, you are using TABLE UI element, you should check the Table UI's property which you bind it with some Context Attribute, for example, First ActualRow, First VisibleRow, Visible Row count, Row count, etc..

In addition, also check other UI element and Context attribute..

As i can not know/see your errors clearly, ya this is just only my suggestion..

Very glad to discuss with you about this topic.

Hope you can get solve your issue.

Thanks,regards.

Former Member
0 Kudos

Can,

Thank you very much for your advise. FInally i could resolve this error by setting a default value to the context attribute. Not sure why this is required but the error is now gone.I have awarded the points to you.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Aditya,

change the attribute type (Pattern column node) to "WDY_UIE_LIBRARY_ENUM_TYPE" ,

hope it will solve .

regards,

Kranthi.

Former Member
0 Kudos

hi,

on which statement do u get this error. as error message clearly states some how you are passing ** to the Cell_design. Make sure that your cell_design does have only values as stated in the enumeration of WDUI_TABLE_CELL_DESIGN link

[help|http://help.sap.com/erp2005_ehp_04/helpdata/EN/45/0ef14d9d942462e10000000a1553f7/content.htm]