Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Extended Program Check

Former Member
0 Likes
706

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.

4 REPLIES 4
Read only

umberto_panico
Participant
0 Likes
546

Hi Raghavendra,

you must specify the lenght:

lgrad<b>(4)</b> TYPE p DECIMALS 3.

Thanks for points.

Read only

Former Member
0 Likes
546

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.

Read only

Former Member
0 Likes
546

hi,

try to set the lenght of field Igrad.

Read only

Former Member
0 Likes
546

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