SAP KURS_IN_MENGENNOTATION Function Module for Convert Exchange Rate to Indirect Quotation









KURS_IN_MENGENNOTATION is a standard kurs in mengennotation SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert Exchange Rate to Indirect Quotation processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for kurs in mengennotation FM, simply by entering the name KURS_IN_MENGENNOTATION into the relevant SAP transaction such as SE37 or SE38.

Function Group: SCUN
Program Name: SAPLSCUN
Main Program: SAPLSCUN
Appliation area:
Release date: 17-May-2000
Mode(Normal, Remote etc): Normal Function Module
Update:



Function KURS_IN_MENGENNOTATION pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'KURS_IN_MENGENNOTATION'"Convert Exchange Rate to Indirect Quotation
EXPORTING
* CLIENT = SY-MANDT "Client
DATE = "Currency Translation Date
* TYPE_OF_RATE = 'M' "Exchange Rate Type
FOREIGN_CURRENCY = "'From' currency
LOCAL_CURRENCY = "'To' currency
RATE = "Exchange Rate

IMPORTING
RATEM = "Exchange Rate for Indirect Quotation
FOREIGN_FACTOR = "Factor for 'From' Currency
LOCAL_FACTOR = "Factor for 'To' Currency
DERIVED_RATE_TYPE = "Alternative Exchange Rate Type

EXCEPTIONS
NO_FACTORS_FOUND = 1 DERIVED_2_TIMES = 2 NO_SPREAD_FOUND = 3 OVERFLOW = 4
.



IMPORTING Parameters details for KURS_IN_MENGENNOTATION

CLIENT - Client

Data type: SY-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

DATE - Currency Translation Date

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

TYPE_OF_RATE - Exchange Rate Type

Data type:
Default: 'M'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FOREIGN_CURRENCY - 'From' currency

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

LOCAL_CURRENCY - 'To' currency

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RATE - Exchange Rate

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for KURS_IN_MENGENNOTATION

RATEM - Exchange Rate for Indirect Quotation

Data type: TCURR-UKURS
Optional: No
Call by Reference: No ( called with pass by value option)

FOREIGN_FACTOR - Factor for 'From' Currency

Data type: TCURF-FFACT
Optional: No
Call by Reference: No ( called with pass by value option)

LOCAL_FACTOR - Factor for 'To' Currency

Data type: TCURF-TFACT
Optional: No
Call by Reference: No ( called with pass by value option)

DERIVED_RATE_TYPE - Alternative Exchange Rate Type

Data type: TCURV-KURST
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_FACTORS_FOUND - Factors Not Found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DERIVED_2_TIMES - Cycle in Derivation Chain

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_SPREAD_FOUND - Spread Not Found (TCURS)

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

OVERFLOW -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for KURS_IN_MENGENNOTATION Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_ratem  TYPE TCURR-UKURS, "   
lv_client  TYPE SY-MANDT, "   SY-MANDT
lv_no_factors_found  TYPE SY, "   
lv_date  TYPE SY-DATUM, "   
lv_foreign_factor  TYPE TCURF-FFACT, "   
lv_derived_2_times  TYPE TCURF, "   
lv_local_factor  TYPE TCURF-TFACT, "   
lv_type_of_rate  TYPE TCURF, "   'M'
lv_no_spread_found  TYPE TCURF, "   
lv_overflow  TYPE TCURF, "   
lv_foreign_currency  TYPE TCURF, "   
lv_derived_rate_type  TYPE TCURV-KURST, "   
lv_local_currency  TYPE TCURV, "   
lv_rate  TYPE TCURV. "   

  CALL FUNCTION 'KURS_IN_MENGENNOTATION'  "Convert Exchange Rate to Indirect Quotation
    EXPORTING
         CLIENT = lv_client
         DATE = lv_date
         TYPE_OF_RATE = lv_type_of_rate
         FOREIGN_CURRENCY = lv_foreign_currency
         LOCAL_CURRENCY = lv_local_currency
         RATE = lv_rate
    IMPORTING
         RATEM = lv_ratem
         FOREIGN_FACTOR = lv_foreign_factor
         LOCAL_FACTOR = lv_local_factor
         DERIVED_RATE_TYPE = lv_derived_rate_type
    EXCEPTIONS
        NO_FACTORS_FOUND = 1
        DERIVED_2_TIMES = 2
        NO_SPREAD_FOUND = 3
        OVERFLOW = 4
. " KURS_IN_MENGENNOTATION




ABAP code using 7.40 inline data declarations to call FM KURS_IN_MENGENNOTATION

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single UKURS FROM TCURR INTO @DATA(ld_ratem).
 
"SELECT single MANDT FROM SY INTO @DATA(ld_client).
DATA(ld_client) = SY-MANDT.
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date).
 
"SELECT single FFACT FROM TCURF INTO @DATA(ld_foreign_factor).
 
 
"SELECT single TFACT FROM TCURF INTO @DATA(ld_local_factor).
 
DATA(ld_type_of_rate) = 'M'.
 
 
 
 
"SELECT single KURST FROM TCURV INTO @DATA(ld_derived_rate_type).
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!