cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying blank instead of 0 for numeric columns

AlexGiguere
Contributor
0 Kudos

In my WD4A, I am using the reusable component for ALV, I have an editable field, numeric type, by default the default value is 0, is it possible instead of displaying a default value of 0 having nothing or space.

I know I could change the type of my attribute for char, but I like to have the automatic check for non numeric field.

Alex

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can use following method to set the null propertry for the attributes

data : ls_properties TYPE wdy_attribute_format_prop.

ls_properties-null_as_blank = 'X'.

LR_node_info->set_attribute_format_props( exporting name = <attribute name>

format_properties = ls_properties ).

LR_NODE_INFO is the ALV node where in data is popluate for display.

Edited by: Rohit Chowdhary on Jan 8, 2010 10:33 PM

AlexGiguere
Contributor
0 Kudos

I did a where-used on your structure and it's not used anywhere ...

Also, the method you are talking set_attribute_format_props does not exist in the interface if_wd_context_node,

maybe I am missing something?

We are on ECC 6.04 SPS03,

thanks

Alex

AlexGiguere
Contributor
0 Kudos

ok, I found it, let me test it!

AlexGiguere
Contributor
0 Kudos

Thanks for the information, the thing is that it does not work for attribute of type INT4, but it work for NUMC,

I just changed my attribute type for NUMC

Alex