SAP CS_CI_AENNR_CHECK Function Module for Check change number for CAD Interface
CS_CI_AENNR_CHECK is a standard cs ci aennr check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check change number for CAD Interface 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 cs ci aennr check FM, simply by entering the name CS_CI_AENNR_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: CSCI
Program Name: SAPLCSCI
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CS_CI_AENNR_CHECK 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 'CS_CI_AENNR_CHECK'"Check change number for CAD Interface.
EXPORTING
* EAENNR = ' ' "Change number
* EDOKTL = ' ' "
* EDOKVR = ' ' "
* EPSPNR = ' ' "
* FLG_API = ' ' "
* EEQUNR = ' ' "Material number
* EMATNR = ' ' "Material number
* ESTLAN = ' ' "BOM usage
* ESTLTY = ' ' "
* ETPLNR = ' ' "Material number
* EWERKS = ' ' "Plant
* EDOKAR = ' ' "
* EDOKNR = ' ' "
IMPORTING
ADATUV = "Date valid from
EXCEPTIONS
CALL_INVALID = 1 TCC01_ERROR = 10 TYPE_NO_CHANGES = 11 ERROR = 12 CANNOT_GENERATE_OBJECT = 2 ECN_NOT_EXIST = 3 INTERFACE_INCOMPLETE = 4 KEY_INCOMPLETE = 5 KEY_INVALID = 6 NO_CHANGES_FOUND = 7 NO_RECORD_FOUND = 8 OBJECT_LOCKED = 9
IMPORTING Parameters details for CS_CI_AENNR_CHECK
EAENNR - Change number
Data type: AENR-AENNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EDOKTL -
Data type: DOST-DOKTLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EDOKVR -
Data type: DOST-DOKVRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EPSPNR -
Data type: PRST-PSPNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_API -
Data type: CSDATA-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EEQUNR - Material number
Data type: EQST-EQUNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EMATNR - Material number
Data type: MAST-MATNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ESTLAN - BOM usage
Data type: MAST-STLANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ESTLTY -
Data type: STZU-STLTYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ETPLNR - Material number
Data type: TPST-TPLNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EWERKS - Plant
Data type: MAST-WERKSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EDOKAR -
Data type: DOST-DOKARDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EDOKNR -
Data type: DOST-DOKNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CS_CI_AENNR_CHECK
ADATUV - Date valid from
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CALL_INVALID - Incorrect call GET_MAST
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TCC01_ERROR - System table TCC01 incorrect entries
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TYPE_NO_CHANGES - No changes planned for object type
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR -
Data type:Optional: No
Call by Reference: Yes
CANNOT_GENERATE_OBJECT - Object management record cannot be generated
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ECN_NOT_EXIST - Change number does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERFACE_INCOMPLETE - Interface not completely supplied
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KEY_INCOMPLETE - Incorrect call GET_MAST
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KEY_INVALID - Incorrect call GET_MAST
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CHANGES_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_RECORD_FOUND - No BOM exists
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OBJECT_LOCKED - Object locked for changes
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CS_CI_AENNR_CHECK 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_adatuv | TYPE SY-DATUM, " | |||
| lv_eaennr | TYPE AENR-AENNR, " SPACE | |||
| lv_call_invalid | TYPE AENR, " | |||
| lv_edoktl | TYPE DOST-DOKTL, " SPACE | |||
| lv_tcc01_error | TYPE DOST, " | |||
| lv_edokvr | TYPE DOST-DOKVR, " SPACE | |||
| lv_type_no_changes | TYPE DOST, " | |||
| lv_error | TYPE DOST, " | |||
| lv_epspnr | TYPE PRST-PSPNR, " SPACE | |||
| lv_flg_api | TYPE CSDATA-XFELD, " SPACE | |||
| lv_eequnr | TYPE EQST-EQUNR, " SPACE | |||
| lv_cannot_generate_object | TYPE EQST, " | |||
| lv_ematnr | TYPE MAST-MATNR, " SPACE | |||
| lv_ecn_not_exist | TYPE MAST, " | |||
| lv_estlan | TYPE MAST-STLAN, " SPACE | |||
| lv_interface_incomplete | TYPE MAST, " | |||
| lv_estlty | TYPE STZU-STLTY, " SPACE | |||
| lv_key_incomplete | TYPE STZU, " | |||
| lv_etplnr | TYPE TPST-TPLNR, " SPACE | |||
| lv_key_invalid | TYPE TPST, " | |||
| lv_ewerks | TYPE MAST-WERKS, " SPACE | |||
| lv_no_changes_found | TYPE MAST, " | |||
| lv_edokar | TYPE DOST-DOKAR, " SPACE | |||
| lv_no_record_found | TYPE DOST, " | |||
| lv_edoknr | TYPE DOST-DOKNR, " SPACE | |||
| lv_object_locked | TYPE DOST. " |
|   CALL FUNCTION 'CS_CI_AENNR_CHECK' "Check change number for CAD Interface |
| EXPORTING | ||
| EAENNR | = lv_eaennr | |
| EDOKTL | = lv_edoktl | |
| EDOKVR | = lv_edokvr | |
| EPSPNR | = lv_epspnr | |
| FLG_API | = lv_flg_api | |
| EEQUNR | = lv_eequnr | |
| EMATNR | = lv_ematnr | |
| ESTLAN | = lv_estlan | |
| ESTLTY | = lv_estlty | |
| ETPLNR | = lv_etplnr | |
| EWERKS | = lv_ewerks | |
| EDOKAR | = lv_edokar | |
| EDOKNR | = lv_edoknr | |
| IMPORTING | ||
| ADATUV | = lv_adatuv | |
| EXCEPTIONS | ||
| CALL_INVALID = 1 | ||
| TCC01_ERROR = 10 | ||
| TYPE_NO_CHANGES = 11 | ||
| ERROR = 12 | ||
| CANNOT_GENERATE_OBJECT = 2 | ||
| ECN_NOT_EXIST = 3 | ||
| INTERFACE_INCOMPLETE = 4 | ||
| KEY_INCOMPLETE = 5 | ||
| KEY_INVALID = 6 | ||
| NO_CHANGES_FOUND = 7 | ||
| NO_RECORD_FOUND = 8 | ||
| OBJECT_LOCKED = 9 | ||
| . " CS_CI_AENNR_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM CS_CI_AENNR_CHECK
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_adatuv). | ||||
| "SELECT single AENNR FROM AENR INTO @DATA(ld_eaennr). | ||||
| DATA(ld_eaennr) | = ' '. | |||
| "SELECT single DOKTL FROM DOST INTO @DATA(ld_edoktl). | ||||
| DATA(ld_edoktl) | = ' '. | |||
| "SELECT single DOKVR FROM DOST INTO @DATA(ld_edokvr). | ||||
| DATA(ld_edokvr) | = ' '. | |||
| "SELECT single PSPNR FROM PRST INTO @DATA(ld_epspnr). | ||||
| DATA(ld_epspnr) | = ' '. | |||
| "SELECT single XFELD FROM CSDATA INTO @DATA(ld_flg_api). | ||||
| DATA(ld_flg_api) | = ' '. | |||
| "SELECT single EQUNR FROM EQST INTO @DATA(ld_eequnr). | ||||
| DATA(ld_eequnr) | = ' '. | |||
| "SELECT single MATNR FROM MAST INTO @DATA(ld_ematnr). | ||||
| DATA(ld_ematnr) | = ' '. | |||
| "SELECT single STLAN FROM MAST INTO @DATA(ld_estlan). | ||||
| DATA(ld_estlan) | = ' '. | |||
| "SELECT single STLTY FROM STZU INTO @DATA(ld_estlty). | ||||
| DATA(ld_estlty) | = ' '. | |||
| "SELECT single TPLNR FROM TPST INTO @DATA(ld_etplnr). | ||||
| DATA(ld_etplnr) | = ' '. | |||
| "SELECT single WERKS FROM MAST INTO @DATA(ld_ewerks). | ||||
| DATA(ld_ewerks) | = ' '. | |||
| "SELECT single DOKAR FROM DOST INTO @DATA(ld_edokar). | ||||
| DATA(ld_edokar) | = ' '. | |||
| "SELECT single DOKNR FROM DOST INTO @DATA(ld_edoknr). | ||||
| DATA(ld_edoknr) | = ' '. | |||
Search for further information about these or an SAP related objects