SAP FM_FUND_READ Function Module for HHM:Fonds lesen









FM_FUND_READ is a standard fm fund read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for HHM:Fonds lesen 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 FM, simply by entering the name FM_FUND_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function FM_FUND_READ 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'"HHM:Fonds lesen
EXPORTING
I_FIKRS = "Finanzkreis
I_FINCODE = "Fonds
* I_FLG_TEXT = ' ' "Texte zulesen
* I_FLG_FUND_TYPE = ' ' "Read fund type
* I_DATE = "Datum fuer Gueltigkeit Fonds/Finanzierungszweck
* I_POPER_FIKRS = "Periode fuer Periv von Finanzkreis
* I_GJAHR_FINCODE = "Gjahr fuer Periv von Fonds
* I_GJAHR_FIKRS = "Gjahr fuer Periv von Finanzkreis

IMPORTING
E_F_FMFINCODE = "Stammsatz des Fonds
E_F_FMFINT = "Texte zum Fonds
E_F_FMFUNDTYPE = "Fund Type

EXCEPTIONS
MASTER_DATA_NOT_FOUND = 1 FUND_NOT_VALID = 2 ERROR_OCCURRED = 3 DATE_NOT_FOUND = 4
.



IMPORTING Parameters details for FM_FUND_READ

I_FIKRS - Finanzkreis

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

I_FINCODE - Fonds

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

I_FLG_TEXT - Texte zulesen

Data type: FMDY-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_FUND_TYPE - Read fund type

Data type: FMDY-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATE - Datum fuer Gueltigkeit Fonds/Finanzierungszweck

Data type: FMFCTR-DATBIS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_POPER_FIKRS - Periode fuer Periv von Finanzkreis

Data type: T009B-POPER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GJAHR_FINCODE - Gjahr fuer Periv von Fonds

Data type: FM01G-GJAHR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_GJAHR_FIKRS - Gjahr fuer Periv von Finanzkreis

Data type: FM01G-GJAHR
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FM_FUND_READ

E_F_FMFINCODE - Stammsatz des Fonds

Data type: FMFINCODE
Optional: No
Call by Reference: No ( called with pass by value option)

E_F_FMFINT - Texte zum Fonds

Data type: FMFINT
Optional: No
Call by Reference: No ( called with pass by value option)

E_F_FMFUNDTYPE - Fund Type

Data type: FMFUNDTYPE
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

MASTER_DATA_NOT_FOUND - Fonds existiert nicht

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

FUND_NOT_VALID - Fonds nicht gueltig

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

ERROR_OCCURRED - Fehler aufgetreten

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

DATE_NOT_FOUND - Anfangs-/Endedatum des Geschäftsjahres nicht gefunden

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FM_FUND_READ 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, "   
lv_e_f_fmfincode  TYPE FMFINCODE, "   
lv_master_data_not_found  TYPE FMFINCODE, "   
lv_i_fincode  TYPE FMFINCODE-FINCODE, "   
lv_e_f_fmfint  TYPE FMFINT, "   
lv_fund_not_valid  TYPE FMFINT, "   
lv_i_flg_text  TYPE FMDY-XFELD, "   SPACE
lv_error_occurred  TYPE FMDY, "   
lv_e_f_fmfundtype  TYPE FMFUNDTYPE, "   
lv_date_not_found  TYPE FMFUNDTYPE, "   
lv_i_flg_fund_type  TYPE FMDY-XFELD, "   SPACE
lv_i_date  TYPE FMFCTR-DATBIS, "   
lv_i_poper_fikrs  TYPE T009B-POPER, "   
lv_i_gjahr_fincode  TYPE FM01G-GJAHR, "   
lv_i_gjahr_fikrs  TYPE FM01G-GJAHR. "   

  CALL FUNCTION 'FM_FUND_READ'  "HHM:Fonds lesen
    EXPORTING
         I_FIKRS = lv_i_fikrs
         I_FINCODE = lv_i_fincode
         I_FLG_TEXT = lv_i_flg_text
         I_FLG_FUND_TYPE = lv_i_flg_fund_type
         I_DATE = lv_i_date
         I_POPER_FIKRS = lv_i_poper_fikrs
         I_GJAHR_FINCODE = lv_i_gjahr_fincode
         I_GJAHR_FIKRS = lv_i_gjahr_fikrs
    IMPORTING
         E_F_FMFINCODE = lv_e_f_fmfincode
         E_F_FMFINT = lv_e_f_fmfint
         E_F_FMFUNDTYPE = lv_e_f_fmfundtype
    EXCEPTIONS
        MASTER_DATA_NOT_FOUND = 1
        FUND_NOT_VALID = 2
        ERROR_OCCURRED = 3
        DATE_NOT_FOUND = 4
. " FM_FUND_READ




ABAP code using 7.40 inline data declarations to call FM FM_FUND_READ

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 FINCODE FROM FMFINCODE INTO @DATA(ld_i_fincode).
 
 
 
"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_fund_type).
DATA(ld_i_flg_fund_type) = ' '.
 
"SELECT single DATBIS FROM FMFCTR INTO @DATA(ld_i_date).
 
"SELECT single POPER FROM T009B INTO @DATA(ld_i_poper_fikrs).
 
"SELECT single GJAHR FROM FM01G INTO @DATA(ld_i_gjahr_fincode).
 
"SELECT single GJAHR FROM FM01G INTO @DATA(ld_i_gjahr_fikrs).
 


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!