SAP CLEF_ECM_PROCESSOR_INIT Function Module for Initialize Effectivity
CLEF_ECM_PROCESSOR_INIT is a standard clef 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 Effectivity 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 clef ecm processor init FM, simply by entering the name CLEF_ECM_PROCESSOR_INIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CLEF
Program Name: SAPLCLEF
Main Program: SAPLCLEF
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CLEF_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 'CLEF_ECM_PROCESSOR_INIT'"Initialize Effectivity.
EXPORTING
* KEY_DATE = SY-DATUM "Valid From
* I_AENNR = ' ' "Change Number
* I_BATCH = ' ' "Not a Dialog Application (=X)
* I_MAINTAIN_FLAG = ' ' "Call Comes from Maintenance Environment (=X)
* I_FREE_MEMORY = 'X' "
* I_BATCH_AEEF = "
* I_NO_POP_UP = ' ' "
TABLES
* T_PARAM = "Table of Entered Maintenance Variant
EXCEPTIONS
ECM_INIT_ERROR = 1 EXIT_FROM_DYNPRO = 2 NO_MAINTENANCE_DATA = 3
IMPORTING Parameters details for CLEF_ECM_PROCESSOR_INIT
KEY_DATE - Valid From
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AENNR - Change Number
Data type: AENR-AENNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BATCH - Not a Dialog Application (=X)
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MAINTAIN_FLAG - Call Comes from Maintenance Environment (=X)
Data type: SY-BATCHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FREE_MEMORY -
Data type: SY-BATCHDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BATCH_AEEF -
Data type: AEEFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_POP_UP -
Data type: CC01_CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CLEF_ECM_PROCESSOR_INIT
T_PARAM - Table of Entered Maintenance Variant
Data type: CC01_PARAMETEROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ECM_INIT_ERROR - Initialization Error for Effectivity
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXIT_FROM_DYNPRO - Cancel Variant Screen
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_MAINTENANCE_DATA - No Variant Data Maintained
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CLEF_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: | ||||
lt_t_param | TYPE STANDARD TABLE OF CC01_PARAMETER, " | |||
lv_key_date | TYPE SY-DATUM, " SY-DATUM | |||
lv_ecm_init_error | TYPE SY, " | |||
lv_i_aennr | TYPE AENR-AENNR, " SPACE | |||
lv_exit_from_dynpro | TYPE AENR, " | |||
lv_i_batch | TYPE SY-BATCH, " SPACE | |||
lv_no_maintenance_data | TYPE SY, " | |||
lv_i_maintain_flag | TYPE SY-BATCH, " SPACE | |||
lv_i_free_memory | TYPE SY-BATCH, " 'X' | |||
lv_i_batch_aeef | TYPE AEEF, " | |||
lv_i_no_pop_up | TYPE CC01_CHAR1. " SPACE |
  CALL FUNCTION 'CLEF_ECM_PROCESSOR_INIT' "Initialize Effectivity |
EXPORTING | ||
KEY_DATE | = lv_key_date | |
I_AENNR | = lv_i_aennr | |
I_BATCH | = lv_i_batch | |
I_MAINTAIN_FLAG | = lv_i_maintain_flag | |
I_FREE_MEMORY | = lv_i_free_memory | |
I_BATCH_AEEF | = lv_i_batch_aeef | |
I_NO_POP_UP | = lv_i_no_pop_up | |
TABLES | ||
T_PARAM | = lt_t_param | |
EXCEPTIONS | ||
ECM_INIT_ERROR = 1 | ||
EXIT_FROM_DYNPRO = 2 | ||
NO_MAINTENANCE_DATA = 3 | ||
. " CLEF_ECM_PROCESSOR_INIT |
ABAP code using 7.40 inline data declarations to call FM CLEF_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 DATUM FROM SY INTO @DATA(ld_key_date). | ||||
DATA(ld_key_date) | = SY-DATUM. | |||
"SELECT single AENNR FROM AENR INTO @DATA(ld_i_aennr). | ||||
DATA(ld_i_aennr) | = ' '. | |||
"SELECT single BATCH FROM SY INTO @DATA(ld_i_batch). | ||||
DATA(ld_i_batch) | = ' '. | |||
"SELECT single BATCH FROM SY INTO @DATA(ld_i_maintain_flag). | ||||
DATA(ld_i_maintain_flag) | = ' '. | |||
"SELECT single BATCH FROM SY INTO @DATA(ld_i_free_memory). | ||||
DATA(ld_i_free_memory) | = 'X'. | |||
DATA(ld_i_no_pop_up) | = ' '. | |||
Search for further information about these or an SAP related objects