SAP RTOHC_DOCUMENT_CHECK_RFC Function Module for RFC wrapper for document check
RTOHC_DOCUMENT_CHECK_RFC is a standard rtohc document check rfc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RFC wrapper for document check processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for rtohc document check rfc FM, simply by entering the name RTOHC_DOCUMENT_CHECK_RFC into the relevant SAP transaction such as SE37 or SE38.
Function Group: K_RTOHC_DOC
Program Name: SAPLK_RTOHC_DOC
Main Program: SAPLK_RTOHC_DOC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RTOHC_DOCUMENT_CHECK_RFC pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'RTOHC_DOCUMENT_CHECK_RFC'"RFC wrapper for document check.
EXPORTING
* IS_COBK = "CO Object: Document Header
* IV_WSDAT = "Value Date for Currency Translation
* IT_COEP = "Table Type: COEP
* IT_COEP_ADD = "Table Type: COEP_ADD
* IT_COIOB = "Table Type COIOB
* IT_ACCHD = "Transfer Table: Header Information for FI Documents
* IT_ACCIT = "Accounting Interface: Item Information
* IT_ACCCR = "Accounting interface: Currency information
* IT_COEP_ORG = "Table Type: COEP
* IT_COIOB_ORG = "Table Type COIOB
IMPORTING
ET_MESG = "TableType for MESG
IMPORTING Parameters details for RTOHC_DOCUMENT_CHECK_RFC
IS_COBK - CO Object: Document Header
Data type: COBKOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_WSDAT - Value Date for Currency Translation
Data type: COBK-WSDATOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_COEP - Table Type: COEP
Data type: TT_COEPOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_COEP_ADD - Table Type: COEP_ADD
Data type: TT_COEP_ADDOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_COIOB - Table Type COIOB
Data type: TT_COIOBOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ACCHD - Transfer Table: Header Information for FI Documents
Data type: ACCHD_TOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ACCIT - Accounting Interface: Item Information
Data type: ACCIT_TOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ACCCR - Accounting interface: Currency information
Data type: ACCCR_TOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_COEP_ORG - Table Type: COEP
Data type: TT_COEPOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_COIOB_ORG - Table Type COIOB
Data type: TT_COIOBOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RTOHC_DOCUMENT_CHECK_RFC
ET_MESG - TableType for MESG
Data type: MESG_TOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RTOHC_DOCUMENT_CHECK_RFC Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_et_mesg | TYPE MESG_T, " | |||
| lv_is_cobk | TYPE COBK, " | |||
| lv_iv_wsdat | TYPE COBK-WSDAT, " | |||
| lv_it_coep | TYPE TT_COEP, " | |||
| lv_it_coep_add | TYPE TT_COEP_ADD, " | |||
| lv_it_coiob | TYPE TT_COIOB, " | |||
| lv_it_acchd | TYPE ACCHD_T, " | |||
| lv_it_accit | TYPE ACCIT_T, " | |||
| lv_it_acccr | TYPE ACCCR_T, " | |||
| lv_it_coep_org | TYPE TT_COEP, " | |||
| lv_it_coiob_org | TYPE TT_COIOB. " |
|   CALL FUNCTION 'RTOHC_DOCUMENT_CHECK_RFC' "RFC wrapper for document check |
| EXPORTING | ||
| IS_COBK | = lv_is_cobk | |
| IV_WSDAT | = lv_iv_wsdat | |
| IT_COEP | = lv_it_coep | |
| IT_COEP_ADD | = lv_it_coep_add | |
| IT_COIOB | = lv_it_coiob | |
| IT_ACCHD | = lv_it_acchd | |
| IT_ACCIT | = lv_it_accit | |
| IT_ACCCR | = lv_it_acccr | |
| IT_COEP_ORG | = lv_it_coep_org | |
| IT_COIOB_ORG | = lv_it_coiob_org | |
| IMPORTING | ||
| ET_MESG | = lv_et_mesg | |
| . " RTOHC_DOCUMENT_CHECK_RFC | ||
ABAP code using 7.40 inline data declarations to call FM RTOHC_DOCUMENT_CHECK_RFC
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single WSDAT FROM COBK INTO @DATA(ld_iv_wsdat). | ||||
Search for further information about these or an SAP related objects