SAP FUD_MF05L_CROSS_COMP_CODE_GET Function Module for Get Cross Company Code Number for FI-Document
FUD_MF05L_CROSS_COMP_CODE_GET is a standard fud mf05l cross comp code get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get Cross Company Code Number for FI-Document 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 fud mf05l cross comp code get FM, simply by entering the name FUD_MF05L_CROSS_COMP_CODE_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: FIN_UI_DECO_MF05L
Program Name: SAPLFIN_UI_DECO_MF05L
Main Program: SAPLFIN_UI_DECO_MF05L
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FUD_MF05L_CROSS_COMP_CODE_GET 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 'FUD_MF05L_CROSS_COMP_CODE_GET'"Get Cross Company Code Number for FI-Document.
EXPORTING
IV_BUKRS = "Company Code
IV_BELNR = "Accounting Document Number
IV_GJAHR = "Fiscal Year
IMPORTING
EV_BVORG = "Number of Cross-Company Code Posting Transaction
TABLES
ET_BAPIRET2 = "Return Parameter
IMPORTING Parameters details for FUD_MF05L_CROSS_COMP_CODE_GET
IV_BUKRS - Company Code
Data type: BUKRSOptional: No
Call by Reference: Yes
IV_BELNR - Accounting Document Number
Data type: BELNR_DOptional: No
Call by Reference: Yes
IV_GJAHR - Fiscal Year
Data type: GJAHROptional: No
Call by Reference: Yes
EXPORTING Parameters details for FUD_MF05L_CROSS_COMP_CODE_GET
EV_BVORG - Number of Cross-Company Code Posting Transaction
Data type: BVORGOptional: No
Call by Reference: Yes
TABLES Parameters details for FUD_MF05L_CROSS_COMP_CODE_GET
ET_BAPIRET2 - Return Parameter
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FUD_MF05L_CROSS_COMP_CODE_GET 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_ev_bvorg | TYPE BVORG, " | |||
| lv_iv_bukrs | TYPE BUKRS, " | |||
| lt_et_bapiret2 | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_iv_belnr | TYPE BELNR_D, " | |||
| lv_iv_gjahr | TYPE GJAHR. " |
|   CALL FUNCTION 'FUD_MF05L_CROSS_COMP_CODE_GET' "Get Cross Company Code Number for FI-Document |
| EXPORTING | ||
| IV_BUKRS | = lv_iv_bukrs | |
| IV_BELNR | = lv_iv_belnr | |
| IV_GJAHR | = lv_iv_gjahr | |
| IMPORTING | ||
| EV_BVORG | = lv_ev_bvorg | |
| TABLES | ||
| ET_BAPIRET2 | = lt_et_bapiret2 | |
| . " FUD_MF05L_CROSS_COMP_CODE_GET | ||
ABAP code using 7.40 inline data declarations to call FM FUD_MF05L_CROSS_COMP_CODE_GET
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.Search for further information about these or an SAP related objects