SAP RKD_COLLECT_MASS_OBJECTS Function Module for









RKD_COLLECT_MASS_OBJECTS is a standard rkd collect mass 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 mass objects FM, simply by entering the name RKD_COLLECT_MASS_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_MASS_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_MASS_OBJECTS'"
EXPORTING
* LANGUAGE = ' ' "Language(s) of the objects searched for
* MANDANT = ' ' "Client(s) of the objects searched for
* APPLICATION = ' ' "
* RETURN_OBJECTTYPES = ' ' "Type(s) of objects searched for
* WITH_EXTERNAL_TABS = ' ' "' ' search only application-spec., 'X' all
* COMPLETE_OBJECTLIST = ' ' "'Y' gives back all found objects
* SEARCH_DIRECTION = '1' "
* DISPLAY_PROGRESS = 'X' "Display search progress
* I_TRANS_INFO = "

TABLES
OBJECTLIST = "I:List source objects, O: List dependent objects

EXCEPTIONS
BAD_OBJECTTYPE = 1 OBJECT_NOT_FOUND = 2
.



IMPORTING Parameters details for RKD_COLLECT_MASS_OBJECTS

LANGUAGE - Language(s) of the objects searched for

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

MANDANT - Client(s) of the objects searched for

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)

RETURN_OBJECTTYPES - Type(s) of objects searched for

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

WITH_EXTERNAL_TABS - ' ' search only application-spec., 'X' all

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

COMPLETE_OBJECTLIST - 'Y' gives back all found objects

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 - Display search 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)

TABLES Parameters details for RKD_COLLECT_MASS_OBJECTS

OBJECTLIST - I:List source objects, O: List dependent objects

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

EXCEPTIONS details

BAD_OBJECTTYPE - Output-/target object type

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

OBJECT_NOT_FOUND - Output 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_MASS_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_mandant  TYPE SY-MANDT, "   SPACE
lv_object_not_found  TYPE SY, "   
lv_application  TYPE TKCK-APPLC, "   SPACE
lv_return_objecttypes  TYPE TKCK, "   SPACE
lv_with_external_tabs  TYPE TKCK, "   SPACE
lv_complete_objectlist  TYPE TKCK, "   SPACE
lv_search_direction  TYPE TKCK, "   '1'
lv_display_progress  TYPE TKCOS-EXPFL, "   'X'
lv_i_trans_info  TYPE KXOB_YS_TRANS_INFO. "   

  CALL FUNCTION 'RKD_COLLECT_MASS_OBJECTS'  "
    EXPORTING
         LANGUAGE = lv_language
         MANDANT = lv_mandant
         APPLICATION = lv_application
         RETURN_OBJECTTYPES = lv_return_objecttypes
         WITH_EXTERNAL_TABS = lv_with_external_tabs
         COMPLETE_OBJECTLIST = lv_complete_objectlist
         SEARCH_DIRECTION = lv_search_direction
         DISPLAY_PROGRESS = lv_display_progress
         I_TRANS_INFO = lv_i_trans_info
    TABLES
         OBJECTLIST = lt_objectlist
    EXCEPTIONS
        BAD_OBJECTTYPE = 1
        OBJECT_NOT_FOUND = 2
. " RKD_COLLECT_MASS_OBJECTS




ABAP code using 7.40 inline data declarations to call FM RKD_COLLECT_MASS_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) = ' '.
 
 
 
"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_return_objecttypes) = ' '.
 
DATA(ld_with_external_tabs) = ' '.
 
DATA(ld_complete_objectlist) = ' '.
 
DATA(ld_search_direction) = '1'.
 
"SELECT single EXPFL FROM TKCOS INTO @DATA(ld_display_progress).
DATA(ld_display_progress) = 'X'.
 
 


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!