SAP EECRM_MAP_CONTRACT_TO_BAPIMTCS Function Module for Map Different BAPI Structures in Container BAPIMTCS









EECRM_MAP_CONTRACT_TO_BAPIMTCS is a standard eecrm map contract to bapimtcs SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Map Different BAPI Structures in Container BAPIMTCS 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 eecrm map contract to bapimtcs FM, simply by entering the name EECRM_MAP_CONTRACT_TO_BAPIMTCS into the relevant SAP transaction such as SE37 or SE38.

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



Function EECRM_MAP_CONTRACT_TO_BAPIMTCS 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 'EECRM_MAP_CONTRACT_TO_BAPIMTCS'"Map Different BAPI Structures in Container BAPIMTCS
TABLES
* BAPI_CONTRACTPOS = "Transfer Structure: Contract Status from CRM to IS-U
* BAPI_CFGS_VK = "Variant Condition Key for Configurations
* BAPI_CFGS_REFINST = "CU: Reference Order Item / Instance in Configuration
* TO_BAPISTRUCTURES = "Middleware Transaction Container Structure
* TO_INTERNAL_TABLES = "Middleware Transaction Container Structure
* BAPI_CONTRACTPOSX = "Structure for Transfer of Contract Data to IS-U
* BAPI_CONTRACTSTAT_H = "Transfer Structure: Contract Status from CRM to IS-U Header
* BAPI_CONTRACTSTAT_I = "Transfer Structure: Contract Status from CRM to IS-U Item
* BAPI_CFGS_REF = "CU: Configuration Data
* BAPI_CFGS_INST = "Instances of Several Configurations
* BAPI_CFGS_PART_OF = "Part_Of Information for Several Configurations
* BAPI_CFGS_VALUE = "Characteristic Value Assignments for Several Configurations
* BAPI_CFGS_BLOB = "BLOB Internal Configuration Data (SCE)
.



TABLES Parameters details for EECRM_MAP_CONTRACT_TO_BAPIMTCS

BAPI_CONTRACTPOS - Transfer Structure: Contract Status from CRM to IS-U

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

BAPI_CFGS_VK - Variant Condition Key for Configurations

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

BAPI_CFGS_REFINST - CU: Reference Order Item / Instance in Configuration

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

TO_BAPISTRUCTURES - Middleware Transaction Container Structure

Data type: BAPIMTCS
Optional: Yes
Call by Reference: No ( called with pass by value option)

TO_INTERNAL_TABLES - Middleware Transaction Container Structure

Data type: BAPIMTCS
Optional: Yes
Call by Reference: No ( called with pass by value option)

BAPI_CONTRACTPOSX - Structure for Transfer of Contract Data to IS-U

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

BAPI_CONTRACTSTAT_H - Transfer Structure: Contract Status from CRM to IS-U Header

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

BAPI_CONTRACTSTAT_I - Transfer Structure: Contract Status from CRM to IS-U Item

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

BAPI_CFGS_REF - CU: Configuration Data

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

BAPI_CFGS_INST - Instances of Several Configurations

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

BAPI_CFGS_PART_OF - Part_Of Information for Several Configurations

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

BAPI_CFGS_VALUE - Characteristic Value Assignments for Several Configurations

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

BAPI_CFGS_BLOB - BLOB Internal Configuration Data (SCE)

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

Copy and paste ABAP code example for EECRM_MAP_CONTRACT_TO_BAPIMTCS 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_bapi_contractpos  TYPE STANDARD TABLE OF EECRM_CRMCONTRACTPOS, "   
lt_bapi_cfgs_vk  TYPE STANDARD TABLE OF BAPICUVK, "   
lt_bapi_cfgs_refinst  TYPE STANDARD TABLE OF BAPICUREF, "   
lt_to_bapistructures  TYPE STANDARD TABLE OF BAPIMTCS, "   
lt_to_internal_tables  TYPE STANDARD TABLE OF BAPIMTCS, "   
lt_bapi_contractposx  TYPE STANDARD TABLE OF EECRM_CRMCONTRACTPOSX, "   
lt_bapi_contractstat_h  TYPE STANDARD TABLE OF EECRM_CRMCNTR_STAT_H, "   
lt_bapi_contractstat_i  TYPE STANDARD TABLE OF EECRM_CRMCNTR_STAT_I, "   
lt_bapi_cfgs_ref  TYPE STANDARD TABLE OF BAPICUCFG, "   
lt_bapi_cfgs_inst  TYPE STANDARD TABLE OF BAPICUINS, "   
lt_bapi_cfgs_part_of  TYPE STANDARD TABLE OF BAPICUPRT, "   
lt_bapi_cfgs_value  TYPE STANDARD TABLE OF BAPICUVALM, "   
lt_bapi_cfgs_blob  TYPE STANDARD TABLE OF BAPICUBLB. "   

  CALL FUNCTION 'EECRM_MAP_CONTRACT_TO_BAPIMTCS'  "Map Different BAPI Structures in Container BAPIMTCS
    TABLES
         BAPI_CONTRACTPOS = lt_bapi_contractpos
         BAPI_CFGS_VK = lt_bapi_cfgs_vk
         BAPI_CFGS_REFINST = lt_bapi_cfgs_refinst
         TO_BAPISTRUCTURES = lt_to_bapistructures
         TO_INTERNAL_TABLES = lt_to_internal_tables
         BAPI_CONTRACTPOSX = lt_bapi_contractposx
         BAPI_CONTRACTSTAT_H = lt_bapi_contractstat_h
         BAPI_CONTRACTSTAT_I = lt_bapi_contractstat_i
         BAPI_CFGS_REF = lt_bapi_cfgs_ref
         BAPI_CFGS_INST = lt_bapi_cfgs_inst
         BAPI_CFGS_PART_OF = lt_bapi_cfgs_part_of
         BAPI_CFGS_VALUE = lt_bapi_cfgs_value
         BAPI_CFGS_BLOB = lt_bapi_cfgs_blob
. " EECRM_MAP_CONTRACT_TO_BAPIMTCS




ABAP code using 7.40 inline data declarations to call FM EECRM_MAP_CONTRACT_TO_BAPIMTCS

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!