10-06-2005 8:44 AM
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
10-06-2005 9: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
10-06-2005 9: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
10-06-2005 9:43 AM
Thanks Sanjay. Also could you please tell me how to find out the length of a character string?
Sandeep
10-06-2005 9:44 AM
10-06-2005 9:45 AM
10-06-2005 9:43 AM
Hi Sandeep,
Even if you see only '1' in the selection screen, inside the program the value will be '001'.
Cheers
Vinod