on 12-04-2007 8:52 AM
Hi
I have a field of type pernr_d that I wish to display as an input field. Currently it displays as a field of 8 0's i.e. 00000000 by default. I do not wish to see these zeros but want to have a totally blank field. Is there an easy way to do this or will I have to map a string field to the output field and then populate the string field from the pernr_d field?
Cheers
Ian
Hi ,
see the below code ..
REMOVING THE INITIAL I.E zeroes
DATA : LR_NODE_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO ,
ls_properties type wdy_attribute_format_prop,
LR_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
ls_properties-null_as_blank = 'X'.
LR_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_L_INFO ).
LR_node_info = LR_NODE->get_node_info( ).
LR_node_info->set_attribute_format_props( exporting name = 'Field name'
format_properties = ls_properties ).
Regards
Yash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.