SAP AIA_CHECK_ORDER Function Module for









AIA_CHECK_ORDER is a standard aia check order 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 order FM, simply by entering the name AIA_CHECK_ORDER 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_ORDER 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_ORDER'"
EXPORTING
I_APPREQ = "
I_AUFNR = "
* FLG_ENQUEUE = 'X' "
* TEST_RUN = ' ' "

TABLES
* IT_IMAKZ = "
* RETURN = "

EXCEPTIONS
NOT_FOUND = 1 NO_ENQUEUE = 10 ERRORS_OCCURED = 11 NO_ORDER = 2 WRONG_AUTYP = 3 ASSIGNED_TO_WBS_ELEM = 4 ASSIGNED_TO_APPREQ = 5 DIFFERENT_KOKRS = 6 DELETION_FLAG = 7 DIFFERENT_PRART = 8 INVPROG_ASSGNMNT_ERROR = 9
.



IMPORTING Parameters details for AIA_CHECK_ORDER

I_APPREQ -

Data type: IMAK
Optional: No
Call by Reference: No ( called with pass by value option)

I_AUFNR -

Data type: AUFKV-AUFNR
Optional: No
Call by Reference: No ( called with pass by value option)

FLG_ENQUEUE -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEST_RUN -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for AIA_CHECK_ORDER

IT_IMAKZ -

Data type: RIMAKZ
Optional: Yes
Call by Reference: Yes

RETURN -

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NO_ENQUEUE -

Data type:
Optional: No
Call by Reference: Yes

ERRORS_OCCURED -

Data type:
Optional: No
Call by Reference: Yes

NO_ORDER -

Data type:
Optional: No
Call by Reference: Yes

WRONG_AUTYP -

Data type:
Optional: No
Call by Reference: Yes

ASSIGNED_TO_WBS_ELEM -

Data type:
Optional: No
Call by Reference: Yes

ASSIGNED_TO_APPREQ -

Data type:
Optional: No
Call by Reference: Yes

DIFFERENT_KOKRS -

Data type:
Optional: No
Call by Reference: Yes

DELETION_FLAG -

Data type:
Optional: No
Call by Reference: Yes

DIFFERENT_PRART -

Data type:
Optional: No
Call by Reference: Yes

INVPROG_ASSGNMNT_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for AIA_CHECK_ORDER 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_imakz  TYPE STANDARD TABLE OF RIMAKZ, "   
lv_i_appreq  TYPE IMAK, "   
lv_not_found  TYPE IMAK, "   
lv_no_enqueue  TYPE IMAK, "   
lv_errors_occured  TYPE IMAK, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_i_aufnr  TYPE AUFKV-AUFNR, "   
lv_no_order  TYPE AUFKV, "   
lv_flg_enqueue  TYPE C, "   'X'
lv_wrong_autyp  TYPE C, "   
lv_test_run  TYPE C, "   ' '
lv_assigned_to_wbs_elem  TYPE C, "   
lv_assigned_to_appreq  TYPE C, "   
lv_different_kokrs  TYPE C, "   
lv_deletion_flag  TYPE C, "   
lv_different_prart  TYPE C, "   
lv_invprog_assgnmnt_error  TYPE C. "   

  CALL FUNCTION 'AIA_CHECK_ORDER'  "
    EXPORTING
         I_APPREQ = lv_i_appreq
         I_AUFNR = lv_i_aufnr
         FLG_ENQUEUE = lv_flg_enqueue
         TEST_RUN = lv_test_run
    TABLES
         IT_IMAKZ = lt_it_imakz
         RETURN = lt_return
    EXCEPTIONS
        NOT_FOUND = 1
        NO_ENQUEUE = 10
        ERRORS_OCCURED = 11
        NO_ORDER = 2
        WRONG_AUTYP = 3
        ASSIGNED_TO_WBS_ELEM = 4
        ASSIGNED_TO_APPREQ = 5
        DIFFERENT_KOKRS = 6
        DELETION_FLAG = 7
        DIFFERENT_PRART = 8
        INVPROG_ASSGNMNT_ERROR = 9
. " AIA_CHECK_ORDER




ABAP code using 7.40 inline data declarations to call FM AIA_CHECK_ORDER

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 AUFNR FROM AUFKV INTO @DATA(ld_i_aufnr).
 
 
DATA(ld_flg_enqueue) = 'X'.
 
 
DATA(ld_test_run) = ' '.
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!