SAP Function Modules

FM_BUDGETPD_READ_MULTIPLE_DATA SAP Function module - Fonds im Finanzkreis/Gjahr bzw. Datum lesen (mehrere Sätze)







FM_BUDGETPD_READ_MULTIPLE_DATA is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FM_BUDGETPD_READ_MULTIPLE_DATA into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FMBPDR
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FM_BUDGETPD_READ_MULTIPLE_DATA - FM BUDGETPD READ MULTIPLE DATA





CALL FUNCTION 'FM_BUDGETPD_READ_MULTIPLE_DATA' "Fonds im Finanzkreis/Gjahr bzw. Datum lesen (mehrere Sätze)
* EXPORTING
*   ir_budget_periods =         " fm_t_range_c10  Budget period range table
*   i_fikrs =                   " fm01-fikrs    Finanzkreis
*   i_gjahr =                   " fm01g-gjahr   Geschäftsjahr
*   i_date =                    " fmfincode-datab  FM: Datum gültig bis
*   i_poper =                   " t009b-poper   Periode
*   i_flg_text = SPACE          " xfeld         Checkbox: selects texts
*   i_flg_fundbpd = SPACE       " xfeld         Checkbox: selct fund assignments
  IMPORTING
    e_t_fmbudgetpd =            " fm_t_budgetpd  Budget Period
    e_t_fmbudgetpdt =           " fm_t_budgetpdt  Budget Period texts
    e_t_fmfundbpd =             " fm_t_fundbpd  Assignments of Budget Period to Funds
  EXCEPTIONS
    MASTER_DATA_NOT_FOUND = 1   "               Keine Werte gefunden
    ERROR_OCCURRED = 2          "
    .  "  FM_BUDGETPD_READ_MULTIPLE_DATA

ABAP code example for Function Module FM_BUDGETPD_READ_MULTIPLE_DATA





The ABAP code below is a full code listing to execute function module FM_BUDGETPD_READ_MULTIPLE_DATA including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_t_fmbudgetpd  TYPE FM_T_BUDGETPD ,
ld_e_t_fmbudgetpdt  TYPE FM_T_BUDGETPDT ,
ld_e_t_fmfundbpd  TYPE FM_T_FUNDBPD .

DATA(ld_ir_budget_periods) = 'Check type of data required'.

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).

DATA(ld_i_flg_text) = 'Check type of data required'.
DATA(ld_i_flg_fundbpd) = 'Check type of data required'. . CALL FUNCTION 'FM_BUDGETPD_READ_MULTIPLE_DATA' * EXPORTING * ir_budget_periods = ld_ir_budget_periods * i_fikrs = ld_i_fikrs * i_gjahr = ld_i_gjahr * i_date = ld_i_date * i_poper = ld_i_poper * i_flg_text = ld_i_flg_text * i_flg_fundbpd = ld_i_flg_fundbpd IMPORTING e_t_fmbudgetpd = ld_e_t_fmbudgetpd e_t_fmbudgetpdt = ld_e_t_fmbudgetpdt e_t_fmfundbpd = ld_e_t_fmfundbpd EXCEPTIONS MASTER_DATA_NOT_FOUND = 1 ERROR_OCCURRED = 2 . " FM_BUDGETPD_READ_MULTIPLE_DATA
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_t_fmbudgetpd  TYPE FM_T_BUDGETPD ,
ld_ir_budget_periods  TYPE FM_T_RANGE_C10 ,
ld_e_t_fmbudgetpdt  TYPE FM_T_BUDGETPDT ,
ld_i_fikrs  TYPE FM01-FIKRS ,
ld_e_t_fmfundbpd  TYPE FM_T_FUNDBPD ,
ld_i_gjahr  TYPE FM01G-GJAHR ,
ld_i_date  TYPE FMFINCODE-DATAB ,
ld_i_poper  TYPE T009B-POPER ,
ld_i_flg_text  TYPE XFELD ,
ld_i_flg_fundbpd  TYPE XFELD .

ld_ir_budget_periods = 'Check type of data required'.

SELECT single FIKRS
FROM FM01
INTO ld_i_fikrs.


SELECT single GJAHR
FROM FM01G
INTO ld_i_gjahr.


SELECT single DATAB
FROM FMFINCODE
INTO ld_i_date.


SELECT single POPER
FROM T009B
INTO ld_i_poper.

ld_i_flg_text = 'Check type of data required'.
ld_i_flg_fundbpd = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FM_BUDGETPD_READ_MULTIPLE_DATA or its description.