MRM_FI_DOCUMENT_CHECK 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 MRM_FI_DOCUMENT_CHECK into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
MRMC
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'MRM_FI_DOCUMENT_CHECK' "
EXPORTING
i_bukrs = " rbkp_v-bukrs
i_lifnr = " rbkp_v-lifnr
i_waers = " rbkp_v-waers
i_xblnr = " rbkp_v-xblnr
i_bldat = " rbkp_v-bldat
i_wrbtr = " rbkp_v-rmwwr
* i_blart = " rbkp_v-blart Document Type
* i_prepay_awkey = " rbkp_v-prepay_awkey Invoice Document Number Created for Prepayment
EXCEPTIONS
INVOICE_ALREADY_EXISTS = 1 "
. " MRM_FI_DOCUMENT_CHECK
The ABAP code below is a full code listing to execute function module MRM_FI_DOCUMENT_CHECK 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).
SELECT single BUKRS
FROM RBKP_V
INTO @DATA(ld_i_bukrs).
SELECT single LIFNR
FROM RBKP_V
INTO @DATA(ld_i_lifnr).
SELECT single WAERS
FROM RBKP_V
INTO @DATA(ld_i_waers).
SELECT single XBLNR
FROM RBKP_V
INTO @DATA(ld_i_xblnr).
SELECT single BLDAT
FROM RBKP_V
INTO @DATA(ld_i_bldat).
SELECT single RMWWR
FROM RBKP_V
INTO @DATA(ld_i_wrbtr).
SELECT single BLART
FROM RBKP_V
INTO @DATA(ld_i_blart).
SELECT single PREPAY_AWKEY
FROM RBKP_V
INTO @DATA(ld_i_prepay_awkey).
. CALL FUNCTION 'MRM_FI_DOCUMENT_CHECK' EXPORTING i_bukrs = ld_i_bukrs i_lifnr = ld_i_lifnr i_waers = ld_i_waers i_xblnr = ld_i_xblnr i_bldat = ld_i_bldat i_wrbtr = ld_i_wrbtr * i_blart = ld_i_blart * i_prepay_awkey = ld_i_prepay_awkey EXCEPTIONS INVOICE_ALREADY_EXISTS = 1 . " MRM_FI_DOCUMENT_CHECK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.
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_bukrs | TYPE RBKP_V-BUKRS , |
| ld_i_lifnr | TYPE RBKP_V-LIFNR , |
| ld_i_waers | TYPE RBKP_V-WAERS , |
| ld_i_xblnr | TYPE RBKP_V-XBLNR , |
| ld_i_bldat | TYPE RBKP_V-BLDAT , |
| ld_i_wrbtr | TYPE RBKP_V-RMWWR , |
| ld_i_blart | TYPE RBKP_V-BLART , |
| ld_i_prepay_awkey | TYPE RBKP_V-PREPAY_AWKEY . |
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 MRM_FI_DOCUMENT_CHECK or its description.