SAP Function Modules

FM_FMZUBSP_ASSIGN_READ_MULTIPL SAP Function module







FM_FMZUBSP_ASSIGN_READ_MULTIPL 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_FMZUBSP_ASSIGN_READ_MULTIPL into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FM_FMZUBSP_ASSIGN_READ_MULTIPL - FM FMZUBSP ASSIGN READ MULTIPL





CALL FUNCTION 'FM_FMZUBSP_ASSIGN_READ_MULTIPL' "
  EXPORTING
    i_fikrs =                   " fmzubsp-fikrs  Financial Management Area
    i_varnt =                   " fmzubsp-varnt
    i_gjahr =                   " fmzubsp-gjahr  Fiscal Year
*   i_fonds = SPACE             " fmzubsp-sfonds
*   i_fictr = SPACE             " fmzubsp-sfictr
*   i_flg_no_hh_fictr =         " fmdy-xfeld
  TABLES
    r_fipex =                   " range_c24
    t_fmzubsp =                 " fmzubsp
  EXCEPTIONS
    NO_MASTER_DATA = 1          "               No Master Data Found
    .  "  FM_FMZUBSP_ASSIGN_READ_MULTIPL

ABAP code example for Function Module FM_FMZUBSP_ASSIGN_READ_MULTIPL





The ABAP code below is a full code listing to execute function module FM_FMZUBSP_ASSIGN_READ_MULTIPL 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:
it_r_fipex  TYPE STANDARD TABLE OF RANGE_C24,"TABLES PARAM
wa_r_fipex  LIKE LINE OF it_r_fipex ,
it_t_fmzubsp  TYPE STANDARD TABLE OF FMZUBSP,"TABLES PARAM
wa_t_fmzubsp  LIKE LINE OF it_t_fmzubsp .


SELECT single FIKRS
FROM FMZUBSP
INTO @DATA(ld_i_fikrs).


SELECT single VARNT
FROM FMZUBSP
INTO @DATA(ld_i_varnt).


SELECT single GJAHR
FROM FMZUBSP
INTO @DATA(ld_i_gjahr).


SELECT single SFONDS
FROM FMZUBSP
INTO @DATA(ld_i_fonds).


SELECT single SFICTR
FROM FMZUBSP
INTO @DATA(ld_i_fictr).


DATA(ld_i_flg_no_hh_fictr) = some text here

"populate fields of struture and append to itab
append wa_r_fipex to it_r_fipex.

"populate fields of struture and append to itab
append wa_t_fmzubsp to it_t_fmzubsp. . CALL FUNCTION 'FM_FMZUBSP_ASSIGN_READ_MULTIPL' EXPORTING i_fikrs = ld_i_fikrs i_varnt = ld_i_varnt i_gjahr = ld_i_gjahr * i_fonds = ld_i_fonds * i_fictr = ld_i_fictr * i_flg_no_hh_fictr = ld_i_flg_no_hh_fictr TABLES r_fipex = it_r_fipex t_fmzubsp = it_t_fmzubsp EXCEPTIONS NO_MASTER_DATA = 1 . " FM_FMZUBSP_ASSIGN_READ_MULTIPL
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_i_fikrs  TYPE FMZUBSP-FIKRS ,
it_r_fipex  TYPE STANDARD TABLE OF RANGE_C24 ,
wa_r_fipex  LIKE LINE OF it_r_fipex,
ld_i_varnt  TYPE FMZUBSP-VARNT ,
it_t_fmzubsp  TYPE STANDARD TABLE OF FMZUBSP ,
wa_t_fmzubsp  LIKE LINE OF it_t_fmzubsp,
ld_i_gjahr  TYPE FMZUBSP-GJAHR ,
ld_i_fonds  TYPE FMZUBSP-SFONDS ,
ld_i_fictr  TYPE FMZUBSP-SFICTR ,
ld_i_flg_no_hh_fictr  TYPE FMDY-XFELD .


SELECT single FIKRS
FROM FMZUBSP
INTO ld_i_fikrs.


"populate fields of struture and append to itab
append wa_r_fipex to it_r_fipex.

SELECT single VARNT
FROM FMZUBSP
INTO ld_i_varnt.


"populate fields of struture and append to itab
append wa_t_fmzubsp to it_t_fmzubsp.

SELECT single GJAHR
FROM FMZUBSP
INTO ld_i_gjahr.


SELECT single SFONDS
FROM FMZUBSP
INTO ld_i_fonds.


SELECT single SFICTR
FROM FMZUBSP
INTO ld_i_fictr.


ld_i_flg_no_hh_fictr = some text here

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_FMZUBSP_ASSIGN_READ_MULTIPL or its description.