‎2007 Jul 26 3:00 PM
Hi Experts,
I new to ECC 6.0. when i build an internal table. In that i have a feild
<b>lgrad TYPE p DECIMALS 3,</b>
when i run Extended Program Check when i check Obsolete statements it is giving an error
<b>
The current ABAP command is obsolete .Explicit length specifications are necessary with types C, P, X, N, and W in the OO context.</b>
how should i rectify the error.
‎2007 Jul 26 3:05 PM
Hi Raghavendra,
you must specify the lenght:
lgrad<b>(4)</b> TYPE p DECIMALS 3.
Thanks for points.
‎2007 Jul 26 3:05 PM
You need to specify the length of the field, for example;
lgrad(8) TYPE p DECIMALS 3,
Even better, define with reference to an existing data element or type.
‎2007 Jul 26 3:05 PM
‎2007 Jul 26 3:10 PM
Hi Raghavendra,
You can add the key word LENGTH to the declaration to be more legible.
so convert your statement to
<b>lgrad TYPE p LENGTH <your expected length of variable> DECIMALS 3,</b>
That would take you out of the obsolescence of the current statement.
Reward points if this helps,
Kiran