SAP Function Modules

CUCP_CONFIGURATIONS_EXIST SAP Function module







CUCP_CONFIGURATIONS_EXIST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CUCP_CONFIGURATIONS_EXIST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CUCP
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CUCP_CONFIGURATIONS_EXIST - CUCP CONFIGURATIONS EXIST





CALL FUNCTION 'CUCP_CONFIGURATIONS_EXIST' "
  EXPORTING
    cucp_var_class_type =       " klah-klart
*   cucp_class =                " klah-class
*   cucp_root_object_key =      " inob-objek
*   cucp_root_object_table =    " inob-obtab
    cucp_date =                 " kssk-datuv
*   cucp_check_only = 'X'       " c
* TABLES
*   configured_objects =        " inob
*   configured_objects_inob =   " inob
*   configured_objects_ibase =   " ibin
  EXCEPTIONS
    USED_IN_CONFIGURATION = 1   "
    .  "  CUCP_CONFIGURATIONS_EXIST

ABAP code example for Function Module CUCP_CONFIGURATIONS_EXIST





The ABAP code below is a full code listing to execute function module CUCP_CONFIGURATIONS_EXIST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_configured_objects  TYPE STANDARD TABLE OF INOB,"TABLES PARAM
wa_configured_objects  LIKE LINE OF it_configured_objects ,
it_configured_objects_inob  TYPE STANDARD TABLE OF INOB,"TABLES PARAM
wa_configured_objects_inob  LIKE LINE OF it_configured_objects_inob ,
it_configured_objects_ibase  TYPE STANDARD TABLE OF IBIN,"TABLES PARAM
wa_configured_objects_ibase  LIKE LINE OF it_configured_objects_ibase .


SELECT single KLART
FROM KLAH
INTO @DATA(ld_cucp_var_class_type).


SELECT single CLASS
FROM KLAH
INTO @DATA(ld_cucp_class).


SELECT single OBJEK
FROM INOB
INTO @DATA(ld_cucp_root_object_key).


SELECT single OBTAB
FROM INOB
INTO @DATA(ld_cucp_root_object_table).


SELECT single DATUV
FROM KSSK
INTO @DATA(ld_cucp_date).

DATA(ld_cucp_check_only) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_configured_objects to it_configured_objects.

"populate fields of struture and append to itab
append wa_configured_objects_inob to it_configured_objects_inob.

"populate fields of struture and append to itab
append wa_configured_objects_ibase to it_configured_objects_ibase. . CALL FUNCTION 'CUCP_CONFIGURATIONS_EXIST' EXPORTING cucp_var_class_type = ld_cucp_var_class_type * cucp_class = ld_cucp_class * cucp_root_object_key = ld_cucp_root_object_key * cucp_root_object_table = ld_cucp_root_object_table cucp_date = ld_cucp_date * cucp_check_only = ld_cucp_check_only * TABLES * configured_objects = it_configured_objects * configured_objects_inob = it_configured_objects_inob * configured_objects_ibase = it_configured_objects_ibase EXCEPTIONS USED_IN_CONFIGURATION = 1 . " CUCP_CONFIGURATIONS_EXIST
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_cucp_var_class_type  TYPE KLAH-KLART ,
it_configured_objects  TYPE STANDARD TABLE OF INOB ,
wa_configured_objects  LIKE LINE OF it_configured_objects,
ld_cucp_class  TYPE KLAH-CLASS ,
it_configured_objects_inob  TYPE STANDARD TABLE OF INOB ,
wa_configured_objects_inob  LIKE LINE OF it_configured_objects_inob,
ld_cucp_root_object_key  TYPE INOB-OBJEK ,
it_configured_objects_ibase  TYPE STANDARD TABLE OF IBIN ,
wa_configured_objects_ibase  LIKE LINE OF it_configured_objects_ibase,
ld_cucp_root_object_table  TYPE INOB-OBTAB ,
ld_cucp_date  TYPE KSSK-DATUV ,
ld_cucp_check_only  TYPE C .


SELECT single KLART
FROM KLAH
INTO ld_cucp_var_class_type.


"populate fields of struture and append to itab
append wa_configured_objects to it_configured_objects.

SELECT single CLASS
FROM KLAH
INTO ld_cucp_class.


"populate fields of struture and append to itab
append wa_configured_objects_inob to it_configured_objects_inob.

SELECT single OBJEK
FROM INOB
INTO ld_cucp_root_object_key.


"populate fields of struture and append to itab
append wa_configured_objects_ibase to it_configured_objects_ibase.

SELECT single OBTAB
FROM INOB
INTO ld_cucp_root_object_table.


SELECT single DATUV
FROM KSSK
INTO ld_cucp_date.

ld_cucp_check_only = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CUCP_CONFIGURATIONS_EXIST or its description.