2007 Dec 24 11:04 AM
Hi,
i have a doubt. how can we write the code to declare the 'currency' field in ABAP program..pls, be send me the reply ASAP..
Thanks & Regards,
sunil.
2007 Dec 24 11:07 AM
Hi,
Yes you can decalre currency fields in ABAP programs.
Data : begin of itab.
waers like bsis-waers,
end of itab.
or
data : amount like bsis-waers.
or
data : amount type curr.
Thanks,
Sriram Ponna.
2007 Dec 24 11:07 AM
Hi,
U can use the types that are already available for currenecy type.
Eg: Wertv7, wertv8 -- > Domains for Currency Fields
Data : z_curr type netwr. --> Netwr Data Element has the domain wertv8.
Awrd Points if useful
Bhupal
2007 Dec 24 11:09 AM
2007 Dec 24 11:15 AM
hi,
Currency amount will be showed in your company code local currency.
so you can use BSEG-DMBTR to display the same thing.
DMBTR CURR 13(2) -->Amount in local currency
WRBTR CURR 13(2) -->Amount in document currency
Regds
Sivaparvathi
Please reward points if helpful...
2007 Dec 24 11:17 AM
hai,
use this code...
data : variable(len) type p decimals 2.
reward if useful.
regards,
jai.m