SAP OPEN_PAYINS_CONVERT_CURRENCY Function Module for NOTRANSL: Temporäre Umrechnung der Beträge von OP's in Zahlungseingangswäh
OPEN_PAYINS_CONVERT_CURRENCY is a standard open payins convert currency SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Temporäre Umrechnung der Beträge von OP's in Zahlungseingangswäh 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 open payins convert currency FM, simply by entering the name OPEN_PAYINS_CONVERT_CURRENCY into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVEP
Program Name: SAPLFVEP
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OPEN_PAYINS_CONVERT_CURRENCY 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 'OPEN_PAYINS_CONVERT_CURRENCY'"NOTRANSL: Temporäre Umrechnung der Beträge von OP's in Zahlungseingangswäh.
EXPORTING
I_DATUM = "Translation Date
I_KURS = "Exchange Rate
I_HCURR = "Local Currency
I_BCURR = "Document Currency
I_ZCURR = "Target Currency
I_HAMOUNT = "Amount in Local Currency
I_BAMOUNT = "Amount in Document Currency
IMPORTING
E_ZAMOUNT = "Amount in Document Currency
IMPORTING Parameters details for OPEN_PAYINS_CONVERT_CURRENCY
I_DATUM - Translation Date
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_KURS - Exchange Rate
Data type: BKPF-KURSFOptional: No
Call by Reference: No ( called with pass by value option)
I_HCURR - Local Currency
Data type: T001-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_BCURR - Document Currency
Data type: T001-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_ZCURR - Target Currency
Data type: T001-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_HAMOUNT - Amount in Local Currency
Data type: BSEG-DMBTROptional: No
Call by Reference: No ( called with pass by value option)
I_BAMOUNT - Amount in Document Currency
Data type: BSEG-WRBTROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for OPEN_PAYINS_CONVERT_CURRENCY
E_ZAMOUNT - Amount in Document Currency
Data type: BSEG-WRBTROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OPEN_PAYINS_CONVERT_CURRENCY 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_i_datum | TYPE SY-DATUM, " | |||
| lv_e_zamount | TYPE BSEG-WRBTR, " | |||
| lv_i_kurs | TYPE BKPF-KURSF, " | |||
| lv_i_hcurr | TYPE T001-WAERS, " | |||
| lv_i_bcurr | TYPE T001-WAERS, " | |||
| lv_i_zcurr | TYPE T001-WAERS, " | |||
| lv_i_hamount | TYPE BSEG-DMBTR, " | |||
| lv_i_bamount | TYPE BSEG-WRBTR. " |
|   CALL FUNCTION 'OPEN_PAYINS_CONVERT_CURRENCY' "NOTRANSL: Temporäre Umrechnung der Beträge von OP's in Zahlungseingangswäh |
| EXPORTING | ||
| I_DATUM | = lv_i_datum | |
| I_KURS | = lv_i_kurs | |
| I_HCURR | = lv_i_hcurr | |
| I_BCURR | = lv_i_bcurr | |
| I_ZCURR | = lv_i_zcurr | |
| I_HAMOUNT | = lv_i_hamount | |
| I_BAMOUNT | = lv_i_bamount | |
| IMPORTING | ||
| E_ZAMOUNT | = lv_e_zamount | |
| . " OPEN_PAYINS_CONVERT_CURRENCY | ||
ABAP code using 7.40 inline data declarations to call FM OPEN_PAYINS_CONVERT_CURRENCY
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 DATUM FROM SY INTO @DATA(ld_i_datum). | ||||
| "SELECT single WRBTR FROM BSEG INTO @DATA(ld_e_zamount). | ||||
| "SELECT single KURSF FROM BKPF INTO @DATA(ld_i_kurs). | ||||
| "SELECT single WAERS FROM T001 INTO @DATA(ld_i_hcurr). | ||||
| "SELECT single WAERS FROM T001 INTO @DATA(ld_i_bcurr). | ||||
| "SELECT single WAERS FROM T001 INTO @DATA(ld_i_zcurr). | ||||
| "SELECT single DMBTR FROM BSEG INTO @DATA(ld_i_hamount). | ||||
| "SELECT single WRBTR FROM BSEG INTO @DATA(ld_i_bamount). | ||||
Search for further information about these or an SAP related objects