SAP CNV_TDMS_ADAPT_COPY_PACKAGE Function Module for adapt package to TDMS copy parameters









CNV_TDMS_ADAPT_COPY_PACKAGE is a standard cnv tdms adapt copy package SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for adapt package to TDMS copy parameters 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 cnv tdms adapt copy package FM, simply by entering the name CNV_TDMS_ADAPT_COPY_PACKAGE into the relevant SAP transaction such as SE37 or SE38.

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



Function CNV_TDMS_ADAPT_COPY_PACKAGE 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 'CNV_TDMS_ADAPT_COPY_PACKAGE'"adapt package to TDMS copy parameters
EXPORTING
I_PACKID = "Package number to specify CMIS and TDMS packages
I_COPY_VARIANT = "TDMS: variant of a set of copy parameters
* I_PACKID_ROOT = "Package number to specify CMIS and TDMS packages
* IV_HANDLE = "Application Log: Log handle

TABLES
* IT_COPYC = "TDMS: copy control data for package and variant

EXCEPTIONS
WRONG_PACKID = 1 WRONG_COPY_VARIANT = 2 NO_ROOT_PACKAGE_FOUND = 3 NO_COPY_CUSTOMIZING_FOUND = 4
.



IMPORTING Parameters details for CNV_TDMS_ADAPT_COPY_PACKAGE

I_PACKID - Package number to specify CMIS and TDMS packages

Data type: CNVMBTPACK-PACKID
Optional: No
Call by Reference: Yes

I_COPY_VARIANT - TDMS: variant of a set of copy parameters

Data type: CNVTDMS_10_COPY_VARIANT
Optional: No
Call by Reference: Yes

I_PACKID_ROOT - Package number to specify CMIS and TDMS packages

Data type: CNVMBTPACK-PACKID
Optional: Yes
Call by Reference: Yes

IV_HANDLE - Application Log: Log handle

Data type: BALLOGHNDL
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for CNV_TDMS_ADAPT_COPY_PACKAGE

IT_COPYC - TDMS: copy control data for package and variant

Data type: CNVTDMS_10_COPYC
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

WRONG_PACKID - packid is initial or not valid

Data type:
Optional: No
Call by Reference: Yes

WRONG_COPY_VARIANT - copy variant is initial or not valid

Data type:
Optional: No
Call by Reference: Yes

NO_ROOT_PACKAGE_FOUND - error by reading root package

Data type:
Optional: No
Call by Reference: Yes

NO_COPY_CUSTOMIZING_FOUND - no customizing for adapting package

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CNV_TDMS_ADAPT_COPY_PACKAGE 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_it_copyc  TYPE STANDARD TABLE OF CNVTDMS_10_COPYC, "   
lv_i_packid  TYPE CNVMBTPACK-PACKID, "   
lv_wrong_packid  TYPE CNVMBTPACK, "   
lv_i_copy_variant  TYPE CNVTDMS_10_COPY_VARIANT, "   
lv_wrong_copy_variant  TYPE CNVTDMS_10_COPY_VARIANT, "   
lv_i_packid_root  TYPE CNVMBTPACK-PACKID, "   
lv_no_root_package_found  TYPE CNVMBTPACK, "   
lv_iv_handle  TYPE BALLOGHNDL, "   
lv_no_copy_customizing_found  TYPE BALLOGHNDL. "   

  CALL FUNCTION 'CNV_TDMS_ADAPT_COPY_PACKAGE'  "adapt package to TDMS copy parameters
    EXPORTING
         I_PACKID = lv_i_packid
         I_COPY_VARIANT = lv_i_copy_variant
         I_PACKID_ROOT = lv_i_packid_root
         IV_HANDLE = lv_iv_handle
    TABLES
         IT_COPYC = lt_it_copyc
    EXCEPTIONS
        WRONG_PACKID = 1
        WRONG_COPY_VARIANT = 2
        NO_ROOT_PACKAGE_FOUND = 3
        NO_COPY_CUSTOMIZING_FOUND = 4
. " CNV_TDMS_ADAPT_COPY_PACKAGE




ABAP code using 7.40 inline data declarations to call FM CNV_TDMS_ADAPT_COPY_PACKAGE

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 PACKID FROM CNVMBTPACK INTO @DATA(ld_i_packid).
 
 
 
 
"SELECT single PACKID FROM CNVMBTPACK INTO @DATA(ld_i_packid_root).
 
 
 
 


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!