‎2008 Jul 09 9:03 AM
Hi,
I have a field A(5) type n which I am using to store 5 digit numeric values.
As per requirement, in certain cases i have to set A to 'XXXXX'. But in these cases i get the value of A as '00000' in my output. Is there some way around? Or Is it best for me to declare A as type c.
‎2008 Jul 09 9:06 AM
Better U declare as Type C ...
By default type N has value 0 ..
‎2008 Jul 09 9:06 AM
Better U declare as Type C ...
By default type N has value 0 ..
‎2008 Jul 09 9:06 AM
‎2008 Jul 09 9:07 AM
hi,
Change the declaration to type CHAR ..
data : v_char(5).Regards,
Santosh
‎2008 Jul 09 9:08 AM
hi check this..
data: num(5) type n .
write: num .
it will ge used for the numbers only .
use this ..
data:char(5) type c value '1',
output(20) type c .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = char
IMPORTING
OUTPUT = OUTPUT.
write:/ output .
‎2008 Jul 09 9:09 AM
Hi Suker,
Its better you declare it as character C(5).
Hope this helps you.
Regards,
Chandra Sekhar