Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how show zero in dynpro input field?

Former Member
0 Kudos


DATA: TXTFLDNUM(10) TYPE C,
TXTLBLVAL(10) TYPE C,
lv_num(10) type C.
.............
call SCREEN 100.
............

MODULE check_value INPUT.
IF TXTFLDNUM EQ '0000000000'.
MOVE '0000000000' TO TXTFLDNUM.
ENDIF.
ENDMODULE. " CHECK_VALUE INPUT

1 REPLY 1

Former Member
0 Kudos

The field TXTFLDNUM is declared as a type 'C'. The initial value for 'C' types is not '0' but space. Hence your if condition will not be true. Try modifying the if condition to 'is initial'.

Thanks,

Vikram.M