SAP AICD_DELETE_COMPLETE Function Module for
AICD_DELETE_COMPLETE is a standard aicd delete complete SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 aicd delete complete FM, simply by entering the name AICD_DELETE_COMPLETE into the relevant SAP transaction such as SE37 or SE38.
Function Group: AICD
Program Name: SAPLAICD
Main Program:
Appliation area: A
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AICD_DELETE_COMPLETE 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 'AICD_DELETE_COMPLETE'".
EXPORTING
I_INV_PROG = "
I_APPR_YEAR = "
* I_FLG_DATA = 'X' "
* I_FLG_PROG_HIER = 'X' "
* I_COMPR_VRSN = '000' "
* I_FLG_ALL_COMPR_VRSN = ' ' "
* I_LOGSYSTEM = ' ' "
* I_FLG_ALL_LOGSYSTEMS = 'X' "
* I_FLG_CHECK_ONLY = ' ' "
IMPORTING
ES_MESSAGE = "
IMPORTING Parameters details for AICD_DELETE_COMPLETE
I_INV_PROG -
Data type: IMCHIE-INV_PROGOptional: No
Call by Reference: No ( called with pass by value option)
I_APPR_YEAR -
Data type: IMCHIE-APPR_YEAROptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_DATA -
Data type: IMIS_TYPE_FLGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_PROG_HIER -
Data type: IMIS_TYPE_FLGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_COMPR_VRSN -
Data type: IMCH-COMPR_VRSNDefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_ALL_COMPR_VRSN -
Data type: IMIS_TYPE_FLGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LOGSYSTEM -
Data type: IMCH-LOGSYSTEMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_ALL_LOGSYSTEMS -
Data type: IMIS_TYPE_FLGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_CHECK_ONLY -
Data type: IMIS_TYPE_FLGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for AICD_DELETE_COMPLETE
ES_MESSAGE -
Data type: IMIS_TYPE_S_MESSAGEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for AICD_DELETE_COMPLETE 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_es_message | TYPE IMIS_TYPE_S_MESSAGE, " | |||
| lv_i_inv_prog | TYPE IMCHIE-INV_PROG, " | |||
| lv_i_appr_year | TYPE IMCHIE-APPR_YEAR, " | |||
| lv_i_flg_data | TYPE IMIS_TYPE_FLG, " 'X' | |||
| lv_i_flg_prog_hier | TYPE IMIS_TYPE_FLG, " 'X' | |||
| lv_i_compr_vrsn | TYPE IMCH-COMPR_VRSN, " '000' | |||
| lv_i_flg_all_compr_vrsn | TYPE IMIS_TYPE_FLG, " ' ' | |||
| lv_i_logsystem | TYPE IMCH-LOGSYSTEM, " SPACE | |||
| lv_i_flg_all_logsystems | TYPE IMIS_TYPE_FLG, " 'X' | |||
| lv_i_flg_check_only | TYPE IMIS_TYPE_FLG. " ' ' |
|   CALL FUNCTION 'AICD_DELETE_COMPLETE' " |
| EXPORTING | ||
| I_INV_PROG | = lv_i_inv_prog | |
| I_APPR_YEAR | = lv_i_appr_year | |
| I_FLG_DATA | = lv_i_flg_data | |
| I_FLG_PROG_HIER | = lv_i_flg_prog_hier | |
| I_COMPR_VRSN | = lv_i_compr_vrsn | |
| I_FLG_ALL_COMPR_VRSN | = lv_i_flg_all_compr_vrsn | |
| I_LOGSYSTEM | = lv_i_logsystem | |
| I_FLG_ALL_LOGSYSTEMS | = lv_i_flg_all_logsystems | |
| I_FLG_CHECK_ONLY | = lv_i_flg_check_only | |
| IMPORTING | ||
| ES_MESSAGE | = lv_es_message | |
| . " AICD_DELETE_COMPLETE | ||
ABAP code using 7.40 inline data declarations to call FM AICD_DELETE_COMPLETE
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 INV_PROG FROM IMCHIE INTO @DATA(ld_i_inv_prog). | ||||
| "SELECT single APPR_YEAR FROM IMCHIE INTO @DATA(ld_i_appr_year). | ||||
| DATA(ld_i_flg_data) | = 'X'. | |||
| DATA(ld_i_flg_prog_hier) | = 'X'. | |||
| "SELECT single COMPR_VRSN FROM IMCH INTO @DATA(ld_i_compr_vrsn). | ||||
| DATA(ld_i_compr_vrsn) | = '000'. | |||
| DATA(ld_i_flg_all_compr_vrsn) | = ' '. | |||
| "SELECT single LOGSYSTEM FROM IMCH INTO @DATA(ld_i_logsystem). | ||||
| DATA(ld_i_logsystem) | = ' '. | |||
| DATA(ld_i_flg_all_logsystems) | = 'X'. | |||
| DATA(ld_i_flg_check_only) | = ' '. | |||
Search for further information about these or an SAP related objects