SAP Function Modules

CUKD_XREF_OBJ_CHARC SAP Function module







CUKD_XREF_OBJ_CHARC 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 CUKD_XREF_OBJ_CHARC into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM CUKD_XREF_OBJ_CHARC - CUKD XREF OBJ CHARC





CALL FUNCTION 'CUKD_XREF_OBJ_CHARC' "
  EXPORTING
    from_date =                 " cukb-datuv    Request with lower time limit
    objtype =                   " cuxref-objtyp  Object type such as 'KLAH' for class
    objkey =                    " cuxref-objkey  Object key such as value of CLINT for class
    atinn =                     " cuxref-atinn  Internal Characteristic Number
    to_date =                   " cukb-datuv    Request with upper time limit
*   dialog = SPACE              " rcurs-checked  Dialog?
* TABLES
*   dependencies =              " cukb          Table of dependencies (CUKB)
  EXCEPTIONS
    NO_DEP_FOUND = 1            "               No hits for search request
    .  "  CUKD_XREF_OBJ_CHARC

ABAP code example for Function Module CUKD_XREF_OBJ_CHARC





The ABAP code below is a full code listing to execute function module CUKD_XREF_OBJ_CHARC 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_dependencies  TYPE STANDARD TABLE OF CUKB,"TABLES PARAM
wa_dependencies  LIKE LINE OF it_dependencies .


SELECT single DATUV
FROM CUKB
INTO @DATA(ld_from_date).


SELECT single OBJTYP
FROM CUXREF
INTO @DATA(ld_objtype).


SELECT single OBJKEY
FROM CUXREF
INTO @DATA(ld_objkey).


SELECT single ATINN
FROM CUXREF
INTO @DATA(ld_atinn).


SELECT single DATUV
FROM CUKB
INTO @DATA(ld_to_date).


DATA(ld_dialog) = some text here

"populate fields of struture and append to itab
append wa_dependencies to it_dependencies. . CALL FUNCTION 'CUKD_XREF_OBJ_CHARC' EXPORTING from_date = ld_from_date objtype = ld_objtype objkey = ld_objkey atinn = ld_atinn to_date = ld_to_date * dialog = ld_dialog * TABLES * dependencies = it_dependencies EXCEPTIONS NO_DEP_FOUND = 1 . " CUKD_XREF_OBJ_CHARC
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_from_date  TYPE CUKB-DATUV ,
it_dependencies  TYPE STANDARD TABLE OF CUKB ,
wa_dependencies  LIKE LINE OF it_dependencies,
ld_objtype  TYPE CUXREF-OBJTYP ,
ld_objkey  TYPE CUXREF-OBJKEY ,
ld_atinn  TYPE CUXREF-ATINN ,
ld_to_date  TYPE CUKB-DATUV ,
ld_dialog  TYPE RCURS-CHECKED .


SELECT single DATUV
FROM CUKB
INTO ld_from_date.


"populate fields of struture and append to itab
append wa_dependencies to it_dependencies.

SELECT single OBJTYP
FROM CUXREF
INTO ld_objtype.


SELECT single OBJKEY
FROM CUXREF
INTO ld_objkey.


SELECT single ATINN
FROM CUXREF
INTO ld_atinn.


SELECT single DATUV
FROM CUKB
INTO ld_to_date.


ld_dialog = some text here

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 CUKD_XREF_OBJ_CHARC or its description.