Skip to Content
author's profile photo
Former Member

Displaying '001' on the selection screen using numc type

Hi All,

I'm having a report program and have a parameter on the selection screen. The parameter is of NUMC type and is having 3 characters. I want to initialize this field with the value '001'. But when the selection screen appears the displayed value is 1 and not 001. The zeroes get truncated. Is there any way by which i can use numc itself and display 001. if i use character type, i'll have to do the validation for non-numeric characters. Can someone help me out?

Thanks,

Sandeep

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 06, 2005 at 08:08 AM

    Hi Sandeep,

    This is not possible with numeric fields in selection screen beacuse of automatic conversions on screen output . You have to define a char field on screen, put validations for numeric in AT SELECTION-SCREEN and later pass it to a numeric field in program and use it .

    Cheers

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 06, 2005 at 08:43 AM

    Hi Sandeep,

    Even if you see only '1' in the selection screen, inside the program the value will be '001'.

    Cheers

    Vinod

    Add comment
    10|10000 characters needed characters exceeded