SAP AIA_CHECK_DELETE_VARIANT Function Module for
AIA_CHECK_DELETE_VARIANT is a standard aia check delete variant 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 aia check delete variant FM, simply by entering the name AIA_CHECK_DELETE_VARIANT into the relevant SAP transaction such as SE37 or SE38.
Function Group: AIA_CHECK
Program Name: SAPLAIA_CHECK
Main Program: SAPLAIA_CHECK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AIA_CHECK_DELETE_VARIANT 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 'AIA_CHECK_DELETE_VARIANT'".
EXPORTING
I_AKT_STATUS = "
I_AUTH = "
I_POSID = "
I_POSNR = "
I_VARNT = "
TABLES
IT_XIMAV = "
IT_XIMAVZ = "
RETURN = "
EXCEPTIONS
NO_VARNT = 1 WRONG_STATUS = 2 VERSION_ASSIGNED = 3 LAST_VARNT = 4
IMPORTING Parameters details for AIA_CHECK_DELETE_VARIANT
I_AKT_STATUS -
Data type: JEST-STATOptional: No
Call by Reference: No ( called with pass by value option)
I_AUTH -
Data type: RIMAK-KZOptional: No
Call by Reference: No ( called with pass by value option)
I_POSID -
Data type: IMAK-POSIDOptional: No
Call by Reference: No ( called with pass by value option)
I_POSNR -
Data type: IMAV-POSNROptional: No
Call by Reference: No ( called with pass by value option)
I_VARNT -
Data type: IMAV-VARNTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for AIA_CHECK_DELETE_VARIANT
IT_XIMAV -
Data type: RIMAVOptional: No
Call by Reference: Yes
IT_XIMAVZ -
Data type: RIMAVZOptional: No
Call by Reference: Yes
RETURN -
Data type: BAPIRET2Optional: No
Call by Reference: Yes
EXCEPTIONS details
NO_VARNT -
Data type:Optional: No
Call by Reference: Yes
WRONG_STATUS -
Data type:Optional: No
Call by Reference: Yes
VERSION_ASSIGNED -
Data type:Optional: No
Call by Reference: Yes
LAST_VARNT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for AIA_CHECK_DELETE_VARIANT 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_it_ximav | TYPE STANDARD TABLE OF RIMAV, " | |||
| lv_no_varnt | TYPE RIMAV, " | |||
| lv_i_akt_status | TYPE JEST-STAT, " | |||
| lv_i_auth | TYPE RIMAK-KZ, " | |||
| lt_it_ximavz | TYPE STANDARD TABLE OF RIMAVZ, " | |||
| lv_wrong_status | TYPE RIMAVZ, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_posid | TYPE IMAK-POSID, " | |||
| lv_version_assigned | TYPE IMAK, " | |||
| lv_i_posnr | TYPE IMAV-POSNR, " | |||
| lv_last_varnt | TYPE IMAV, " | |||
| lv_i_varnt | TYPE IMAV-VARNT. " |
|   CALL FUNCTION 'AIA_CHECK_DELETE_VARIANT' " |
| EXPORTING | ||
| I_AKT_STATUS | = lv_i_akt_status | |
| I_AUTH | = lv_i_auth | |
| I_POSID | = lv_i_posid | |
| I_POSNR | = lv_i_posnr | |
| I_VARNT | = lv_i_varnt | |
| TABLES | ||
| IT_XIMAV | = lt_it_ximav | |
| IT_XIMAVZ | = lt_it_ximavz | |
| RETURN | = lt_return | |
| EXCEPTIONS | ||
| NO_VARNT = 1 | ||
| WRONG_STATUS = 2 | ||
| VERSION_ASSIGNED = 3 | ||
| LAST_VARNT = 4 | ||
| . " AIA_CHECK_DELETE_VARIANT | ||
ABAP code using 7.40 inline data declarations to call FM AIA_CHECK_DELETE_VARIANT
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 STAT FROM JEST INTO @DATA(ld_i_akt_status). | ||||
| "SELECT single KZ FROM RIMAK INTO @DATA(ld_i_auth). | ||||
| "SELECT single POSID FROM IMAK INTO @DATA(ld_i_posid). | ||||
| "SELECT single POSNR FROM IMAV INTO @DATA(ld_i_posnr). | ||||
| "SELECT single VARNT FROM IMAV INTO @DATA(ld_i_varnt). | ||||
Search for further information about these or an SAP related objects