SAP CMD_MIG_BP_CVI_CREATE Function Module for RFC for creating new BP with CVI and new segments insertion









CMD_MIG_BP_CVI_CREATE is a standard cmd mig bp cvi create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RFC for creating new BP with CVI and new segments insertion 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 cmd mig bp cvi create FM, simply by entering the name CMD_MIG_BP_CVI_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function CMD_MIG_BP_CVI_CREATE 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 'CMD_MIG_BP_CVI_CREATE'"RFC for creating new BP with CVI and new segments insertion
EXPORTING
IT_DATA = "Inbound for Customer/Vendor Integration
* IT_EXT_SUPP_CMP_COD = "Extension Incl. for Supp Company Code for S4 Migration API
* IT_EXT_SUPP_PUR = "Extension Incl. for Supp Purchasing for S4 Migration API
* IT_EXT_BP_CEN = "Extension Incl. for Bus. Partner for S4 Migration API
* IT_EXT_CUST_CEN = "Extension Incl. for Customer Master for S4 Migration API
* IT_EXT_VEND_CEN = "Extension Incl. for Vendor Master for S4 Migration API
* IV_SUPPRESS_TAXJUR_CHECK = "Boolean Variable (X=true, -=false, space=unknown)
* IV_PROCESSING_MODE = "(undefined = insert, 1 = insert sales address dependent data only)
* IV_TEST_RUN = "Boolean Variable (X=true, -=false, space=unknown)
* IT_EXT_CUST_CMP_COD = "Extension Incl. for Cust company code for S4 Migration API
* IT_EXT_CUST_SALES = "Extension Incl. for Customer sales area for S4 Migration API

IMPORTING
ET_RETURN = "BAPIRETI Table Type for Multiple Objects
ET_RETURN_NEW = "BP Return Table Type during Migration
ET_KEY_MAPPING = "Key Mapping Table Type for Sender ID and BP for Migration
.



IMPORTING Parameters details for CMD_MIG_BP_CVI_CREATE

IT_DATA - Inbound for Customer/Vendor Integration

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

IT_EXT_SUPP_CMP_COD - Extension Incl. for Supp Company Code for S4 Migration API

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

IT_EXT_SUPP_PUR - Extension Incl. for Supp Purchasing for S4 Migration API

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

IT_EXT_BP_CEN - Extension Incl. for Bus. Partner for S4 Migration API

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

IT_EXT_CUST_CEN - Extension Incl. for Customer Master for S4 Migration API

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

IT_EXT_VEND_CEN - Extension Incl. for Vendor Master for S4 Migration API

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

IV_SUPPRESS_TAXJUR_CHECK - Boolean Variable (X=true, -=false, space=unknown)

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

IV_PROCESSING_MODE - (undefined = insert, 1 = insert sales address dependent data only)

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

IV_TEST_RUN - Boolean Variable (X=true, -=false, space=unknown)

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

IT_EXT_CUST_CMP_COD - Extension Incl. for Cust company code for S4 Migration API

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

IT_EXT_CUST_SALES - Extension Incl. for Customer sales area for S4 Migration API

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

EXPORTING Parameters details for CMD_MIG_BP_CVI_CREATE

ET_RETURN - BAPIRETI Table Type for Multiple Objects

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

ET_RETURN_NEW - BP Return Table Type during Migration

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

ET_KEY_MAPPING - Key Mapping Table Type for Sender ID and BP for Migration

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

Copy and paste ABAP code example for CMD_MIG_BP_CVI_CREATE 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_it_data  TYPE MIG_CVIS_EI_EXTERN_T, "   
lv_et_return  TYPE BAPIRETM, "   
lv_it_ext_supp_cmp_cod  TYPE MIG_CMDS_EI_SUPP_CMP_COD_EXT_T, "   
lv_it_ext_supp_pur  TYPE MIG_CMDS_EI_SUPP_PUR_EXT_T, "   
lv_et_return_new  TYPE FS4MIG_T_BAPIRET2, "   
lv_it_ext_bp_cen  TYPE MIG_CMDS_EI_BP_CEN_EXT_T, "   
lv_et_key_mapping  TYPE MIG_CVIS_KEY_MAPPING_BP_T, "   
lv_it_ext_cust_cen  TYPE MIG_CMDS_EI_CUST_CEN_EXT_T, "   
lv_it_ext_vend_cen  TYPE MIG_CMDS_EI_VEND_CEN_EXT_T, "   
lv_iv_suppress_taxjur_check  TYPE BOOLEAN, "   
lv_iv_processing_mode  TYPE CMD_BP_MIGRATE_PROCESSING_TYPE, "   
lv_iv_test_run  TYPE BOOLEAN, "   
lv_it_ext_cust_cmp_cod  TYPE MIG_CMDS_EI_CUST_CMP_COD_EXT_T, "   
lv_it_ext_cust_sales  TYPE MIG_CMDS_EI_CUST_SALES_EXT_T. "   

  CALL FUNCTION 'CMD_MIG_BP_CVI_CREATE'  "RFC for creating new BP with CVI and new segments insertion
    EXPORTING
         IT_DATA = lv_it_data
         IT_EXT_SUPP_CMP_COD = lv_it_ext_supp_cmp_cod
         IT_EXT_SUPP_PUR = lv_it_ext_supp_pur
         IT_EXT_BP_CEN = lv_it_ext_bp_cen
         IT_EXT_CUST_CEN = lv_it_ext_cust_cen
         IT_EXT_VEND_CEN = lv_it_ext_vend_cen
         IV_SUPPRESS_TAXJUR_CHECK = lv_iv_suppress_taxjur_check
         IV_PROCESSING_MODE = lv_iv_processing_mode
         IV_TEST_RUN = lv_iv_test_run
         IT_EXT_CUST_CMP_COD = lv_it_ext_cust_cmp_cod
         IT_EXT_CUST_SALES = lv_it_ext_cust_sales
    IMPORTING
         ET_RETURN = lv_et_return
         ET_RETURN_NEW = lv_et_return_new
         ET_KEY_MAPPING = lv_et_key_mapping
. " CMD_MIG_BP_CVI_CREATE




ABAP code using 7.40 inline data declarations to call FM CMD_MIG_BP_CVI_CREATE

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!