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: 

value based on currency

Former Member
0 Kudos

Hi experts,

I need to display value based on the Currency key(Region)

for example , If the currency is japan the value should not display in decimals

if the currency is in german then the value should display 2 decimals place.

Pls suggest the idea to display it in report.

Thanks in advance

sai

2 REPLIES 2

Former Member
0 Kudos

Hi,

u need to create then some local variables .

data: v_curr_german type p dec 2,

v_curr_japan type p dec 0.

loop at itab.

if itab-cuky is 'German currency key give here'.

v_curr_german = itab-curr_value.

endif.

if itab-cuky is 'Japan currency key give here'.

v_curr_japan = itab-curr_value.

endif.

.

.

endloop.

Regards

Manas

Message was edited by:

MANAS RANJAN PANDA

Former Member
0 Kudos

Hi Karthik,

Try FM

SD_CONVERT_CURRENCY_FORMAT

or

CONVERT_AMOUNT_TO_CURRENCY

or

HR_CONVERT_TO_LOCAL_CURRENCY

Hope it helps.

Lokesh

Message was edited by:

Lokesh Aggarwal