SAP AIA_CHECK_VARNT_DATES Function Module for
AIA_CHECK_VARNT_DATES is a standard aia check varnt dates 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 varnt dates FM, simply by entering the name AIA_CHECK_VARNT_DATES 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_VARNT_DATES 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_VARNT_DATES'".
EXPORTING
I_VARNT = "
* I_FDATU = ' ' "
* I_IDATU = ' ' "
* I_WDATU = ' ' "
* FLG_FIRST_MSG_ONLY = 'X' "
TABLES
* RETURN = "
EXCEPTIONS
WRONG_DATA = 1 FDATU_AFTER_IDATU = 2 WDATU_AFTER_FDATU = 3 WDATU_AFTER_IDATU = 4 ERRORS_OCCURED = 5
IMPORTING Parameters details for AIA_CHECK_VARNT_DATES
I_VARNT -
Data type: IMAV-VARNTOptional: No
Call by Reference: No ( called with pass by value option)
I_FDATU -
Data type: IMAV-FDATUDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_IDATU -
Data type: IMAV-IDATUDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WDATU -
Data type: IMAK-WDATUDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FLG_FIRST_MSG_ONLY -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for AIA_CHECK_VARNT_DATES
RETURN -
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
WRONG_DATA -
Data type:Optional: No
Call by Reference: Yes
FDATU_AFTER_IDATU -
Data type:Optional: No
Call by Reference: Yes
WDATU_AFTER_FDATU -
Data type:Optional: No
Call by Reference: Yes
WDATU_AFTER_IDATU -
Data type:Optional: No
Call by Reference: Yes
ERRORS_OCCURED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for AIA_CHECK_VARNT_DATES 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_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_varnt | TYPE IMAV-VARNT, " | |||
| lv_wrong_data | TYPE IMAV, " | |||
| lv_i_fdatu | TYPE IMAV-FDATU, " SPACE | |||
| lv_fdatu_after_idatu | TYPE IMAV, " | |||
| lv_i_idatu | TYPE IMAV-IDATU, " SPACE | |||
| lv_wdatu_after_fdatu | TYPE IMAV, " | |||
| lv_i_wdatu | TYPE IMAK-WDATU, " SPACE | |||
| lv_wdatu_after_idatu | TYPE IMAK, " | |||
| lv_errors_occured | TYPE IMAK, " | |||
| lv_flg_first_msg_only | TYPE C. " 'X' |
|   CALL FUNCTION 'AIA_CHECK_VARNT_DATES' " |
| EXPORTING | ||
| I_VARNT | = lv_i_varnt | |
| I_FDATU | = lv_i_fdatu | |
| I_IDATU | = lv_i_idatu | |
| I_WDATU | = lv_i_wdatu | |
| FLG_FIRST_MSG_ONLY | = lv_flg_first_msg_only | |
| TABLES | ||
| RETURN | = lt_return | |
| EXCEPTIONS | ||
| WRONG_DATA = 1 | ||
| FDATU_AFTER_IDATU = 2 | ||
| WDATU_AFTER_FDATU = 3 | ||
| WDATU_AFTER_IDATU = 4 | ||
| ERRORS_OCCURED = 5 | ||
| . " AIA_CHECK_VARNT_DATES | ||
ABAP code using 7.40 inline data declarations to call FM AIA_CHECK_VARNT_DATES
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 VARNT FROM IMAV INTO @DATA(ld_i_varnt). | ||||
| "SELECT single FDATU FROM IMAV INTO @DATA(ld_i_fdatu). | ||||
| DATA(ld_i_fdatu) | = ' '. | |||
| "SELECT single IDATU FROM IMAV INTO @DATA(ld_i_idatu). | ||||
| DATA(ld_i_idatu) | = ' '. | |||
| "SELECT single WDATU FROM IMAK INTO @DATA(ld_i_wdatu). | ||||
| DATA(ld_i_wdatu) | = ' '. | |||
| DATA(ld_flg_first_msg_only) | = 'X'. | |||
Search for further information about these or an SAP related objects