on 03-04-2010 7:11 AM
Hi All,
I have created an input field and binded it to a field of type NUMC 20.
Now when my initial screen opens it is displaying as 00000000000000000000.
If i use conversion exit, then my input field has one zero .
I want my input field to be blank in intial screen. How to achieve this?
Please explain
Change the Formatting Property : Display Leading Zeros of Context Attribute binded to input field as Zeros as Blank.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the method Set_attribute_null to remove the zeros.
Refer the code:
DATA: LO_EL_CONTEXT TYPE REF TO IF_WD_CONTEXT_ELEMENT.
* get element via lead selection
LO_EL_CONTEXT = WD_CONTEXT->GET_ELEMENT( ).
CALL METHOD lo_el_context->SET_ATTRIBUTE_NULL
EXPORTING
NAME = 'ATTR1'. "Give the name of the attribute which you have binded with your input 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 |
---|---|
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.