SAP FM_FUND_READ_MULTIPLE_DATA Function Module for Fonds im Finanzkreis/Gjahr bzw. Datum lesen (mehrere Sätze)









FM_FUND_READ_MULTIPLE_DATA is a standard fm fund read multiple data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Fonds im Finanzkreis/Gjahr bzw. Datum lesen (mehrere Sätze) 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 fm fund read multiple data FM, simply by entering the name FM_FUND_READ_MULTIPLE_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function FM_FUND_READ_MULTIPLE_DATA 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_FUND_READ_MULTIPLE_DATA'"Fonds im Finanzkreis/Gjahr bzw. Datum lesen (mehrere Sätze)
EXPORTING
I_FIKRS = "Finanzkreis
* I_GJAHR = "Geschäftsjahr
* I_DATE = "FM: Datum gültig bis
* I_POPER = "Periode
* I_FLG_TEXT = ' ' "Feld zum Ankreuzen
* I_FLG_BPD = ' ' "Read budget period assignments

TABLES
* R_FUNDS = "Struktur einer Ranges-Tabelle für ein Character(10) Feld
E_T_FMFINCODE = "FIFM: Finanzierungscode
* E_T_FMFINT = "FIFM: Texte zu Fonds
* E_T_FMFUNDBPD = "FM: Assignments of Funds to Budget Periods

EXCEPTIONS
MASTER_DATA_NOT_FOUND = 1 ERROR_OCCURRED = 2
.



IMPORTING Parameters details for FM_FUND_READ_MULTIPLE_DATA

I_FIKRS - Finanzkreis

Data type: FM01-FIKRS
Optional: No
Call by Reference: Yes

I_GJAHR - Geschäftsjahr

Data type: FM01G-GJAHR
Optional: Yes
Call by Reference: Yes

I_DATE - FM: Datum gültig bis

Data type: FMFINCODE-DATAB
Optional: Yes
Call by Reference: Yes

I_POPER - Periode

Data type: T009B-POPER
Optional: Yes
Call by Reference: Yes

I_FLG_TEXT - Feld zum Ankreuzen

Data type: FMDY-XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_FLG_BPD - Read budget period assignments

Data type: FMDY-XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for FM_FUND_READ_MULTIPLE_DATA

R_FUNDS - Struktur einer Ranges-Tabelle für ein Character(10) Feld

Data type: RANGE_C10
Optional: Yes
Call by Reference: Yes

E_T_FMFINCODE - FIFM: Finanzierungscode

Data type: FMFINCODE
Optional: No
Call by Reference: Yes

E_T_FMFINT - FIFM: Texte zu Fonds

Data type: FMFINT
Optional: Yes
Call by Reference: Yes

E_T_FMFUNDBPD - FM: Assignments of Funds to Budget Periods

Data type: FMFUNDBPD
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

MASTER_DATA_NOT_FOUND - Keine Werte gefunden

Data type:
Optional: No
Call by Reference: Yes

ERROR_OCCURRED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FM_FUND_READ_MULTIPLE_DATA 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_fikrs  TYPE FM01-FIKRS, "   
lt_r_funds  TYPE STANDARD TABLE OF RANGE_C10, "   
lv_master_data_not_found  TYPE RANGE_C10, "   
lv_i_gjahr  TYPE FM01G-GJAHR, "   
lt_e_t_fmfincode  TYPE STANDARD TABLE OF FMFINCODE, "   
lv_error_occurred  TYPE FMFINCODE, "   
lv_i_date  TYPE FMFINCODE-DATAB, "   
lt_e_t_fmfint  TYPE STANDARD TABLE OF FMFINT, "   
lv_i_poper  TYPE T009B-POPER, "   
lt_e_t_fmfundbpd  TYPE STANDARD TABLE OF FMFUNDBPD, "   
lv_i_flg_text  TYPE FMDY-XFELD, "   SPACE
lv_i_flg_bpd  TYPE FMDY-XFELD. "   SPACE

  CALL FUNCTION 'FM_FUND_READ_MULTIPLE_DATA'  "Fonds im Finanzkreis/Gjahr bzw. Datum lesen (mehrere Sätze)
    EXPORTING
         I_FIKRS = lv_i_fikrs
         I_GJAHR = lv_i_gjahr
         I_DATE = lv_i_date
         I_POPER = lv_i_poper
         I_FLG_TEXT = lv_i_flg_text
         I_FLG_BPD = lv_i_flg_bpd
    TABLES
         R_FUNDS = lt_r_funds
         E_T_FMFINCODE = lt_e_t_fmfincode
         E_T_FMFINT = lt_e_t_fmfint
         E_T_FMFUNDBPD = lt_e_t_fmfundbpd
    EXCEPTIONS
        MASTER_DATA_NOT_FOUND = 1
        ERROR_OCCURRED = 2
. " FM_FUND_READ_MULTIPLE_DATA




ABAP code using 7.40 inline data declarations to call FM FM_FUND_READ_MULTIPLE_DATA

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 FIKRS FROM FM01 INTO @DATA(ld_i_fikrs).
 
 
 
"SELECT single GJAHR FROM FM01G INTO @DATA(ld_i_gjahr).
 
 
 
"SELECT single DATAB FROM FMFINCODE INTO @DATA(ld_i_date).
 
 
"SELECT single POPER FROM T009B INTO @DATA(ld_i_poper).
 
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_text).
DATA(ld_i_flg_text) = ' '.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_bpd).
DATA(ld_i_flg_bpd) = ' '.
 


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!