Skip to Content
avatar image
Former Member

how show zero in dynpro input field?


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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 16, 2017 at 06:49 PM

    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

    Add comment
    10|10000 characters needed characters exceeded