SAP FM_DOCUMENT_GET_MUSTER Function Module for
FM_DOCUMENT_GET_MUSTER is a standard fm document get muster SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fm document get muster FM, simply by entering the name FM_DOCUMENT_GET_MUSTER into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMRI
Program Name: SAPLFMRI
Main Program: SAPLFMRI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FM_DOCUMENT_GET_MUSTER 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 'FM_DOCUMENT_GET_MUSTER'".
EXPORTING
I_KNBELNR = "FI Document Number
* I_FAREA = "Functional Area
* I_GRANT_NBR = "Grant
* I_MEASURE = "Program in Funds Management
* I_BUDGET_PERIOD = "
* I_FLG_DONT_PROCESS_TAX_LINES = 'X' "
I_KNGJAHR = "Fiscal year for FI document number
I_KNBUZEI = "Document item for FI document number
I_BUKRS = "Company Code
* I_BUDAT = SY-DATUM "Funds Management - Update Date
* I_FIPEX = "Commitment Item
* I_FIPOS = "Commitment Item
* I_FISTL = "Funds Center
* I_FONDS = "
IMPORTING
E_FIPOS = "Commitment Item
E_FIPEX = "Commitment Item
E_FISTL = "Funds Center
E_FONDS = "
E_FAREA = "Functional Area
E_GRANT_NBR = "Grant
E_MEASURE = "Program in Funds Management
E_ZHLDT = "Funds Management - Update Date
E_BUDGET_PERIOD = "
EXCEPTIONS
DOCUMENT_NOT_FOUND = 1
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLFMRI_001 Define Data Compression for FMIFIIT/FMIT
EXIT_SAPLFMRI_002 Account Determination for Figures without Clearing
EXIT_SAPLFMRI_003 Fill User Dimension: FI Documents
EXIT_SAPLFMRI_004 Set CFLEV: Yes or No
IMPORTING Parameters details for FM_DOCUMENT_GET_MUSTER
I_KNBELNR - FI Document Number
Data type: FMIFIIT-KNBELNROptional: No
Call by Reference: Yes
I_FAREA - Functional Area
Data type: FMIFIIT-FAREAOptional: Yes
Call by Reference: Yes
I_GRANT_NBR - Grant
Data type: FMIFIIT-GRANT_NBROptional: Yes
Call by Reference: Yes
I_MEASURE - Program in Funds Management
Data type: FMIFIIT-MEASUREOptional: Yes
Call by Reference: Yes
I_BUDGET_PERIOD -
Data type: FM_BUDGET_PERIODOptional: Yes
Call by Reference: Yes
I_FLG_DONT_PROCESS_TAX_LINES -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_KNGJAHR - Fiscal year for FI document number
Data type: FMIFIIT-KNGJAHROptional: No
Call by Reference: Yes
I_KNBUZEI - Document item for FI document number
Data type: FMIFIIT-KNBUZEIOptional: No
Call by Reference: Yes
I_BUKRS - Company Code
Data type: FMIFIIT-BUKRSOptional: No
Call by Reference: Yes
I_BUDAT - Funds Management - Update Date
Data type: FMIFIIT-ZHLDTDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
I_FIPEX - Commitment Item
Data type: FMIFIIT-FIPEXOptional: Yes
Call by Reference: Yes
I_FIPOS - Commitment Item
Data type: BSEG-FIPOSOptional: Yes
Call by Reference: Yes
I_FISTL - Funds Center
Data type: FMIFIIT-FISTLOptional: Yes
Call by Reference: Yes
I_FONDS -
Data type: FMIFIIT-FONDSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FM_DOCUMENT_GET_MUSTER
E_FIPOS - Commitment Item
Data type: BSEG-FIPOSOptional: No
Call by Reference: No ( called with pass by value option)
E_FIPEX - Commitment Item
Data type: FMIFIIT-FIPEXOptional: No
Call by Reference: No ( called with pass by value option)
E_FISTL - Funds Center
Data type: FMIFIIT-FISTLOptional: No
Call by Reference: No ( called with pass by value option)
E_FONDS -
Data type: FMIFIIT-FONDSOptional: No
Call by Reference: No ( called with pass by value option)
E_FAREA - Functional Area
Data type: FMIFIIT-FAREAOptional: No
Call by Reference: No ( called with pass by value option)
E_GRANT_NBR - Grant
Data type: FMIFIIT-GRANT_NBROptional: No
Call by Reference: No ( called with pass by value option)
E_MEASURE - Program in Funds Management
Data type: FMIFIIT-MEASUREOptional: No
Call by Reference: No ( called with pass by value option)
E_ZHLDT - Funds Management - Update Date
Data type: FMIFIIT-ZHLDTOptional: No
Call by Reference: No ( called with pass by value option)
E_BUDGET_PERIOD -
Data type: FM_BUDGET_PERIODOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
DOCUMENT_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FM_DOCUMENT_GET_MUSTER 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_e_fipos | TYPE BSEG-FIPOS, " | |||
| lv_i_knbelnr | TYPE FMIFIIT-KNBELNR, " | |||
| lv_document_not_found | TYPE FMIFIIT, " | |||
| lv_i_farea | TYPE FMIFIIT-FAREA, " | |||
| lv_i_grant_nbr | TYPE FMIFIIT-GRANT_NBR, " | |||
| lv_i_measure | TYPE FMIFIIT-MEASURE, " | |||
| lv_i_budget_period | TYPE FM_BUDGET_PERIOD, " | |||
| lv_i_flg_dont_process_tax_lines | TYPE C, " 'X' | |||
| lv_e_fipex | TYPE FMIFIIT-FIPEX, " | |||
| lv_i_kngjahr | TYPE FMIFIIT-KNGJAHR, " | |||
| lv_e_fistl | TYPE FMIFIIT-FISTL, " | |||
| lv_i_knbuzei | TYPE FMIFIIT-KNBUZEI, " | |||
| lv_e_fonds | TYPE FMIFIIT-FONDS, " | |||
| lv_i_bukrs | TYPE FMIFIIT-BUKRS, " | |||
| lv_e_farea | TYPE FMIFIIT-FAREA, " | |||
| lv_i_budat | TYPE FMIFIIT-ZHLDT, " SY-DATUM | |||
| lv_i_fipex | TYPE FMIFIIT-FIPEX, " | |||
| lv_e_grant_nbr | TYPE FMIFIIT-GRANT_NBR, " | |||
| lv_i_fipos | TYPE BSEG-FIPOS, " | |||
| lv_e_measure | TYPE FMIFIIT-MEASURE, " | |||
| lv_e_zhldt | TYPE FMIFIIT-ZHLDT, " | |||
| lv_i_fistl | TYPE FMIFIIT-FISTL, " | |||
| lv_i_fonds | TYPE FMIFIIT-FONDS, " | |||
| lv_e_budget_period | TYPE FM_BUDGET_PERIOD. " |
|   CALL FUNCTION 'FM_DOCUMENT_GET_MUSTER' " |
| EXPORTING | ||
| I_KNBELNR | = lv_i_knbelnr | |
| I_FAREA | = lv_i_farea | |
| I_GRANT_NBR | = lv_i_grant_nbr | |
| I_MEASURE | = lv_i_measure | |
| I_BUDGET_PERIOD | = lv_i_budget_period | |
| I_FLG_DONT_PROCESS_TAX_LINES | = lv_i_flg_dont_process_tax_lines | |
| I_KNGJAHR | = lv_i_kngjahr | |
| I_KNBUZEI | = lv_i_knbuzei | |
| I_BUKRS | = lv_i_bukrs | |
| I_BUDAT | = lv_i_budat | |
| I_FIPEX | = lv_i_fipex | |
| I_FIPOS | = lv_i_fipos | |
| I_FISTL | = lv_i_fistl | |
| I_FONDS | = lv_i_fonds | |
| IMPORTING | ||
| E_FIPOS | = lv_e_fipos | |
| E_FIPEX | = lv_e_fipex | |
| E_FISTL | = lv_e_fistl | |
| E_FONDS | = lv_e_fonds | |
| E_FAREA | = lv_e_farea | |
| E_GRANT_NBR | = lv_e_grant_nbr | |
| E_MEASURE | = lv_e_measure | |
| E_ZHLDT | = lv_e_zhldt | |
| E_BUDGET_PERIOD | = lv_e_budget_period | |
| EXCEPTIONS | ||
| DOCUMENT_NOT_FOUND = 1 | ||
| . " FM_DOCUMENT_GET_MUSTER | ||
ABAP code using 7.40 inline data declarations to call FM FM_DOCUMENT_GET_MUSTER
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 FIPOS FROM BSEG INTO @DATA(ld_e_fipos). | ||||
| "SELECT single KNBELNR FROM FMIFIIT INTO @DATA(ld_i_knbelnr). | ||||
| "SELECT single FAREA FROM FMIFIIT INTO @DATA(ld_i_farea). | ||||
| "SELECT single GRANT_NBR FROM FMIFIIT INTO @DATA(ld_i_grant_nbr). | ||||
| "SELECT single MEASURE FROM FMIFIIT INTO @DATA(ld_i_measure). | ||||
| DATA(ld_i_flg_dont_process_tax_lines) | = 'X'. | |||
| "SELECT single FIPEX FROM FMIFIIT INTO @DATA(ld_e_fipex). | ||||
| "SELECT single KNGJAHR FROM FMIFIIT INTO @DATA(ld_i_kngjahr). | ||||
| "SELECT single FISTL FROM FMIFIIT INTO @DATA(ld_e_fistl). | ||||
| "SELECT single KNBUZEI FROM FMIFIIT INTO @DATA(ld_i_knbuzei). | ||||
| "SELECT single FONDS FROM FMIFIIT INTO @DATA(ld_e_fonds). | ||||
| "SELECT single BUKRS FROM FMIFIIT INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single FAREA FROM FMIFIIT INTO @DATA(ld_e_farea). | ||||
| "SELECT single ZHLDT FROM FMIFIIT INTO @DATA(ld_i_budat). | ||||
| DATA(ld_i_budat) | = SY-DATUM. | |||
| "SELECT single FIPEX FROM FMIFIIT INTO @DATA(ld_i_fipex). | ||||
| "SELECT single GRANT_NBR FROM FMIFIIT INTO @DATA(ld_e_grant_nbr). | ||||
| "SELECT single FIPOS FROM BSEG INTO @DATA(ld_i_fipos). | ||||
| "SELECT single MEASURE FROM FMIFIIT INTO @DATA(ld_e_measure). | ||||
| "SELECT single ZHLDT FROM FMIFIIT INTO @DATA(ld_e_zhldt). | ||||
| "SELECT single FISTL FROM FMIFIIT INTO @DATA(ld_i_fistl). | ||||
| "SELECT single FONDS FROM FMIFIIT INTO @DATA(ld_i_fonds). | ||||
Search for further information about these or an SAP related objects