05-28-2008 9:18 PM
hi,
i'm declaring an internal table of type sorted and using a type for that in a method. however, i have problem using 'P' as data type for one of my fields.
types : BEGIN OF ty_test,
field1(10) type c,
field2(12) type c,
packedfield TYPE P DECIMALS 4,
END OF ty_test.
during syntax check it says 'explicit length specification are necessary with types C,P....'
Thanks,
KK.
05-29-2008 2:58 AM
Hi,
For packed data types you have to mention the size specification to allocate memory.
Try this.
types : BEGIN OF ty_test,
field1(10) type c,
field2(12) type c,
packedfield(5) TYPE P DECIMALS 4,
END OF ty_test.
Hope it helps you.
Murthy.