‎2007 Apr 23 8:01 AM
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
‎2007 Apr 23 8:14 AM
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.
‎2007 Apr 23 8:14 AM
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
‎2007 Apr 23 8:17 AM
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