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

Function Module

Former Member
0 Likes
418

Hi Experts,

In Function Module READ_EXCHANGE_RATE

have the imports like this TYPE_OF_RATE TYPE TCURR-KURST 'M'

here Default value is 'M' i need the "B" also How to get it?

Any one knows this one plz help me.

Thanks & Regards,

Sree

3 REPLIES 3
Read only

amit_khare
Active Contributor
0 Likes
388

You cant change the value in the FM without changing the FM but while calling in your report you can set the Default to B if no other value is pass.

Regards,

Amit

Reward all helpful replies.

Read only

former_member632991
Active Contributor
0 Likes
388

Hi,

In the import parameters, pass the value of parameter TYPE_OF_RATE, whetever u want.

CALL FUNCTION 'READ_EXCHANGE_RATE'

EXPORTING

  • CLIENT = SY-MANDT

DATE =

FOREIGN_CURRENCY =

LOCAL_CURRENCY =

*<b> TYPE_OF_RATE = 'M'</b>

  • EXACT_DATE = ' '

  • IMPORTING

  • EXCHANGE_RATE =

  • FOREIGN_FACTOR =

  • LOCAL_FACTOR =

  • VALID_FROM_DATE =

  • DERIVED_RATE_TYPE =

  • FIXED_RATE =

  • OLDEST_RATE_FROM =

  • EXCEPTIONS

  • NO_RATE_FOUND = 1

  • NO_FACTORS_FOUND = 2

  • NO_SPREAD_FOUND = 3

  • DERIVED_2_TIMES = 4

  • OVERFLOW = 5

  • ZERO_RATE = 6

  • OTHERS = 7

.

Regards,

Sonika

Read only

Former Member
0 Likes
388

Dear Sreedhar,

While calling the FM from ur program u can easily change the import parameter from "M" to "B" and run ur program. The other way is to copy the standard FM to a custom FM and change the properties of the import parameters as u wish. If helpful please reward some points.

Regards,

Pulokesh