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: 

changes in program

Former Member
0 Kudos

Hi guys,

we have one program where we calculate currency conversion rates e.g, BUD 2009,BUD 2010,ACT 2009,ACT 2010,LE1 2009 ....In my program they have code which calculates BUD CY(Budget current year rate),BUD PY(Budget previous year rate),

ACT CY(Actual current year)....now they want me to add more codeso itcalculates ACT PY(Actual previous year rate)

I am poor in ABAP coding..a functional guy...Can any one refer to code below and helpme how I can change code so it fits ACT PY(Actual previous year)...

I gave parts of whole code where they wrote BUD CY AND BUD PY code..both are same with minor changes...May be you can have a look at them and change ACT CY code given below so it fits ACT PY ....Many Many Thanks.

Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code

Edited by: Rob Burbank on May 25, 2010 5:03 PM

1 REPLY 1

former_member214857
Contributor
0 Kudos

Hi

You can use function module below:

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'

EXPORTING

date = conv_date

foreign_amount = vdf_s060-kawrt_k

foreign_currency = vdf_vbrk-waerk

local_currency = vdf_s060-stwae

rate = vdf_vbrp-kursk

type_of_rate = lv_kurst

IMPORTING

local_amount = vdf_s060-kawrt_k

EXCEPTIONS

no_rate_found = 4.

Kind regards

Carlos Machado