SAP Function Modules

RKD_CLIENT_COPY_OBJECTS SAP Function module







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

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


Pattern for FM RKD_CLIENT_COPY_OBJECTS - RKD CLIENT COPY OBJECTS





CALL FUNCTION 'RKD_CLIENT_COPY_OBJECTS' "
  EXPORTING
*   language = SY-LANGU         " sy-langu
*   application = SPACE         " tkeb1-applclass
*   sourcemandant = SY-MANDT    " sy-mandt
*   targetmandant = SY-MANDT    " sy-mandt
*   objectkey = SPACE           "
    objecttype =                "
*   return_objecttypes = SPACE  "
*   with_external_tabs = SPACE  "
*   with_user_action = SPACE    "
*   operation_type = 'B'        "
*   i_trans_info =              " kxob_ys_trans_info  Transportation Info
  EXCEPTIONS
    BAD_OBJECTTYPE = 1          "
    OBJECT_NOT_FOUND = 2        "
    USER_ABORT = 3              "
    JOB_FAILURE = 4             "
    .  "  RKD_CLIENT_COPY_OBJECTS

ABAP code example for Function Module RKD_CLIENT_COPY_OBJECTS





The ABAP code below is a full code listing to execute function module RKD_CLIENT_COPY_OBJECTS 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(ld_language) = 'Check type of data required'.

SELECT single APPLCLASS
FROM TKEB1
INTO @DATA(ld_application).

DATA(ld_sourcemandant) = 'Check type of data required'.
DATA(ld_targetmandant) = 'Check type of data required'.
DATA(ld_objectkey) = 'some text here'.
DATA(ld_objecttype) = 'some text here'.
DATA(ld_return_objecttypes) = 'some text here'.
DATA(ld_with_external_tabs) = 'some text here'.
DATA(ld_with_user_action) = 'some text here'.
DATA(ld_operation_type) = 'some text here'.
DATA(ld_i_trans_info) = 'Check type of data required'. . CALL FUNCTION 'RKD_CLIENT_COPY_OBJECTS' EXPORTING * language = ld_language * application = ld_application * sourcemandant = ld_sourcemandant * targetmandant = ld_targetmandant * objectkey = ld_objectkey objecttype = ld_objecttype * return_objecttypes = ld_return_objecttypes * with_external_tabs = ld_with_external_tabs * with_user_action = ld_with_user_action * operation_type = ld_operation_type * i_trans_info = ld_i_trans_info EXCEPTIONS BAD_OBJECTTYPE = 1 OBJECT_NOT_FOUND = 2 USER_ABORT = 3 JOB_FAILURE = 4 . " RKD_CLIENT_COPY_OBJECTS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "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_language  TYPE SY-LANGU ,
ld_application  TYPE TKEB1-APPLCLASS ,
ld_sourcemandant  TYPE SY-MANDT ,
ld_targetmandant  TYPE SY-MANDT ,
ld_objectkey  TYPE STRING ,
ld_objecttype  TYPE STRING ,
ld_return_objecttypes  TYPE STRING ,
ld_with_external_tabs  TYPE STRING ,
ld_with_user_action  TYPE STRING ,
ld_operation_type  TYPE STRING ,
ld_i_trans_info  TYPE KXOB_YS_TRANS_INFO .

ld_language = 'Check type of data required'.

SELECT single APPLCLASS
FROM TKEB1
INTO ld_application.

ld_sourcemandant = 'Check type of data required'.
ld_targetmandant = 'Check type of data required'.
ld_objectkey = 'some text here'.
ld_objecttype = 'some text here'.
ld_return_objecttypes = 'some text here'.
ld_with_external_tabs = 'some text here'.
ld_with_user_action = 'some text here'.
ld_operation_type = 'some text here'.
ld_i_trans_info = '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 RKD_CLIENT_COPY_OBJECTS or its description.