SAP ECM_PROCESSOR_INIT Function Module for Initialize data for FB ECM_PROCESSOR
ECM_PROCESSOR_INIT is a standard ecm processor init SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Initialize data for FB ECM_PROCESSOR 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 ecm processor init FM, simply by entering the name ECM_PROCESSOR_INIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CCPR
Program Name: SAPLCCPR
Main Program: SAPLCCPR
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ECM_PROCESSOR_INIT 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 'ECM_PROCESSOR_INIT'"Initialize data for FB ECM_PROCESSOR.
EXPORTING
* E_TECHS = "
* BATCHLAUF = "
* DEFAULT_TECHS = "
* DEFAULT_PFLEGEBEW = "
* NUR_VORGABEN = "
* NO_BUTTON_VORGABEN = "
* FREIG_EINGABEBEREIT = "
* AENNR_VALID = "
* HEADLINE = "
* FREE_MEMORY = 'X' "
* BATCH_AEEF = "
* DATUV = "Date Valid to (from Structure STASS)
* CONF_KEY = "
* TOPMATNR = "Material Number
* PREV_INPUT = "
* POPUP_INACTIVE = "
* NO_FREIG = "
* HDM = "
* FL_EXTEND_AEPLST = "
* FL_NO_MAINTENANCE = "
* PROTOTYP_AKTIV = "
* PROTOTYP_FELDER = "
* AENNR = "
* PROT_TEREL_CHECK = 'X' "
* FREIG_KALKULATION = "
* FREIG_PLANUNG = "
* FREIG_FERTIGUNG = "
* FREIG_SIMULATION = "
* DISPLAY = "
* NO_POP_UP = "
IMPORTING
ENTRIES_IN_POPUP = "
* E_FREIG_SIMULATION = "Release for Simulation
* E_PROTOTYP_AKTIV = "
UPDATE = "
TECHS = "
OTEXT = "
OCM_VORGABE = "
INITIALIZED = "
* E_FREIG_KALKULATION = "Release for Costing
* E_FREIG_PLANUNG = "Release for Planning
* E_FREIG_FERTIGUNG = "Release for Production
CHANGING
* TECHS_MAINTAIN = "
TABLES
* VALID_OR_INVALID = "
* PARAMETER = "
* OUTPUT_VAL_OR_INVAL = "
* OUTPUT_PARAMETER = "
EXCEPTIONS
EXIT_IN_DYNPRO = 1 WRONG_FORMAT_IN_INPUT = 2 NO_MAINTENANCE_DATA = 3 ERROR_INTERFACE = 4
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLCCPR_001 Parameter effectivity: Formatting of output string
IMPORTING Parameters details for ECM_PROCESSOR_INIT
E_TECHS -
Data type: TECS-TECHSOptional: Yes
Call by Reference: No ( called with pass by value option)
BATCHLAUF -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
DEFAULT_TECHS -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
DEFAULT_PFLEGEBEW -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
NUR_VORGABEN -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_BUTTON_VORGABEN -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
FREIG_EINGABEBEREIT -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
AENNR_VALID -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
HEADLINE -
Data type: CC01_CHAR60Optional: Yes
Call by Reference: No ( called with pass by value option)
FREE_MEMORY -
Data type: CC01_CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
BATCH_AEEF -
Data type: AEEFOptional: Yes
Call by Reference: No ( called with pass by value option)
DATUV - Date Valid to (from Structure STASS)
Data type: CCDECO-DATUBOptional: Yes
Call by Reference: No ( called with pass by value option)
CONF_KEY -
Data type: AEPREC-CONF_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
TOPMATNR - Material Number
Data type: RC29A-MATNROptional: Yes
Call by Reference: No ( called with pass by value option)
PREV_INPUT -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
POPUP_INACTIVE -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_FREIG -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
HDM -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
FL_EXTEND_AEPLST -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
FL_NO_MAINTENANCE -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
PROTOTYP_AKTIV -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
PROTOTYP_FELDER -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
AENNR -
Data type: AENR-AENNROptional: Yes
Call by Reference: No ( called with pass by value option)
PROT_TEREL_CHECK -
Data type: CC01_CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
FREIG_KALKULATION -
Data type: TCC10-AEFRKOptional: Yes
Call by Reference: No ( called with pass by value option)
FREIG_PLANUNG -
Data type: TCC10-AEFRPOptional: Yes
Call by Reference: No ( called with pass by value option)
FREIG_FERTIGUNG -
Data type: TCC10-AEFRFOptional: Yes
Call by Reference: No ( called with pass by value option)
FREIG_SIMULATION -
Data type: TCC10-AEFRSOptional: Yes
Call by Reference: No ( called with pass by value option)
DISPLAY -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_POP_UP -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ECM_PROCESSOR_INIT
ENTRIES_IN_POPUP -
Data type: CC01_CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
E_FREIG_SIMULATION - Release for Simulation
Data type: TCC10-AEFRSOptional: Yes
Call by Reference: No ( called with pass by value option)
E_PROTOTYP_AKTIV -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
UPDATE -
Data type: CC01_CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
TECHS -
Data type: TECS-TECHSOptional: No
Call by Reference: No ( called with pass by value option)
OTEXT -
Data type: TECT-OTEXTOptional: No
Call by Reference: No ( called with pass by value option)
OCM_VORGABE -
Data type: CC01_VALID_OR_INVALID_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
INITIALIZED -
Data type: CC01_CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
E_FREIG_KALKULATION - Release for Costing
Data type: TCC10-AEFRKOptional: Yes
Call by Reference: No ( called with pass by value option)
E_FREIG_PLANUNG - Release for Planning
Data type: TCC10-AEFRPOptional: Yes
Call by Reference: No ( called with pass by value option)
E_FREIG_FERTIGUNG - Release for Production
Data type: TCC10-AEFRFOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for ECM_PROCESSOR_INIT
TECHS_MAINTAIN -
Data type: CC01_CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ECM_PROCESSOR_INIT
VALID_OR_INVALID -
Data type: CC01_VALID_INVALIDOptional: Yes
Call by Reference: No ( called with pass by value option)
PARAMETER -
Data type: CC01_PARAMETEROptional: Yes
Call by Reference: No ( called with pass by value option)
OUTPUT_VAL_OR_INVAL -
Data type: CC01_VALID_INVALIDOptional: Yes
Call by Reference: No ( called with pass by value option)
OUTPUT_PARAMETER -
Data type: CC01_PARAMETEROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EXIT_IN_DYNPRO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_FORMAT_IN_INPUT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MAINTENANCE_DATA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_INTERFACE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ECM_PROCESSOR_INIT 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_e_techs | TYPE TECS-TECHS, " | |||
| lv_exit_in_dynpro | TYPE TECS, " | |||
| lv_techs_maintain | TYPE CC01_CHAR1, " | |||
| lv_entries_in_popup | TYPE CC01_CHAR1, " | |||
| lt_valid_or_invalid | TYPE STANDARD TABLE OF CC01_VALID_INVALID, " | |||
| lv_batchlauf | TYPE CC01_CHAR1, " | |||
| lv_e_freig_simulation | TYPE TCC10-AEFRS, " | |||
| lv_default_techs | TYPE CC01_CHAR1, " | |||
| lv_e_prototyp_aktiv | TYPE CC01_CHAR1, " | |||
| lv_default_pflegebew | TYPE CC01_CHAR1, " | |||
| lv_nur_vorgaben | TYPE CC01_CHAR1, " | |||
| lv_no_button_vorgaben | TYPE CC01_CHAR1, " | |||
| lv_freig_eingabebereit | TYPE CC01_CHAR1, " | |||
| lv_aennr_valid | TYPE CC01_CHAR1, " | |||
| lv_headline | TYPE CC01_CHAR60, " | |||
| lv_free_memory | TYPE CC01_CHAR1, " 'X' | |||
| lv_batch_aeef | TYPE AEEF, " | |||
| lv_datuv | TYPE CCDECO-DATUB, " | |||
| lv_update | TYPE CC01_CHAR1, " | |||
| lt_parameter | TYPE STANDARD TABLE OF CC01_PARAMETER, " | |||
| lv_wrong_format_in_input | TYPE CC01_PARAMETER, " | |||
| lv_conf_key | TYPE AEPREC-CONF_KEY, " | |||
| lv_topmatnr | TYPE RC29A-MATNR, " | |||
| lv_prev_input | TYPE CC01_CHAR1, " | |||
| lv_popup_inactive | TYPE CC01_CHAR1, " | |||
| lv_no_freig | TYPE CC01_CHAR1, " | |||
| lv_hdm | TYPE CC01_CHAR1, " | |||
| lv_fl_extend_aeplst | TYPE CC01_CHAR1, " | |||
| lv_fl_no_maintenance | TYPE CC01_CHAR1, " | |||
| lv_prototyp_aktiv | TYPE CC01_CHAR1, " | |||
| lv_prototyp_felder | TYPE CC01_CHAR1, " | |||
| lv_aennr | TYPE AENR-AENNR, " | |||
| lv_techs | TYPE TECS-TECHS, " | |||
| lv_no_maintenance_data | TYPE TECS, " | |||
| lt_output_val_or_inval | TYPE STANDARD TABLE OF CC01_VALID_INVALID, " | |||
| lv_prot_terel_check | TYPE CC01_CHAR1, " 'X' | |||
| lv_otext | TYPE TECT-OTEXT, " | |||
| lv_error_interface | TYPE TECT, " | |||
| lt_output_parameter | TYPE STANDARD TABLE OF CC01_PARAMETER, " | |||
| lv_freig_kalkulation | TYPE TCC10-AEFRK, " | |||
| lv_ocm_vorgabe | TYPE CC01_VALID_OR_INVALID_TYPE, " | |||
| lv_freig_planung | TYPE TCC10-AEFRP, " | |||
| lv_initialized | TYPE CC01_CHAR1, " | |||
| lv_freig_fertigung | TYPE TCC10-AEFRF, " | |||
| lv_freig_simulation | TYPE TCC10-AEFRS, " | |||
| lv_e_freig_kalkulation | TYPE TCC10-AEFRK, " | |||
| lv_display | TYPE CC01_CHAR1, " | |||
| lv_e_freig_planung | TYPE TCC10-AEFRP, " | |||
| lv_no_pop_up | TYPE CC01_CHAR1, " | |||
| lv_e_freig_fertigung | TYPE TCC10-AEFRF. " |
|   CALL FUNCTION 'ECM_PROCESSOR_INIT' "Initialize data for FB ECM_PROCESSOR |
| EXPORTING | ||
| E_TECHS | = lv_e_techs | |
| BATCHLAUF | = lv_batchlauf | |
| DEFAULT_TECHS | = lv_default_techs | |
| DEFAULT_PFLEGEBEW | = lv_default_pflegebew | |
| NUR_VORGABEN | = lv_nur_vorgaben | |
| NO_BUTTON_VORGABEN | = lv_no_button_vorgaben | |
| FREIG_EINGABEBEREIT | = lv_freig_eingabebereit | |
| AENNR_VALID | = lv_aennr_valid | |
| HEADLINE | = lv_headline | |
| FREE_MEMORY | = lv_free_memory | |
| BATCH_AEEF | = lv_batch_aeef | |
| DATUV | = lv_datuv | |
| CONF_KEY | = lv_conf_key | |
| TOPMATNR | = lv_topmatnr | |
| PREV_INPUT | = lv_prev_input | |
| POPUP_INACTIVE | = lv_popup_inactive | |
| NO_FREIG | = lv_no_freig | |
| HDM | = lv_hdm | |
| FL_EXTEND_AEPLST | = lv_fl_extend_aeplst | |
| FL_NO_MAINTENANCE | = lv_fl_no_maintenance | |
| PROTOTYP_AKTIV | = lv_prototyp_aktiv | |
| PROTOTYP_FELDER | = lv_prototyp_felder | |
| AENNR | = lv_aennr | |
| PROT_TEREL_CHECK | = lv_prot_terel_check | |
| FREIG_KALKULATION | = lv_freig_kalkulation | |
| FREIG_PLANUNG | = lv_freig_planung | |
| FREIG_FERTIGUNG | = lv_freig_fertigung | |
| FREIG_SIMULATION | = lv_freig_simulation | |
| DISPLAY | = lv_display | |
| NO_POP_UP | = lv_no_pop_up | |
| IMPORTING | ||
| ENTRIES_IN_POPUP | = lv_entries_in_popup | |
| E_FREIG_SIMULATION | = lv_e_freig_simulation | |
| E_PROTOTYP_AKTIV | = lv_e_prototyp_aktiv | |
| UPDATE | = lv_update | |
| TECHS | = lv_techs | |
| OTEXT | = lv_otext | |
| OCM_VORGABE | = lv_ocm_vorgabe | |
| INITIALIZED | = lv_initialized | |
| E_FREIG_KALKULATION | = lv_e_freig_kalkulation | |
| E_FREIG_PLANUNG | = lv_e_freig_planung | |
| E_FREIG_FERTIGUNG | = lv_e_freig_fertigung | |
| CHANGING | ||
| TECHS_MAINTAIN | = lv_techs_maintain | |
| TABLES | ||
| VALID_OR_INVALID | = lt_valid_or_invalid | |
| PARAMETER | = lt_parameter | |
| OUTPUT_VAL_OR_INVAL | = lt_output_val_or_inval | |
| OUTPUT_PARAMETER | = lt_output_parameter | |
| EXCEPTIONS | ||
| EXIT_IN_DYNPRO = 1 | ||
| WRONG_FORMAT_IN_INPUT = 2 | ||
| NO_MAINTENANCE_DATA = 3 | ||
| ERROR_INTERFACE = 4 | ||
| . " ECM_PROCESSOR_INIT | ||
ABAP code using 7.40 inline data declarations to call FM ECM_PROCESSOR_INIT
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.| "SELECT single TECHS FROM TECS INTO @DATA(ld_e_techs). | ||||
| "SELECT single AEFRS FROM TCC10 INTO @DATA(ld_e_freig_simulation). | ||||
| DATA(ld_free_memory) | = 'X'. | |||
| "SELECT single DATUB FROM CCDECO INTO @DATA(ld_datuv). | ||||
| "SELECT single CONF_KEY FROM AEPREC INTO @DATA(ld_conf_key). | ||||
| "SELECT single MATNR FROM RC29A INTO @DATA(ld_topmatnr). | ||||
| "SELECT single AENNR FROM AENR INTO @DATA(ld_aennr). | ||||
| "SELECT single TECHS FROM TECS INTO @DATA(ld_techs). | ||||
| DATA(ld_prot_terel_check) | = 'X'. | |||
| "SELECT single OTEXT FROM TECT INTO @DATA(ld_otext). | ||||
| "SELECT single AEFRK FROM TCC10 INTO @DATA(ld_freig_kalkulation). | ||||
| "SELECT single AEFRP FROM TCC10 INTO @DATA(ld_freig_planung). | ||||
| "SELECT single AEFRF FROM TCC10 INTO @DATA(ld_freig_fertigung). | ||||
| "SELECT single AEFRS FROM TCC10 INTO @DATA(ld_freig_simulation). | ||||
| "SELECT single AEFRK FROM TCC10 INTO @DATA(ld_e_freig_kalkulation). | ||||
| "SELECT single AEFRP FROM TCC10 INTO @DATA(ld_e_freig_planung). | ||||
| "SELECT single AEFRF FROM TCC10 INTO @DATA(ld_e_freig_fertigung). | ||||
Search for further information about these or an SAP related objects