cancel
Showing results for 
Search instead for 
Did you mean: 

Make Zeroes Disappear

selvakumar_mohan
Active Participant
0 Kudos

Hi all,

In all the views that i have created, for all the numeric fields there are zeroes present in them by default. please help me in removing the same and have blank input box in the cases.

Thank you,

selvakumar M.

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_szcs
Active Contributor
0 Kudos

Hello Selvakumar,

you can remove leading zeros for output by setting the corresponding flag at the formatting options of the context attribute.

Best regards,

Thomas

Former Member
0 Kudos

Can you tell me which formatting option are you talking about?

I didn't find any.

Yashpal
Active Contributor
0 Kudos

Hi ,

use the below code..

data : lo_nd_g_selopt TYPE REF TO if_wd_context_node,

lr_node_info TYPE REF TO if_wd_context_node_info.

DATA : ls_properties TYPE wdy_attribute_format_prop.

lo_nd_g_selopt = wd_context->get_child_node( name = wd_this->wdctx_g_selopt ).

lr_node_info = lo_nd_g_entries->get_node_info( ).

ls_properties-null_as_blank = 'X'.

lr_node_info->set_attribute_format_props( EXPORTING name = 'ATTR_NAME'

format_properties = ls_properties ).

Regards

Yash

Former Member
0 Kudos

hi selvakumar.....

it is because... you have bounded your input field to attributes of type currency....

try giving it as int or string.

---regards,

alex b justin