Skip to Content
0
Former Member
May 28, 2008 at 08:18 PM

declaring packed field in types in OO context

676 Views

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.