Application Development and Automation 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: 
Read only

currency

Former Member
0 Kudos
293

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
Read only

Former Member
0 Kudos
244

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.

Read only

Former Member
0 Kudos
244

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

Read only

Former Member
0 Kudos
244

Hi,

gw_curr like bseg-wrbtr.

or

gw_curr type curr.

Regards,

lalit

Read only

Former Member
0 Kudos
244

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

Read only

jayakummar
Active Participant
0 Kudos
244

hai,

use this code...

data : variable(len) type p decimals 2.

reward if useful.

regards,

jai.m