Skip to Content
0

how show zero in dynpro input field?

May 16, 2017 at 04:14 PM

40

avatar image


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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

vikram Muralidharan May 16, 2017 at 06:49 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded