SAP JV_AND_FI_CURRENCIES Function Module for Currencies used in JV and FI









JV_AND_FI_CURRENCIES is a standard jv and fi currencies SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Currencies used in JV and FI 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 jv and fi currencies FM, simply by entering the name JV_AND_FI_CURRENCIES into the relevant SAP transaction such as SE37 or SE38.

Function Group: GJRW
Program Name: SAPLGJRW
Main Program: SAPLGJRW
Appliation area: G
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function JV_AND_FI_CURRENCIES 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 'JV_AND_FI_CURRENCIES'"Currencies used in JV and FI
EXPORTING
BUKRS = "Company Code

IMPORTING
HWAER = "Local Currency 1 of FI if also in JV
LDNRH2 = "Ledger for Curr. 2
LDNRH3 = "Ledger for Curr. 3
LDNRH4 = "Ledger
LDNRF1 = "Field for Curr. 1
LDNRF2 = "Field for Curr. 2
LDNRF3 = "Field for Curr. 3
LDNRF4 = "Field for Curr. 4
HWAER_FI = "Local Currency 1 of FI
HWAE2_FI = "Local Currency 2 of FI
HWAE3_FI = "Local Currency 3 of FI
HWAE2 = "Local Currency 2 of FI if also in JV
CURT1_FI = "Currency type used in FI for curr. 1
CURT2_FI = "Currency type used in FI for curr. 2
CURT3_FI = "Currency type used in FI for curr. 3
KUTY2_FI = "
KUTY3_FI = "
BASW2_FI = "
BASW3_FI = "
UMRD2_FI = "
UMRD3_FI = "
HWAE3 = "Local Currency 3 of FI if also in JV
HWAE4 = "Currency key of the fourth local currency
CURT1 = "Currency Type 1 (Company Code)
CURT2 = "Currency type for second local currency
CURT3 = "Currency type for third local currency
CURT4 = "Currency type of the fourth local currency
LDNRH1 = "Ledger for Curr. 1
.



IMPORTING Parameters details for JV_AND_FI_CURRENCIES

BUKRS - Company Code

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

EXPORTING Parameters details for JV_AND_FI_CURRENCIES

HWAER - Local Currency 1 of FI if also in JV

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

LDNRH2 - Ledger for Curr. 2

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

LDNRH3 - Ledger for Curr. 3

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

LDNRH4 - Ledger

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

LDNRF1 - Field for Curr. 1

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

LDNRF2 - Field for Curr. 2

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

LDNRF3 - Field for Curr. 3

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

LDNRF4 - Field for Curr. 4

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

HWAER_FI - Local Currency 1 of FI

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

HWAE2_FI - Local Currency 2 of FI

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

HWAE3_FI - Local Currency 3 of FI

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

HWAE2 - Local Currency 2 of FI if also in JV

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

CURT1_FI - Currency type used in FI for curr. 1

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

CURT2_FI - Currency type used in FI for curr. 2

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

CURT3_FI - Currency type used in FI for curr. 3

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

KUTY2_FI -

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

KUTY3_FI -

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

BASW2_FI -

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

BASW3_FI -

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

UMRD2_FI -

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

UMRD3_FI -

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

HWAE3 - Local Currency 3 of FI if also in JV

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

HWAE4 - Currency key of the fourth local currency

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

CURT1 - Currency Type 1 (Company Code)

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

CURT2 - Currency type for second local currency

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

CURT3 - Currency type for third local currency

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

CURT4 - Currency type of the fourth local currency

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

LDNRH1 - Ledger for Curr. 1

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

Copy and paste ABAP code example for JV_AND_FI_CURRENCIES 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_bukrs  TYPE JVSO1-RBUKRS, "   
lv_hwaer  TYPE JVAP-HWAER, "   
lv_ldnrh2  TYPE JVAP-RLDNR, "   
lv_ldnrh3  TYPE JVAP-RLDNR, "   
lv_ldnrh4  TYPE JVAP-RLDNR, "   
lv_ldnrf1  TYPE JVAP-REGROU, "   
lv_ldnrf2  TYPE JVAP-REGROU, "   
lv_ldnrf3  TYPE JVAP-REGROU, "   
lv_ldnrf4  TYPE JVAP-REGROU, "   
lv_hwaer_fi  TYPE JVAP-HWAER, "   
lv_hwae2_fi  TYPE JVAP-HWAE2, "   
lv_hwae3_fi  TYPE JVAP-HWAE3, "   
lv_hwae2  TYPE JVAP-HWAE2, "   
lv_curt1_fi  TYPE JVAP-CURT1, "   
lv_curt2_fi  TYPE JVAP-CURT2, "   
lv_curt3_fi  TYPE JVAP-CURT3, "   
lv_kuty2_fi  TYPE T001A-KURST, "   
lv_kuty3_fi  TYPE T001A-KURST2, "   
lv_basw2_fi  TYPE T001A-CURSR, "   
lv_basw3_fi  TYPE T001A-CURSR2, "   
lv_umrd2_fi  TYPE T001A-CURDT, "   
lv_umrd3_fi  TYPE T001A-CURDT2, "   
lv_hwae3  TYPE JVAP-HWAE3, "   
lv_hwae4  TYPE JVAP-HWAE4, "   
lv_curt1  TYPE JVAP-CURT1, "   
lv_curt2  TYPE JVAP-CURT2, "   
lv_curt3  TYPE JVAP-CURT3, "   
lv_curt4  TYPE JVAP-CURT4, "   
lv_ldnrh1  TYPE JVAP-RLDNR. "   

  CALL FUNCTION 'JV_AND_FI_CURRENCIES'  "Currencies used in JV and FI
    EXPORTING
         BUKRS = lv_bukrs
    IMPORTING
         HWAER = lv_hwaer
         LDNRH2 = lv_ldnrh2
         LDNRH3 = lv_ldnrh3
         LDNRH4 = lv_ldnrh4
         LDNRF1 = lv_ldnrf1
         LDNRF2 = lv_ldnrf2
         LDNRF3 = lv_ldnrf3
         LDNRF4 = lv_ldnrf4
         HWAER_FI = lv_hwaer_fi
         HWAE2_FI = lv_hwae2_fi
         HWAE3_FI = lv_hwae3_fi
         HWAE2 = lv_hwae2
         CURT1_FI = lv_curt1_fi
         CURT2_FI = lv_curt2_fi
         CURT3_FI = lv_curt3_fi
         KUTY2_FI = lv_kuty2_fi
         KUTY3_FI = lv_kuty3_fi
         BASW2_FI = lv_basw2_fi
         BASW3_FI = lv_basw3_fi
         UMRD2_FI = lv_umrd2_fi
         UMRD3_FI = lv_umrd3_fi
         HWAE3 = lv_hwae3
         HWAE4 = lv_hwae4
         CURT1 = lv_curt1
         CURT2 = lv_curt2
         CURT3 = lv_curt3
         CURT4 = lv_curt4
         LDNRH1 = lv_ldnrh1
. " JV_AND_FI_CURRENCIES




ABAP code using 7.40 inline data declarations to call FM JV_AND_FI_CURRENCIES

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 RBUKRS FROM JVSO1 INTO @DATA(ld_bukrs).
 
"SELECT single HWAER FROM JVAP INTO @DATA(ld_hwaer).
 
"SELECT single RLDNR FROM JVAP INTO @DATA(ld_ldnrh2).
 
"SELECT single RLDNR FROM JVAP INTO @DATA(ld_ldnrh3).
 
"SELECT single RLDNR FROM JVAP INTO @DATA(ld_ldnrh4).
 
"SELECT single REGROU FROM JVAP INTO @DATA(ld_ldnrf1).
 
"SELECT single REGROU FROM JVAP INTO @DATA(ld_ldnrf2).
 
"SELECT single REGROU FROM JVAP INTO @DATA(ld_ldnrf3).
 
"SELECT single REGROU FROM JVAP INTO @DATA(ld_ldnrf4).
 
"SELECT single HWAER FROM JVAP INTO @DATA(ld_hwaer_fi).
 
"SELECT single HWAE2 FROM JVAP INTO @DATA(ld_hwae2_fi).
 
"SELECT single HWAE3 FROM JVAP INTO @DATA(ld_hwae3_fi).
 
"SELECT single HWAE2 FROM JVAP INTO @DATA(ld_hwae2).
 
"SELECT single CURT1 FROM JVAP INTO @DATA(ld_curt1_fi).
 
"SELECT single CURT2 FROM JVAP INTO @DATA(ld_curt2_fi).
 
"SELECT single CURT3 FROM JVAP INTO @DATA(ld_curt3_fi).
 
"SELECT single KURST FROM T001A INTO @DATA(ld_kuty2_fi).
 
"SELECT single KURST2 FROM T001A INTO @DATA(ld_kuty3_fi).
 
"SELECT single CURSR FROM T001A INTO @DATA(ld_basw2_fi).
 
"SELECT single CURSR2 FROM T001A INTO @DATA(ld_basw3_fi).
 
"SELECT single CURDT FROM T001A INTO @DATA(ld_umrd2_fi).
 
"SELECT single CURDT2 FROM T001A INTO @DATA(ld_umrd3_fi).
 
"SELECT single HWAE3 FROM JVAP INTO @DATA(ld_hwae3).
 
"SELECT single HWAE4 FROM JVAP INTO @DATA(ld_hwae4).
 
"SELECT single CURT1 FROM JVAP INTO @DATA(ld_curt1).
 
"SELECT single CURT2 FROM JVAP INTO @DATA(ld_curt2).
 
"SELECT single CURT3 FROM JVAP INTO @DATA(ld_curt3).
 
"SELECT single CURT4 FROM JVAP INTO @DATA(ld_curt4).
 
"SELECT single RLDNR FROM JVAP INTO @DATA(ld_ldnrh1).
 


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!