SAP RKD_COLLECT_OBJECTS Function Module for









RKD_COLLECT_OBJECTS is a standard rkd collect objects 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 rkd collect objects FM, simply by entering the name RKD_COLLECT_OBJECTS into the relevant SAP transaction such as SE37 or SE38.

Function Group: KXOB
Program Name: SAPLKXOB
Main Program: SAPLKXOB
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RKD_COLLECT_OBJECTS 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 'RKD_COLLECT_OBJECTS'"
EXPORTING
* LANGUAGE = ' ' "
* COMPLETE_OBJECTLIST = ' ' "
* SEARCH_DIRECTION = '1' "
* DISPLAY_PROGRESS = 'X' "
* I_TRANS_INFO = "
* MANDANT = ' ' "
* APPLICATION = ' ' "
OBJECTTYPE = "
OBJECTKEY = "
* OBJECTKEYLEN = 0 "
* OBJECTTABLE = ' ' "
* RETURN_OBJECTTYPES = ' ' "
* WITH_EXTERNAL_TABS = ' ' "

TABLES
OBJECTLIST = "

EXCEPTIONS
BAD_OBJECTTYPE = 1 OBJECT_NOT_FOUND = 2
.



IMPORTING Parameters details for RKD_COLLECT_OBJECTS

LANGUAGE -

Data type: SY-LANGU
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPLETE_OBJECTLIST -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SEARCH_DIRECTION -

Data type:
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

DISPLAY_PROGRESS -

Data type: TKCOS-EXPFL
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TRANS_INFO -

Data type: KXOB_YS_TRANS_INFO
Optional: Yes
Call by Reference: No ( called with pass by value option)

MANDANT -

Data type: SY-MANDT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

APPLICATION -

Data type: TKCK-APPLC
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECTTYPE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECTKEY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECTKEYLEN -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

OBJECTTABLE -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RETURN_OBJECTTYPES -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_EXTERNAL_TABS -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RKD_COLLECT_OBJECTS

OBJECTLIST -

Data type: TKCOS
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

BAD_OBJECTTYPE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

OBJECT_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RKD_COLLECT_OBJECTS 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_language  TYPE SY-LANGU, "   SPACE
lt_objectlist  TYPE STANDARD TABLE OF TKCOS, "   
lv_bad_objecttype  TYPE TKCOS, "   
lv_complete_objectlist  TYPE TKCOS, "   SPACE
lv_search_direction  TYPE TKCOS, "   '1'
lv_display_progress  TYPE TKCOS-EXPFL, "   'X'
lv_i_trans_info  TYPE KXOB_YS_TRANS_INFO, "   
lv_mandant  TYPE SY-MANDT, "   SPACE
lv_object_not_found  TYPE SY, "   
lv_application  TYPE TKCK-APPLC, "   SPACE
lv_objecttype  TYPE TKCK, "   
lv_objectkey  TYPE TKCK, "   
lv_objectkeylen  TYPE TKCK, "   0
lv_objecttable  TYPE TKCK, "   SPACE
lv_return_objecttypes  TYPE TKCK, "   SPACE
lv_with_external_tabs  TYPE TKCK. "   SPACE

  CALL FUNCTION 'RKD_COLLECT_OBJECTS'  "
    EXPORTING
         LANGUAGE = lv_language
         COMPLETE_OBJECTLIST = lv_complete_objectlist
         SEARCH_DIRECTION = lv_search_direction
         DISPLAY_PROGRESS = lv_display_progress
         I_TRANS_INFO = lv_i_trans_info
         MANDANT = lv_mandant
         APPLICATION = lv_application
         OBJECTTYPE = lv_objecttype
         OBJECTKEY = lv_objectkey
         OBJECTKEYLEN = lv_objectkeylen
         OBJECTTABLE = lv_objecttable
         RETURN_OBJECTTYPES = lv_return_objecttypes
         WITH_EXTERNAL_TABS = lv_with_external_tabs
    TABLES
         OBJECTLIST = lt_objectlist
    EXCEPTIONS
        BAD_OBJECTTYPE = 1
        OBJECT_NOT_FOUND = 2
. " RKD_COLLECT_OBJECTS




ABAP code using 7.40 inline data declarations to call FM RKD_COLLECT_OBJECTS

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 LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = ' '.
 
 
 
DATA(ld_complete_objectlist) = ' '.
 
DATA(ld_search_direction) = '1'.
 
"SELECT single EXPFL FROM TKCOS INTO @DATA(ld_display_progress).
DATA(ld_display_progress) = 'X'.
 
 
"SELECT single MANDT FROM SY INTO @DATA(ld_mandant).
DATA(ld_mandant) = ' '.
 
 
"SELECT single APPLC FROM TKCK INTO @DATA(ld_application).
DATA(ld_application) = ' '.
 
 
 
 
DATA(ld_objecttable) = ' '.
 
DATA(ld_return_objecttypes) = ' '.
 
DATA(ld_with_external_tabs) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!