SAP CI_CL_S_PAC_CREATE Function Module for NOTRANSL: Anlegen eines Wartungspaketes
CI_CL_S_PAC_CREATE is a standard ci cl s pac create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Anlegen eines Wartungspaketes 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 ci cl s pac create FM, simply by entering the name CI_CL_S_PAC_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CICL
Program Name: SAPLCICL
Main Program: SAPLCICL
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CI_CL_S_PAC_CREATE 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 'CI_CL_S_PAC_CREATE'"NOTRANSL: Anlegen eines Wartungspaketes.
EXPORTING
* I_ECN_S = ' ' "Change Number
I_KEY_DATE_S = "
* I_FLG_PAC_CHECK = 'X' "
I_PAC_CLASS_DATA = "Data Related to Class of Maintenance/Inspection Packages
IMPORTING
E_PLNKN = "Number of the task list node
E_PAKET = "Maintenance Package Number
E_ZAEHL = "Internal Counter
E_ECM_DATA_ERROR_TYPE = "
EXCEPTIONS
PAC_NOT_CONSISTENT = 1 ECM_DATA_NOT_SUITABLE = 10 LINK_TO_REF_SET_OF_OPR = 11 LINK_TO_WC_REF_SET_OF_OPR = 12 NO_AUTHORITY = 2 OPERATION_NOT_LOCKED = 3 IDENT_ALREADY_EXISTS = 4 WRONG_PACKAGE_NUMBER = 5 COUNTER_OVERFLOW = 6 NO_VALID_OPERATION = 7 NO_VALID_PLANHEADER = 8 PATH_INCOMPLETE = 9
IMPORTING Parameters details for CI_CL_S_PAC_CREATE
I_ECN_S - Change Number
Data type: PAC_CLASS_DATA-AENNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KEY_DATE_S -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_PAC_CHECK -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PAC_CLASS_DATA - Data Related to Class of Maintenance/Inspection Packages
Data type: PAC_CLASS_DATAOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CI_CL_S_PAC_CREATE
E_PLNKN - Number of the task list node
Data type: PAC_CLASS_DATA-PLNKNOptional: No
Call by Reference: No ( called with pass by value option)
E_PAKET - Maintenance Package Number
Data type: PAC_CLASS_DATA-PAKETOptional: No
Call by Reference: No ( called with pass by value option)
E_ZAEHL - Internal Counter
Data type: PAC_CLASS_DATA-ZAEHLOptional: No
Call by Reference: No ( called with pass by value option)
E_ECM_DATA_ERROR_TYPE -
Data type: CPCC_MESSAGE_TYPEOptional: No
Call by Reference: Yes
EXCEPTIONS details
PAC_NOT_CONSISTENT -
Data type:Optional: No
Call by Reference: Yes
ECM_DATA_NOT_SUITABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LINK_TO_REF_SET_OF_OPR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LINK_TO_WC_REF_SET_OF_OPR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OPERATION_NOT_LOCKED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IDENT_ALREADY_EXISTS -
Data type:Optional: No
Call by Reference: Yes
WRONG_PACKAGE_NUMBER -
Data type:Optional: No
Call by Reference: Yes
COUNTER_OVERFLOW -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_OPERATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_VALID_PLANHEADER -
Data type:Optional: No
Call by Reference: Yes
PATH_INCOMPLETE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CI_CL_S_PAC_CREATE 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_plnkn | TYPE PAC_CLASS_DATA-PLNKN, " | |||
| lv_i_ecn_s | TYPE PAC_CLASS_DATA-AENNR, " SPACE | |||
| lv_pac_not_consistent | TYPE PAC_CLASS_DATA, " | |||
| lv_ecm_data_not_suitable | TYPE PAC_CLASS_DATA, " | |||
| lv_link_to_ref_set_of_opr | TYPE PAC_CLASS_DATA, " | |||
| lv_link_to_wc_ref_set_of_opr | TYPE PAC_CLASS_DATA, " | |||
| lv_e_paket | TYPE PAC_CLASS_DATA-PAKET, " | |||
| lv_i_key_date_s | TYPE SY-DATUM, " | |||
| lv_no_authority | TYPE SY, " | |||
| lv_e_zaehl | TYPE PAC_CLASS_DATA-ZAEHL, " | |||
| lv_i_flg_pac_check | TYPE PAC_CLASS_DATA, " 'X' | |||
| lv_operation_not_locked | TYPE PAC_CLASS_DATA, " | |||
| lv_i_pac_class_data | TYPE PAC_CLASS_DATA, " | |||
| lv_ident_already_exists | TYPE PAC_CLASS_DATA, " | |||
| lv_e_ecm_data_error_type | TYPE CPCC_MESSAGE_TYPE, " | |||
| lv_wrong_package_number | TYPE CPCC_MESSAGE_TYPE, " | |||
| lv_counter_overflow | TYPE CPCC_MESSAGE_TYPE, " | |||
| lv_no_valid_operation | TYPE CPCC_MESSAGE_TYPE, " | |||
| lv_no_valid_planheader | TYPE CPCC_MESSAGE_TYPE, " | |||
| lv_path_incomplete | TYPE CPCC_MESSAGE_TYPE. " |
|   CALL FUNCTION 'CI_CL_S_PAC_CREATE' "NOTRANSL: Anlegen eines Wartungspaketes |
| EXPORTING | ||
| I_ECN_S | = lv_i_ecn_s | |
| I_KEY_DATE_S | = lv_i_key_date_s | |
| I_FLG_PAC_CHECK | = lv_i_flg_pac_check | |
| I_PAC_CLASS_DATA | = lv_i_pac_class_data | |
| IMPORTING | ||
| E_PLNKN | = lv_e_plnkn | |
| E_PAKET | = lv_e_paket | |
| E_ZAEHL | = lv_e_zaehl | |
| E_ECM_DATA_ERROR_TYPE | = lv_e_ecm_data_error_type | |
| EXCEPTIONS | ||
| PAC_NOT_CONSISTENT = 1 | ||
| ECM_DATA_NOT_SUITABLE = 10 | ||
| LINK_TO_REF_SET_OF_OPR = 11 | ||
| LINK_TO_WC_REF_SET_OF_OPR = 12 | ||
| NO_AUTHORITY = 2 | ||
| OPERATION_NOT_LOCKED = 3 | ||
| IDENT_ALREADY_EXISTS = 4 | ||
| WRONG_PACKAGE_NUMBER = 5 | ||
| COUNTER_OVERFLOW = 6 | ||
| NO_VALID_OPERATION = 7 | ||
| NO_VALID_PLANHEADER = 8 | ||
| PATH_INCOMPLETE = 9 | ||
| . " CI_CL_S_PAC_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM CI_CL_S_PAC_CREATE
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 PLNKN FROM PAC_CLASS_DATA INTO @DATA(ld_e_plnkn). | ||||
| "SELECT single AENNR FROM PAC_CLASS_DATA INTO @DATA(ld_i_ecn_s). | ||||
| DATA(ld_i_ecn_s) | = ' '. | |||
| "SELECT single PAKET FROM PAC_CLASS_DATA INTO @DATA(ld_e_paket). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_key_date_s). | ||||
| "SELECT single ZAEHL FROM PAC_CLASS_DATA INTO @DATA(ld_e_zaehl). | ||||
| DATA(ld_i_flg_pac_check) | = 'X'. | |||
Search for further information about these or an SAP related objects