SAP CUKD_API_DEP_READ Function Module for









CUKD_API_DEP_READ is a standard cukd api dep read 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 cukd api dep read FM, simply by entering the name CUKD_API_DEP_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: CUKD
Program Name: SAPLCUKD
Main Program: SAPLCUKD
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CUKD_API_DEP_READ 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 'CUKD_API_DEP_READ'"
EXPORTING
KNNAM = "Dependency name (language-independent)
* DATE = SY-DATUM "Search date
* WITH_BASIC_DATA = 'X' "Read basic data
* WITH_LANG_DEP_NAMES = 'X' "Read language-dependent descriptions
* WITH_DOCUS = 'X' "Read language-dependent documentation
* WITH_SOURCES = 'X' "Read source code
* ONLY_THIS_LANGUAGE = ' ' "Language-dependent possibly for one language only
* USE_BUFFER = ' ' "
* MSG_IF_NOT_FOUND = 'X' "Check

IMPORTING
BASIC_DATA = "Basic dependency data read
WARNING = "Warning messages in log

TABLES
* NAMES = "Read descriptions of dependency
* DOCUS = "Read documentation of dependency
* SOURCES = "Read source code of dependency

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for CUKD_API_DEP_READ

KNNAM - Dependency name (language-independent)

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

DATE - Search date

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

WITH_BASIC_DATA - Read basic data

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

WITH_LANG_DEP_NAMES - Read language-dependent descriptions

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

WITH_DOCUS - Read language-dependent documentation

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

WITH_SOURCES - Read source code

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

ONLY_THIS_LANGUAGE - Language-dependent possibly for one language only

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

USE_BUFFER -

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

MSG_IF_NOT_FOUND - Check

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

EXPORTING Parameters details for CUKD_API_DEP_READ

BASIC_DATA - Basic dependency data read

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

WARNING - Warning messages in log

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

TABLES Parameters details for CUKD_API_DEP_READ

NAMES - Read descriptions of dependency

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

DOCUS - Read documentation of dependency

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

SOURCES - Read source code of dependency

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

EXCEPTIONS details

ERROR - Processing terminated (see log)

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

Copy and paste ABAP code example for CUKD_API_DEP_READ 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_error  TYPE STRING, "   
lv_knnam  TYPE RCUKD-KNNAM, "   
lt_names  TYPE STANDARD TABLE OF RCUKBT1, "   
lv_basic_data  TYPE RCUKB1, "   
lv_date  TYPE SY-DATUM, "   SY-DATUM
lt_docus  TYPE STANDARD TABLE OF RCUKDOC1, "   
lv_warning  TYPE RCURS-CHECKED, "   
lt_sources  TYPE STANDARD TABLE OF RCUKN1, "   
lv_with_basic_data  TYPE RCURS-CHECKED, "   'X'
lv_with_lang_dep_names  TYPE RCURS-CHECKED, "   'X'
lv_with_docus  TYPE RCURS-CHECKED, "   'X'
lv_with_sources  TYPE RCURS-CHECKED, "   'X'
lv_only_this_language  TYPE SY-LANGU, "   ' '
lv_use_buffer  TYPE RCURS-CHECKED, "   ' '
lv_msg_if_not_found  TYPE RCURS-CHECKED. "   'X'

  CALL FUNCTION 'CUKD_API_DEP_READ'  "
    EXPORTING
         KNNAM = lv_knnam
         DATE = lv_date
         WITH_BASIC_DATA = lv_with_basic_data
         WITH_LANG_DEP_NAMES = lv_with_lang_dep_names
         WITH_DOCUS = lv_with_docus
         WITH_SOURCES = lv_with_sources
         ONLY_THIS_LANGUAGE = lv_only_this_language
         USE_BUFFER = lv_use_buffer
         MSG_IF_NOT_FOUND = lv_msg_if_not_found
    IMPORTING
         BASIC_DATA = lv_basic_data
         WARNING = lv_warning
    TABLES
         NAMES = lt_names
         DOCUS = lt_docus
         SOURCES = lt_sources
    EXCEPTIONS
        ERROR = 1
. " CUKD_API_DEP_READ




ABAP code using 7.40 inline data declarations to call FM CUKD_API_DEP_READ

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 KNNAM FROM RCUKD INTO @DATA(ld_knnam).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_date).
DATA(ld_date) = SY-DATUM.
 
 
"SELECT single CHECKED FROM RCURS INTO @DATA(ld_warning).
 
 
"SELECT single CHECKED FROM RCURS INTO @DATA(ld_with_basic_data).
DATA(ld_with_basic_data) = 'X'.
 
"SELECT single CHECKED FROM RCURS INTO @DATA(ld_with_lang_dep_names).
DATA(ld_with_lang_dep_names) = 'X'.
 
"SELECT single CHECKED FROM RCURS INTO @DATA(ld_with_docus).
DATA(ld_with_docus) = 'X'.
 
"SELECT single CHECKED FROM RCURS INTO @DATA(ld_with_sources).
DATA(ld_with_sources) = 'X'.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_only_this_language).
DATA(ld_only_this_language) = ' '.
 
"SELECT single CHECKED FROM RCURS INTO @DATA(ld_use_buffer).
DATA(ld_use_buffer) = ' '.
 
"SELECT single CHECKED FROM RCURS INTO @DATA(ld_msg_if_not_found).
DATA(ld_msg_if_not_found) = '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!