SAP ECRM_CONTRACT_SELECTOR Function Module for Selector for Contracts Get BAPIMTCS Structure
ECRM_CONTRACT_SELECTOR is a standard ecrm contract selector SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Selector for Contracts Get BAPIMTCS Structure 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 ecrm contract selector FM, simply by entering the name ECRM_CONTRACT_SELECTOR into the relevant SAP transaction such as SE37 or SE38.
Function Group: ECRM_DOWNLOAD_ISUCONTRACT
Program Name: SAPLECRM_DOWNLOAD_ISUCONTRACT
Main Program: SAPLEECRM_DOWNLOAD
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ECRM_CONTRACT_SELECTOR 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 'ECRM_CONTRACT_SELECTOR'"Selector for Contracts Get BAPIMTCS Structure.
EXPORTING
* IM_DOWNLOADTYP = "Single-Character Indicator
* IM_WMODE = "Processing Mode (1 = Display, 2 = Change, 3 = Create...)
* IM_DELTA_OP = "Single-Character Indicator
* IM_SUBMIT_SELECTION = ' ' "
* IM_DDL_EVERH = "
* IM_BAPICRMDH2 = "BAPI Structure for Downloading Header Data
* IM_EXTRACTERROR = "General Indicator
* IM_BAPICRMDH1 = "BAPI Structure for Downloading Header Data
IMPORTING
EX_STATUS = "General Indicator
TABLES
* TA_LIST_CONTR = "Structure for Including Keys of Contract
* TA_BAPISTRUCT = "Middleware Transaction Container Structure
EXCEPTIONS
BASIC_SELECTION_FAILED = 1 NO_DOWNLOADTYP_AVAIBLE = 2 NO_OPERATIONTYP_AVAIBLE = 3
IMPORTING Parameters details for ECRM_CONTRACT_SELECTOR
IM_DOWNLOADTYP - Single-Character Indicator
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_WMODE - Processing Mode (1 = Display, 2 = Change, 3 = Create...)
Data type: E_MODEOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_DELTA_OP - Single-Character Indicator
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_SUBMIT_SELECTION -
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_DDL_EVERH -
Data type: EECRM_T_EVERHOptional: Yes
Call by Reference: Yes
IM_BAPICRMDH2 - BAPI Structure for Downloading Header Data
Data type: BAPICRMDH2Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_EXTRACTERROR - General Indicator
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_BAPICRMDH1 - BAPI Structure for Downloading Header Data
Data type: BAPICRMDH1Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ECRM_CONTRACT_SELECTOR
EX_STATUS - General Indicator
Data type: FLAGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ECRM_CONTRACT_SELECTOR
TA_LIST_CONTR - Structure for Including Keys of Contract
Data type: ECRM_CONTRACT_KEYOptional: Yes
Call by Reference: Yes
TA_BAPISTRUCT - Middleware Transaction Container Structure
Data type: BAPIMTCSOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
BASIC_SELECTION_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DOWNLOADTYP_AVAIBLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_OPERATIONTYP_AVAIBLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ECRM_CONTRACT_SELECTOR 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_ex_status | TYPE FLAG, " | |||
| lt_ta_list_contr | TYPE STANDARD TABLE OF ECRM_CONTRACT_KEY, " | |||
| lv_im_downloadtyp | TYPE CHAR1, " | |||
| lv_basic_selection_failed | TYPE CHAR1, " | |||
| lv_im_wmode | TYPE E_MODE, " | |||
| lt_ta_bapistruct | TYPE STANDARD TABLE OF BAPIMTCS, " | |||
| lv_no_downloadtyp_avaible | TYPE BAPIMTCS, " | |||
| lv_im_delta_op | TYPE CHAR1, " | |||
| lv_no_operationtyp_avaible | TYPE CHAR1, " | |||
| lv_im_submit_selection | TYPE FLAG, " SPACE | |||
| lv_im_ddl_everh | TYPE EECRM_T_EVERH, " | |||
| lv_im_bapicrmdh2 | TYPE BAPICRMDH2, " | |||
| lv_im_extracterror | TYPE FLAG, " | |||
| lv_im_bapicrmdh1 | TYPE BAPICRMDH1. " |
|   CALL FUNCTION 'ECRM_CONTRACT_SELECTOR' "Selector for Contracts Get BAPIMTCS Structure |
| EXPORTING | ||
| IM_DOWNLOADTYP | = lv_im_downloadtyp | |
| IM_WMODE | = lv_im_wmode | |
| IM_DELTA_OP | = lv_im_delta_op | |
| IM_SUBMIT_SELECTION | = lv_im_submit_selection | |
| IM_DDL_EVERH | = lv_im_ddl_everh | |
| IM_BAPICRMDH2 | = lv_im_bapicrmdh2 | |
| IM_EXTRACTERROR | = lv_im_extracterror | |
| IM_BAPICRMDH1 | = lv_im_bapicrmdh1 | |
| IMPORTING | ||
| EX_STATUS | = lv_ex_status | |
| TABLES | ||
| TA_LIST_CONTR | = lt_ta_list_contr | |
| TA_BAPISTRUCT | = lt_ta_bapistruct | |
| EXCEPTIONS | ||
| BASIC_SELECTION_FAILED = 1 | ||
| NO_DOWNLOADTYP_AVAIBLE = 2 | ||
| NO_OPERATIONTYP_AVAIBLE = 3 | ||
| . " ECRM_CONTRACT_SELECTOR | ||
ABAP code using 7.40 inline data declarations to call FM ECRM_CONTRACT_SELECTOR
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.| DATA(ld_im_submit_selection) | = ' '. | |||
Search for further information about these or an SAP related objects