Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

currency

Former Member
0 Kudos

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.

5 REPLIES 5

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

gw_curr like bseg-wrbtr.

or

gw_curr type curr.

Regards,

lalit

Former Member
0 Kudos

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...

jayakummar
Active Participant
0 Kudos

hai,

use this code...

data : variable(len) type p decimals 2.

reward if useful.

regards,

jai.m