SAP BAPI_MAP_BAPIMTCS2CONTRACTPOS Function Module for Function Module for Mapping BAPIMTCS by Tables









BAPI_MAP_BAPIMTCS2CONTRACTPOS is a standard bapi map bapimtcs2contractpos SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Function Module for Mapping BAPIMTCS by Tables 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 bapi map bapimtcs2contractpos FM, simply by entering the name BAPI_MAP_BAPIMTCS2CONTRACTPOS into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_MAP_BAPIMTCS2CONTRACTPOS 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 'BAPI_MAP_BAPIMTCS2CONTRACTPOS'"Function Module for Mapping BAPIMTCS by Tables
TABLES
* LT_CONTRACTPOS = "Transfer Structure: Contract Status from CRM to IS-U
* LT_CFGS_VALUE = "Characteristic values of several configurations
* LT_CFGS_BLOB = "BLOB Internal Configuration Data (SCE)
* LT_CFGS_VK = "Variant Condition Keys in Configurations
* LT_CFGS_REFINST = "CU: Reference order item / instance in configuration
* TI_MESSAGE = "Return Parameters
* LT_CONTRACTPOSX = "Structure for Transfer of Contract Data to IS-U
* LT_CONTRACTPOS_OLD = "Transfer Structure: Contract Status from CRM to IS-U
* LT_CONTRACT_STATUS_H = "Transfer Structure: Contract Status from CRM to IS-U Header
* LT_CONTRACT_STATUS_I = "Transfer Structure: Contract Status from CRM to IS-U Item
* TI_BAPIMTCS = "Middleware Transaction Container Structure
* LT_CFGS_REF = "CU: Configuration data
* LT_CFGS_INST = "Instances of Several Configurations
* LT_CFGS_PART_OF = "Part_of entries of several configurations
.



TABLES Parameters details for BAPI_MAP_BAPIMTCS2CONTRACTPOS

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

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

LT_CFGS_VALUE - Characteristic values of several configurations

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

LT_CFGS_BLOB - BLOB Internal Configuration Data (SCE)

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

LT_CFGS_VK - Variant Condition Keys in Configurations

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

LT_CFGS_REFINST - CU: Reference order item / instance in configuration

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

TI_MESSAGE - Return Parameters

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

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

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

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

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

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

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

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

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

TI_BAPIMTCS - Middleware Transaction Container Structure

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

LT_CFGS_REF - CU: Configuration data

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

LT_CFGS_INST - Instances of Several Configurations

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

LT_CFGS_PART_OF - Part_of entries of several configurations

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

Copy and paste ABAP code example for BAPI_MAP_BAPIMTCS2CONTRACTPOS 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_lt_contractpos  TYPE STANDARD TABLE OF EECRM_CRMCONTRACTPOS, "   
lt_lt_cfgs_value  TYPE STANDARD TABLE OF BAPICUVAL, "   
lt_lt_cfgs_blob  TYPE STANDARD TABLE OF BAPICUBLB, "   
lt_lt_cfgs_vk  TYPE STANDARD TABLE OF BAPICUVK, "   
lt_lt_cfgs_refinst  TYPE STANDARD TABLE OF BAPICUREF, "   
lt_ti_message  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_lt_contractposx  TYPE STANDARD TABLE OF EECRM_CRMCONTRACTPOSX, "   
lt_lt_contractpos_old  TYPE STANDARD TABLE OF EECRM_CRMCONTRACTPOS, "   
lt_lt_contract_status_h  TYPE STANDARD TABLE OF EECRM_CRMCNTR_STAT_H, "   
lt_lt_contract_status_i  TYPE STANDARD TABLE OF EECRM_CRMCNTR_STAT_I, "   
lt_ti_bapimtcs  TYPE STANDARD TABLE OF BAPIMTCS, "   
lt_lt_cfgs_ref  TYPE STANDARD TABLE OF BAPICUCFG, "   
lt_lt_cfgs_inst  TYPE STANDARD TABLE OF BAPICUINS, "   
lt_lt_cfgs_part_of  TYPE STANDARD TABLE OF BAPICUPRT. "   

  CALL FUNCTION 'BAPI_MAP_BAPIMTCS2CONTRACTPOS'  "Function Module for Mapping BAPIMTCS by Tables
    TABLES
         LT_CONTRACTPOS = lt_lt_contractpos
         LT_CFGS_VALUE = lt_lt_cfgs_value
         LT_CFGS_BLOB = lt_lt_cfgs_blob
         LT_CFGS_VK = lt_lt_cfgs_vk
         LT_CFGS_REFINST = lt_lt_cfgs_refinst
         TI_MESSAGE = lt_ti_message
         LT_CONTRACTPOSX = lt_lt_contractposx
         LT_CONTRACTPOS_OLD = lt_lt_contractpos_old
         LT_CONTRACT_STATUS_H = lt_lt_contract_status_h
         LT_CONTRACT_STATUS_I = lt_lt_contract_status_i
         TI_BAPIMTCS = lt_ti_bapimtcs
         LT_CFGS_REF = lt_lt_cfgs_ref
         LT_CFGS_INST = lt_lt_cfgs_inst
         LT_CFGS_PART_OF = lt_lt_cfgs_part_of
. " BAPI_MAP_BAPIMTCS2CONTRACTPOS




ABAP code using 7.40 inline data declarations to call FM BAPI_MAP_BAPIMTCS2CONTRACTPOS

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!