on 01-09-2008 2:00 PM
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)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I stand corrected. It worked. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.