SAP CC_RT_SWO_OBJECT_RETRIEVAL Function Module for Start find objects function from Workflow system
CC_RT_SWO_OBJECT_RETRIEVAL is a standard cc rt swo object retrieval SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Start find objects function from Workflow system 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 cc rt swo object retrieval FM, simply by entering the name CC_RT_SWO_OBJECT_RETRIEVAL into the relevant SAP transaction such as SE37 or SE38.
Function Group: CCRT
Program Name: SAPLCCRT
Main Program: SAPLCCRT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CC_RT_SWO_OBJECT_RETRIEVAL 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 'CC_RT_SWO_OBJECT_RETRIEVAL'"Start find objects function from Workflow system.
EXPORTING
* CHANGE_NUMBER = "Change Number
* DOCUMENT_NUMBER = "Document number
* DOCUMENT_PART = '000' "Document part
* DOCUMENT_TYPE = "Document type
* DOCUMENT_VERSION = '00' "Document version
* MATERIAL_NUMBER = "Material number
* PLANT = "Plant
* ROOT_OBJECT_TYPE = 'DOC' "Object type of initial object
* VALID_FROM = SY-DATUM "Valid-From Date
TABLES
SWO_OBJECTS = "Transfer table for objects to Workflow
EXCEPTIONS
INVALID_ROOT_OBJECT_TYPE = 1
IMPORTING Parameters details for CC_RT_SWO_OBJECT_RETRIEVAL
CHANGE_NUMBER - Change Number
Data type: RC29A-AENNROptional: Yes
Call by Reference: No ( called with pass by value option)
DOCUMENT_NUMBER - Document number
Data type: DRAW-DOKNROptional: Yes
Call by Reference: No ( called with pass by value option)
DOCUMENT_PART - Document part
Data type: DRAW-DOKTLDefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DOCUMENT_TYPE - Document type
Data type: DRAW-DOKAROptional: Yes
Call by Reference: No ( called with pass by value option)
DOCUMENT_VERSION - Document version
Data type: DRAW-DOKVRDefault: '00'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL_NUMBER - Material number
Data type: RM03M-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
PLANT - Plant
Data type: RM03M-WERKSOptional: Yes
Call by Reference: No ( called with pass by value option)
ROOT_OBJECT_TYPE - Object type of initial object
Data type:Default: 'DOC'
Optional: Yes
Call by Reference: No ( called with pass by value option)
VALID_FROM - Valid-From Date
Data type: RC29L-DATUVDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CC_RT_SWO_OBJECT_RETRIEVAL
SWO_OBJECTS - Transfer table for objects to Workflow
Data type: ECR_OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INVALID_ROOT_OBJECT_TYPE - Invalid Access Object
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CC_RT_SWO_OBJECT_RETRIEVAL 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: | ||||
| lt_swo_objects | TYPE STANDARD TABLE OF ECR_OBJECT, " | |||
| lv_change_number | TYPE RC29A-AENNR, " | |||
| lv_invalid_root_object_type | TYPE RC29A, " | |||
| lv_document_number | TYPE DRAW-DOKNR, " | |||
| lv_document_part | TYPE DRAW-DOKTL, " '000' | |||
| lv_document_type | TYPE DRAW-DOKAR, " | |||
| lv_document_version | TYPE DRAW-DOKVR, " '00' | |||
| lv_material_number | TYPE RM03M-MATNR, " | |||
| lv_plant | TYPE RM03M-WERKS, " | |||
| lv_root_object_type | TYPE RM03M, " 'DOC' | |||
| lv_valid_from | TYPE RC29L-DATUV. " SY-DATUM |
|   CALL FUNCTION 'CC_RT_SWO_OBJECT_RETRIEVAL' "Start find objects function from Workflow system |
| EXPORTING | ||
| CHANGE_NUMBER | = lv_change_number | |
| DOCUMENT_NUMBER | = lv_document_number | |
| DOCUMENT_PART | = lv_document_part | |
| DOCUMENT_TYPE | = lv_document_type | |
| DOCUMENT_VERSION | = lv_document_version | |
| MATERIAL_NUMBER | = lv_material_number | |
| PLANT | = lv_plant | |
| ROOT_OBJECT_TYPE | = lv_root_object_type | |
| VALID_FROM | = lv_valid_from | |
| TABLES | ||
| SWO_OBJECTS | = lt_swo_objects | |
| EXCEPTIONS | ||
| INVALID_ROOT_OBJECT_TYPE = 1 | ||
| . " CC_RT_SWO_OBJECT_RETRIEVAL | ||
ABAP code using 7.40 inline data declarations to call FM CC_RT_SWO_OBJECT_RETRIEVAL
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 AENNR FROM RC29A INTO @DATA(ld_change_number). | ||||
| "SELECT single DOKNR FROM DRAW INTO @DATA(ld_document_number). | ||||
| "SELECT single DOKTL FROM DRAW INTO @DATA(ld_document_part). | ||||
| DATA(ld_document_part) | = '000'. | |||
| "SELECT single DOKAR FROM DRAW INTO @DATA(ld_document_type). | ||||
| "SELECT single DOKVR FROM DRAW INTO @DATA(ld_document_version). | ||||
| DATA(ld_document_version) | = '00'. | |||
| "SELECT single MATNR FROM RM03M INTO @DATA(ld_material_number). | ||||
| "SELECT single WERKS FROM RM03M INTO @DATA(ld_plant). | ||||
| DATA(ld_root_object_type) | = 'DOC'. | |||
| "SELECT single DATUV FROM RC29L INTO @DATA(ld_valid_from). | ||||
| DATA(ld_valid_from) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects