SAP RT_CONTEXT_ATTACHEMENT_20 Function Module for
RT_CONTEXT_ATTACHEMENT_20 is a standard rt context attachement 20 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rt context attachement 20 FM, simply by entering the name RT_CONTEXT_ATTACHEMENT_20 into the relevant SAP transaction such as SE37 or SE38.
Function Group: ROUTING_TEST
Program Name: SAPLROUTING_TEST
Main Program: SAPLROUTING_TEST
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RT_CONTEXT_ATTACHEMENT_20 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 'RT_CONTEXT_ATTACHEMENT_20'".
EXPORTING
* EXTRTYPE = "Extractor Type
* EXTRVALUE = "Extractor Value
* EXTRCOBJNS = "Context Object Namespace
* EXTRCOBJNAME = "Context Object Name
* NAME' 'S = "Namespace Table
IMPORTING
VALUES = "Extractor Message Value Table
IMPORTING Parameters details for RT_CONTEXT_ATTACHEMENT_20
EXTRTYPE - Extractor Type
Data type: RD_EXTRTYPEOptional: Yes
Call by Reference: Yes
EXTRVALUE - Extractor Value
Data type: RD_EXTRVALUEOptional: Yes
Call by Reference: Yes
EXTRCOBJNS - Context Object Namespace
Data type: RD_COBJNSOptional: Yes
Call by Reference: Yes
EXTRCOBJNAME - Context Object Name
Data type: RD_COBJNAMEOptional: Yes
Call by Reference: Yes
NAMESPACES - Namespace Table
Data type: RDT_NAMESPACEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RT_CONTEXT_ATTACHEMENT_20
VALUES - Extractor Message Value Table
Data type: RDT_EXTRVALUEOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for RT_CONTEXT_ATTACHEMENT_20 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_values | TYPE RDT_EXTRVALUE, " | |||
| lv_extrtype | TYPE RD_EXTRTYPE, " | |||
| lv_extrvalue | TYPE RD_EXTRVALUE, " | |||
| lv_extrcobjns | TYPE RD_COBJNS, " | |||
| lv_extrcobjname | TYPE RD_COBJNAME, " | |||
| lv_namespaces | TYPE RDT_NAMESPACE. " |
|   CALL FUNCTION 'RT_CONTEXT_ATTACHEMENT_20' " |
| EXPORTING | ||
| EXTRTYPE | = lv_extrtype | |
| EXTRVALUE | = lv_extrvalue | |
| EXTRCOBJNS | = lv_extrcobjns | |
| EXTRCOBJNAME | = lv_extrcobjname | |
| NAMESPACES | = lv_namespaces | |
| IMPORTING | ||
| VALUES | = lv_values | |
| . " RT_CONTEXT_ATTACHEMENT_20 | ||
ABAP code using 7.40 inline data declarations to call FM RT_CONTEXT_ATTACHEMENT_20
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