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
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
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).
| ld_e_t_doc_packet | TYPE FMCY_T_PACKET_DOC . |
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 . |
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.
FMCY_READ_FMBH - Build packet for document FMCY_OKCODE_HANDLER - Handle FM okcode (for copy) FMCY_INIT_FROM_VARIANT - Init screen fields from variant FMCY_GET_PTCOMB - Retrieve allowed combinations (for copy) FMCY_GET_OUTPUT_LINES - Get FM lines for output FMCY_GET_ORGUNIT - Get organizational unit (for copy)