EECRM_SELECTOR is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name EECRM_SELECTOR into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
ECRM_CO
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'EECRM_SELECTOR' "Selector for connection object - get BAPIMTCS structure
* EXPORTING
* im_dwnloadtyp = " char1 Single-Character Indicator
* im_wmode = " e_mode Processing Mode (1 = Display, 2 = Change, 3 = Create...)
* im_delta_op = " char1 Single-Character Indicator
* im_submit_selection = SPACE " flag
* im_ddl_ehau = " ehau
* im_tplnr = " tplnr Functional Location
* im_guid = " ehau_guid CRM GUID of Connection Object
* im_bapicrmdh2 = " bapicrmdh2 BAPI Structure for Downloading Header Data
* im_extracterror = " flag
IMPORTING
ex_status = " flag General Indicator
* TABLES
* ta_list_tplnr = " eecrmto_st_tplnr Structure for Including Keys of Functional Location
* ta_bapistruct = " bapimtcs Middleware Transaction Container Structure
* ta_ddl_adrc = " adrc
* ta_ddl_enotet = " enotet
* ta_ddl_jest = " jest
* ta_ddl_jsto = " jsto
* ta_ddl_stxh = " stxh
* ta_ddl_stxl = " itxtl
EXCEPTIONS
BASIC_SELECTION_FAILED = 1 "
SELECT_NEXT_ID_FAILED = 2 "
NO_DOWNLOADTYP_AVAIBLE = 3 "
NO_OPERATIONTYP_AVAIBLE = 4 "
. " EECRM_SELECTOR
The ABAP code below is a full code listing to execute function module EECRM_SELECTOR including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_ex_status | TYPE FLAG , |
| it_ta_list_tplnr | TYPE STANDARD TABLE OF EECRMTO_ST_TPLNR,"TABLES PARAM |
| wa_ta_list_tplnr | LIKE LINE OF it_ta_list_tplnr , |
| it_ta_bapistruct | TYPE STANDARD TABLE OF BAPIMTCS,"TABLES PARAM |
| wa_ta_bapistruct | LIKE LINE OF it_ta_bapistruct , |
| it_ta_ddl_adrc | TYPE STANDARD TABLE OF ADRC,"TABLES PARAM |
| wa_ta_ddl_adrc | LIKE LINE OF it_ta_ddl_adrc , |
| it_ta_ddl_enotet | TYPE STANDARD TABLE OF ENOTET,"TABLES PARAM |
| wa_ta_ddl_enotet | LIKE LINE OF it_ta_ddl_enotet , |
| it_ta_ddl_jest | TYPE STANDARD TABLE OF JEST,"TABLES PARAM |
| wa_ta_ddl_jest | LIKE LINE OF it_ta_ddl_jest , |
| it_ta_ddl_jsto | TYPE STANDARD TABLE OF JSTO,"TABLES PARAM |
| wa_ta_ddl_jsto | LIKE LINE OF it_ta_ddl_jsto , |
| it_ta_ddl_stxh | TYPE STANDARD TABLE OF STXH,"TABLES PARAM |
| wa_ta_ddl_stxh | LIKE LINE OF it_ta_ddl_stxh , |
| it_ta_ddl_stxl | TYPE STANDARD TABLE OF ITXTL,"TABLES PARAM |
| wa_ta_ddl_stxl | LIKE LINE OF it_ta_ddl_stxl . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| it_ta_list_tplnr | TYPE STANDARD TABLE OF EECRMTO_ST_TPLNR , |
| wa_ta_list_tplnr | LIKE LINE OF it_ta_list_tplnr, |
| ld_im_dwnloadtyp | TYPE CHAR1 , |
| ld_ex_status | TYPE FLAG , |
| ld_im_wmode | TYPE E_MODE , |
| it_ta_bapistruct | TYPE STANDARD TABLE OF BAPIMTCS , |
| wa_ta_bapistruct | LIKE LINE OF it_ta_bapistruct, |
| ld_im_delta_op | TYPE CHAR1 , |
| it_ta_ddl_adrc | TYPE STANDARD TABLE OF ADRC , |
| wa_ta_ddl_adrc | LIKE LINE OF it_ta_ddl_adrc, |
| ld_im_submit_selection | TYPE FLAG , |
| it_ta_ddl_enotet | TYPE STANDARD TABLE OF ENOTET , |
| wa_ta_ddl_enotet | LIKE LINE OF it_ta_ddl_enotet, |
| ld_im_ddl_ehau | TYPE EHAU , |
| it_ta_ddl_jest | TYPE STANDARD TABLE OF JEST , |
| wa_ta_ddl_jest | LIKE LINE OF it_ta_ddl_jest, |
| ld_im_tplnr | TYPE TPLNR , |
| it_ta_ddl_jsto | TYPE STANDARD TABLE OF JSTO , |
| wa_ta_ddl_jsto | LIKE LINE OF it_ta_ddl_jsto, |
| ld_im_guid | TYPE EHAU_GUID , |
| it_ta_ddl_stxh | TYPE STANDARD TABLE OF STXH , |
| wa_ta_ddl_stxh | LIKE LINE OF it_ta_ddl_stxh, |
| ld_im_bapicrmdh2 | TYPE BAPICRMDH2 , |
| it_ta_ddl_stxl | TYPE STANDARD TABLE OF ITXTL , |
| wa_ta_ddl_stxl | LIKE LINE OF it_ta_ddl_stxl, |
| ld_im_extracterror | TYPE FLAG . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name EECRM_SELECTOR or its description.
EECRM_SELECTOR - Selector for connection object - get BAPIMTCS structure EECRM_PRESENT_PRICES_TO_CLERK - EECRM_POD_COLLECT_DATA - Subscribe Function for Update Event Point of Delivery EECRM_MAP_TO_EHAU_EHAUTXT - Relevant Fields from EHAU -> BAPI_EHAU and BAPI_EHAUTXT (Delta Only!) EECRM_MAP_INTO_BAPI_STRUCTURE - Map Connection Object Structures to BAPI Structures EECRM_MAP_CONTRACT_TO_BAPIMTCS - Map Different BAPI Structures in Container BAPIMTCS