cancel
Showing results for 
Search instead for 
Did you mean: 

InputField UI element - Blank when zero (BWZ)

Former Member
0 Kudos

I have a significant problem. In an initial entry screen, numeric fields in InputField UI elements always shows a '0' for an integer value. When the user tabs over to that field and enters, for example, 1000, the 0 stays, making the field 10000. Does anyone know how I can make the field 'BWZ' (blank when zero)?

Accepted Solutions (1)

Accepted Solutions (1)

raja_thangamani
Active Contributor
0 Kudos

Look at below thread with same issue. it might help you

Raja T

Answers (3)

Answers (3)

Former Member
0 Kudos

I'm on SP13 (don't know if this is a factor or not, but fyi)

method WDDOMODIFYVIEW .

DATA: node_info TYPE REF TO if_wd_context_node_info,

ls_properties TYPE wdy_attribute_format_prop,

my_node type ref to if_wd_context_node.

IF first_time EQ abap_true.

my_node = wd_context->get_child_node( name = 'MY_NODE' ).

node_info = my_node->get_node_info( ).

ls_properties-null_as_blank = 'X'.

node_info->set_attribute_format_props(

EXPORTING name = 'INTEGER_FIELD'

format_properties = ls_properties ).

ENDIF.

endmethod.

Former Member
0 Kudos

I stand corrected. It worked. Thanks.

raja_thangamani
Active Contributor
0 Kudos

can you share the solution with us?

Raja T

Former Member
0 Kudos

Raja,

That thread is of no help. If you actually look at that thread, you will see that the person's problem was never solved. The solution offered was for a text field that displays blanks as 0 (like ebeln), not a numeric field.