SAP RCP322_DOCUMENT_READ Function Module for NOTRANSL: RMS-RCP: Lesen der Dokumentverknüpfungen
RCP322_DOCUMENT_READ is a standard rcp322 document read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: RMS-RCP: Lesen der Dokumentverknüpfungen 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 rcp322 document read FM, simply by entering the name RCP322_DOCUMENT_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: RCP322
Program Name: SAPLRCP322
Main Program: SAPLRCP322
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RCP322_DOCUMENT_READ 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 'RCP322_DOCUMENT_READ'"NOTRANSL: RMS-RCP: Lesen der Dokumentverknüpfungen.
EXPORTING
IT_KEY_OBJ = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* IT_AENNR = "RMS-RCP: API - Table Type for Recipe Change States
IT_SEL_RCP_AENNR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
ET_DOC = "RMS-RCP: API - Table Type for Document Links
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for RCP322_DOCUMENT_READ
IT_KEY_OBJ - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RCP31_GT_KEY_OBJOptional: No
Call by Reference: Yes
IT_AENNR - RMS-RCP: API - Table Type for Recipe Change States
Data type: RCPTY_API_AENNR_RCPOptional: Yes
Call by Reference: Yes
IT_SEL_RCP_AENNR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RCP31_GT_RCP_AENNROptional: No
Call by Reference: Yes
EXPORTING Parameters details for RCP322_DOCUMENT_READ
ET_DOC - RMS-RCP: API - Table Type for Document Links
Data type: RCPTY_API_DOCOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RCP322_DOCUMENT_READ 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_error | TYPE STRING, " | |||
| lv_et_doc | TYPE RCPTY_API_DOC, " | |||
| lv_it_key_obj | TYPE RCP31_GT_KEY_OBJ, " | |||
| lv_it_aennr | TYPE RCPTY_API_AENNR_RCP, " | |||
| lv_it_sel_rcp_aennr | TYPE RCP31_GT_RCP_AENNR. " |
|   CALL FUNCTION 'RCP322_DOCUMENT_READ' "NOTRANSL: RMS-RCP: Lesen der Dokumentverknüpfungen |
| EXPORTING | ||
| IT_KEY_OBJ | = lv_it_key_obj | |
| IT_AENNR | = lv_it_aennr | |
| IT_SEL_RCP_AENNR | = lv_it_sel_rcp_aennr | |
| IMPORTING | ||
| ET_DOC | = lv_et_doc | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " RCP322_DOCUMENT_READ | ||
ABAP code using 7.40 inline data declarations to call FM RCP322_DOCUMENT_READ
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.Search for further information about these or an SAP related objects