SAP CUKL_OBJECTS_RELATION_L Function Module for NOTRANSL: Aufbereitung Objekte zu einer Beziehung
CUKL_OBJECTS_RELATION_L is a standard cukl objects relation l SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Aufbereitung Objekte zu einer Beziehung 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 cukl objects relation l FM, simply by entering the name CUKL_OBJECTS_RELATION_L into the relevant SAP transaction such as SE37 or SE38.
Function Group: CUKL
Program Name: SAPLCUKL
Main Program:
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CUKL_OBJECTS_RELATION_L 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 'CUKL_OBJECTS_RELATION_L'"NOTRANSL: Aufbereitung Objekte zu einer Beziehung.
EXPORTING
* CUKL_DATE = "
* CUKL_LANGUAGE = SY-LANGU "
* CUKL_LINE_SIZE = 80 "Line width in list
CUKL_OBJECT_ID = "Object table
* CUKL_TABLE_INDEX = "Table start index
TABLES
T_CUOB = "Table for objects with object dependencies
IMPORTING Parameters details for CUKL_OBJECTS_RELATION_L
CUKL_DATE -
Data type: CUOB-DATUVOptional: Yes
Call by Reference: No ( called with pass by value option)
CUKL_LANGUAGE -
Data type: SWOR-SPRASDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
CUKL_LINE_SIZE - Line width in list
Data type: SY-LINSZDefault: 80
Optional: Yes
Call by Reference: No ( called with pass by value option)
CUKL_OBJECT_ID - Object table
Data type: CUOB-KNTABOptional: No
Call by Reference: No ( called with pass by value option)
CUKL_TABLE_INDEX - Table start index
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CUKL_OBJECTS_RELATION_L
T_CUOB - Table for objects with object dependencies
Data type: CUOBOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CUKL_OBJECTS_RELATION_L 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_t_cuob | TYPE STANDARD TABLE OF CUOB, " | |||
| lv_cukl_date | TYPE CUOB-DATUV, " | |||
| lv_cukl_language | TYPE SWOR-SPRAS, " SY-LANGU | |||
| lv_cukl_line_size | TYPE SY-LINSZ, " 80 | |||
| lv_cukl_object_id | TYPE CUOB-KNTAB, " | |||
| lv_cukl_table_index | TYPE SY-TABIX. " |
|   CALL FUNCTION 'CUKL_OBJECTS_RELATION_L' "NOTRANSL: Aufbereitung Objekte zu einer Beziehung |
| EXPORTING | ||
| CUKL_DATE | = lv_cukl_date | |
| CUKL_LANGUAGE | = lv_cukl_language | |
| CUKL_LINE_SIZE | = lv_cukl_line_size | |
| CUKL_OBJECT_ID | = lv_cukl_object_id | |
| CUKL_TABLE_INDEX | = lv_cukl_table_index | |
| TABLES | ||
| T_CUOB | = lt_t_cuob | |
| . " CUKL_OBJECTS_RELATION_L | ||
ABAP code using 7.40 inline data declarations to call FM CUKL_OBJECTS_RELATION_L
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 DATUV FROM CUOB INTO @DATA(ld_cukl_date). | ||||
| "SELECT single SPRAS FROM SWOR INTO @DATA(ld_cukl_language). | ||||
| DATA(ld_cukl_language) | = SY-LANGU. | |||
| "SELECT single LINSZ FROM SY INTO @DATA(ld_cukl_line_size). | ||||
| DATA(ld_cukl_line_size) | = 80. | |||
| "SELECT single KNTAB FROM CUOB INTO @DATA(ld_cukl_object_id). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_cukl_table_index). | ||||
Search for further information about these or an SAP related objects