SAP K_KKB_OBJECT_LIST Function Module for
K_KKB_OBJECT_LIST is a standard k kkb object list 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 k kkb object list FM, simply by entering the name K_KKB_OBJECT_LIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: KKB3
Program Name: SAPLKKB3
Main Program: SAPLKKB3
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K_KKB_OBJECT_LIST 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 'K_KKB_OBJECT_LIST'".
EXPORTING
HIART = "Hierarchy type
HIEID = "Hierarchy ID
KOKRS = "Controlling area
* KSTAR = ' ' "Cost element
* NO_VALUES = ' ' "No values
VARHI = "Hierarchy Code
* I_HERKU = '*' "
* I_PIVOT = "Control Parameters KKBCS
* I_RW_FORCED = "
TABLES
ALT_OBJECTS = "Object table alternative versions
OBJECTS = "Object table
IMPORTING Parameters details for K_KKB_OBJECT_LIST
HIART - Hierarchy type
Data type: CKRCO-HIARTOptional: No
Call by Reference: No ( called with pass by value option)
HIEID - Hierarchy ID
Data type: CKRCO-HIEIDOptional: No
Call by Reference: No ( called with pass by value option)
KOKRS - Controlling area
Data type: KKBC-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
KSTAR - Cost element
Data type: KKBC-KSTARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_VALUES - No values
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
VARHI - Hierarchy Code
Data type: CKRCO-VARHIEBGOptional: No
Call by Reference: No ( called with pass by value option)
I_HERKU -
Data type: KKBC-HERKUDefault: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PIVOT - Control Parameters KKBCS
Data type: KKB_PIVOTOptional: Yes
Call by Reference: Yes
I_RW_FORCED -
Data type: XFLAGOptional: Yes
Call by Reference: Yes
TABLES Parameters details for K_KKB_OBJECT_LIST
ALT_OBJECTS - Object table alternative versions
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECTS - Object table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_KKB_OBJECT_LIST 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_hiart | TYPE CKRCO-HIART, " | |||
| lt_alt_objects | TYPE STANDARD TABLE OF CKRCO, " | |||
| lv_hieid | TYPE CKRCO-HIEID, " | |||
| lt_objects | TYPE STANDARD TABLE OF CKRCO, " | |||
| lv_kokrs | TYPE KKBC-KOKRS, " | |||
| lv_kstar | TYPE KKBC-KSTAR, " SPACE | |||
| lv_no_values | TYPE KKBC, " SPACE | |||
| lv_varhi | TYPE CKRCO-VARHIEBG, " | |||
| lv_i_herku | TYPE KKBC-HERKU, " '*' | |||
| lv_i_pivot | TYPE KKB_PIVOT, " | |||
| lv_i_rw_forced | TYPE XFLAG. " |
|   CALL FUNCTION 'K_KKB_OBJECT_LIST' " |
| EXPORTING | ||
| HIART | = lv_hiart | |
| HIEID | = lv_hieid | |
| KOKRS | = lv_kokrs | |
| KSTAR | = lv_kstar | |
| NO_VALUES | = lv_no_values | |
| VARHI | = lv_varhi | |
| I_HERKU | = lv_i_herku | |
| I_PIVOT | = lv_i_pivot | |
| I_RW_FORCED | = lv_i_rw_forced | |
| TABLES | ||
| ALT_OBJECTS | = lt_alt_objects | |
| OBJECTS | = lt_objects | |
| . " K_KKB_OBJECT_LIST | ||
ABAP code using 7.40 inline data declarations to call FM K_KKB_OBJECT_LIST
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 HIART FROM CKRCO INTO @DATA(ld_hiart). | ||||
| "SELECT single HIEID FROM CKRCO INTO @DATA(ld_hieid). | ||||
| "SELECT single KOKRS FROM KKBC INTO @DATA(ld_kokrs). | ||||
| "SELECT single KSTAR FROM KKBC INTO @DATA(ld_kstar). | ||||
| DATA(ld_kstar) | = ' '. | |||
| DATA(ld_no_values) | = ' '. | |||
| "SELECT single VARHIEBG FROM CKRCO INTO @DATA(ld_varhi). | ||||
| "SELECT single HERKU FROM KKBC INTO @DATA(ld_i_herku). | ||||
| DATA(ld_i_herku) | = '*'. | |||
Search for further information about these or an SAP related objects