11-01-2007 9:03 AM
Hi All,
i want to declare as
data : begin of itab,
NETWR(30) TYPE F,
endt of itab.
It give error .
Please tell me how can declare currency field with length 30.
thanks,
Amjad.
11-01-2007 9:25 AM
Hi friend,
u can create your dataelement and domani with 30 char length. and then u can aasing it
11-01-2007 9:05 AM
11-01-2007 9:11 AM
Hi,
Thanks for replay.
The Error is like" type F can only have the length specification "8" or no length.
Thanks,
Amjad
11-01-2007 9:08 AM
Mohammed,
Type F can have a length of 8 or the length should not be defined at all.
So,declare netwr as netwr type f.
K.Kiran.
11-01-2007 9:09 AM
data : begin of itab,
NETWR TYPE F,
end of itab.
declare in above way...for ur requirement....!!!!
u can give even 30 digits also in this case...
Regards
vasu
11-01-2007 9:19 AM
HI,
IF I DECLARE ,
DATA :BEGIN OF ty_final,
netwr TYPE f,
anbtr TYPE f,
END OF ty_final.
ty_final-netwr = '12345678910111213141516171819.22'.
WRITE : TY_FINAL-NETWR.
output :
1.2345678910111214E+28
thanks,
Amjad
11-01-2007 9:22 AM
Mohammad,
To avoid such errors declare the netwr as type p decimals 2 as said by richa in the above thread.
or take one more varibale declared as type p decimals 2 and then move the ty_final-netwr to the newly declared variable.
K.Kiran.
11-01-2007 9:15 AM
Declare it as netwr(30) type p decimals 2 places.
Decimal; 2 places can be omitted if you don't want decinmal places to be defined.
11-01-2007 9:25 AM
Hi friend,
u can create your dataelement and domani with 30 char length. and then u can aasing it