SAP Function Modules

FMCY_READ_FMBH SAP Function module - Build packet for document







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

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


Pattern for FM FMCY_READ_FMBH - FMCY READ FMBH





CALL FUNCTION 'FMCY_READ_FMBH' "Build packet for document
  EXPORTING
    im_docyear =                " gjahr         Fiscal Year
    im_fmarea =                 " fikrs         Financial Management Area
    im_version =                " buku_version  Budget version
    im_f_selcrittabs =          " fmbs_s_dimseltabs  Select options for dimensions
    im_t_docnr =                " fmed_t_rdocnr  Range for document  number (BUED_DOCNR)
    im_t_doctype =              " fmed_t_rdoctype  Range for document  type (BUED_DOCTYPE)
  IMPORTING
    e_t_doc_packet =            " fmcy_t_packet_doc  Use to build packet of document
    .  "  FMCY_READ_FMBH

ABAP code example for Function Module FMCY_READ_FMBH





The ABAP code below is a full code listing to execute function module FMCY_READ_FMBH 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_doc_packet  TYPE FMCY_T_PACKET_DOC .

DATA(ld_im_docyear) = 'Check type of data required'.
DATA(ld_im_fmarea) = 'Check type of data required'.
DATA(ld_im_version) = 'Check type of data required'.
DATA(ld_im_f_selcrittabs) = 'Check type of data required'.
DATA(ld_im_t_docnr) = 'Check type of data required'.
DATA(ld_im_t_doctype) = 'Check type of data required'. . CALL FUNCTION 'FMCY_READ_FMBH' EXPORTING im_docyear = ld_im_docyear im_fmarea = ld_im_fmarea im_version = ld_im_version im_f_selcrittabs = ld_im_f_selcrittabs im_t_docnr = ld_im_t_docnr im_t_doctype = ld_im_t_doctype IMPORTING e_t_doc_packet = ld_e_t_doc_packet . " FMCY_READ_FMBH
IF SY-SUBRC EQ 0. "All OK 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_doc_packet  TYPE FMCY_T_PACKET_DOC ,
ld_im_docyear  TYPE GJAHR ,
ld_im_fmarea  TYPE FIKRS ,
ld_im_version  TYPE BUKU_VERSION ,
ld_im_f_selcrittabs  TYPE FMBS_S_DIMSELTABS ,
ld_im_t_docnr  TYPE FMED_T_RDOCNR ,
ld_im_t_doctype  TYPE FMED_T_RDOCTYPE .

ld_im_docyear = 'Check type of data required'.
ld_im_fmarea = 'Check type of data required'.
ld_im_version = 'Check type of data required'.
ld_im_f_selcrittabs = 'Check type of data required'.
ld_im_t_docnr = 'Check type of data required'.
ld_im_t_doctype = '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 FMCY_READ_FMBH or its description.