‎2010 Sep 16 10:20 AM
Hi ,
Currently in my program..we have used a data type INT2.
The data type INT2 can hold only 5 characters at a time...with no commas in between and left Justified.
Now I got a problem that..the variable which is declard with INT2 was getting populated with more than 5 charaters.
So it gettin dump.
Now I need to change the data type of that variable.
I tried declaring with INT4..or Char...all these data types are nt left justified and also have commas in between.
Please suggest a data type..which can hold morethan 5 characters..left justified n no commas in between.
The problem..in declaring the variable as CHAR and manipulate it as required..is the variable which Im using in my program is called from a zstructure..
If I wanna modify it in the structure...then I need to change all the programs where the Zstructure is used..which I cant.
So request you to help me...is there any data type..which would replace INT2 with more than 5 characters in it and also no cammas in between and should be left justified.
Pls help.
Regards,
Priya
‎2010 Sep 16 12:45 PM
Pure numeric fields (not c, not n, not string, etc.) DO NOT contain punctuation and decimals are implied. The obvious replacement for INT2 is to simply declare type I. If I needed decimals, I would convert to (15) type p decimals n. However, your output process is what is adding the punctuation....it's absolutely not embedded in a numeric field. You should read available helps (ABAP) on different data types.