‎2006 Jun 29 6:36 PM
Hi All,
How can I declare the currency field NETWR length 15 decimals 2. I declared it as NETWR1(17) TYPE P,
it is giving me error saying that maximum length for P is only 16, Please help me how should I declare it, so that I will have 15 plus 2 spaces.
Thanks
Veni.
‎2006 Jun 29 6:47 PM
‎2006 Jun 29 6:47 PM
‎2006 Jun 29 6:47 PM
‎2006 Jun 29 6:55 PM
hi,
you can use P its maximum permissible length is 16.
And thats the maximumallowed in standard data elements in SAP.
But it can be overcome by creating a custom structure like-
types:begin of type_place,
value type char15,
filler type c value '.',
dec type char2
end of type_places.
and you can passs your value in this structure and use it instead.
Or if you want go to SE90 and look for all present data elements in SAP.
Regrds,
amit
‎2006 Jun 29 7:23 PM
hi Veni,
Declare it in this way...
<b>DATA AMT LIKE VBRK-NETWR.</b>
Regards,
Santosh
‎2006 Jun 29 8:32 PM
hi madam,
this is satish .
if u have decided to use packed decimal use syntax
data amt(8) type p decimals 2.or
use
data amt type vbak-netwr.
ok bye