SAP AIC3_PLANTS_ENQUEUE_DEQUEUE Function Module for









AIC3_PLANTS_ENQUEUE_DEQUEUE is a standard aic3 plants enqueue dequeue 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 aic3 plants enqueue dequeue FM, simply by entering the name AIC3_PLANTS_ENQUEUE_DEQUEUE into the relevant SAP transaction such as SE37 or SE38.

Function Group: AIC3
Program Name: SAPLAIC3
Main Program:
Appliation area: A
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function AIC3_PLANTS_ENQUEUE_DEQUEUE 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 'AIC3_PLANTS_ENQUEUE_DEQUEUE'"
EXPORTING
I_ACTION = "
I_LOGSYSTEM = "
* I_PLANT = ' ' "
* I_FLG_ALL_PLANTS = 'X' "
* I_FLG_WAIT = ' ' "

EXCEPTIONS
ACTION_NOT_ALLOWED = 1 PLANT_IS_INITIAL = 2 FOREIGN_LOCK = 3 SYSTEM_FAILURE = 4
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLAIC3_002 IM Summarization: Processing of Assigned Entities after Selection

IMPORTING Parameters details for AIC3_PLANTS_ENQUEUE_DEQUEUE

I_ACTION -

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

I_LOGSYSTEM -

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

I_PLANT -

Data type: IMCEP-PLANT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_ALL_PLANTS -

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

I_FLG_WAIT -

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

EXCEPTIONS details

ACTION_NOT_ALLOWED -

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

PLANT_IS_INITIAL -

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

FOREIGN_LOCK -

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

SYSTEM_FAILURE -

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

Copy and paste ABAP code example for AIC3_PLANTS_ENQUEUE_DEQUEUE 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_i_action  TYPE IMIS_TYPE_ACTION, "   
lv_action_not_allowed  TYPE IMIS_TYPE_ACTION, "   
lv_i_logsystem  TYPE IMCEP-LOGSYSTEM, "   
lv_plant_is_initial  TYPE IMCEP, "   
lv_i_plant  TYPE IMCEP-PLANT, "   SPACE
lv_foreign_lock  TYPE IMCEP, "   
lv_system_failure  TYPE IMCEP, "   
lv_i_flg_all_plants  TYPE IMIS_TYPE_FLG, "   'X'
lv_i_flg_wait  TYPE IMIS_TYPE_FLG. "   ' '

  CALL FUNCTION 'AIC3_PLANTS_ENQUEUE_DEQUEUE'  "
    EXPORTING
         I_ACTION = lv_i_action
         I_LOGSYSTEM = lv_i_logsystem
         I_PLANT = lv_i_plant
         I_FLG_ALL_PLANTS = lv_i_flg_all_plants
         I_FLG_WAIT = lv_i_flg_wait
    EXCEPTIONS
        ACTION_NOT_ALLOWED = 1
        PLANT_IS_INITIAL = 2
        FOREIGN_LOCK = 3
        SYSTEM_FAILURE = 4
. " AIC3_PLANTS_ENQUEUE_DEQUEUE




ABAP code using 7.40 inline data declarations to call FM AIC3_PLANTS_ENQUEUE_DEQUEUE

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 LOGSYSTEM FROM IMCEP INTO @DATA(ld_i_logsystem).
 
 
"SELECT single PLANT FROM IMCEP INTO @DATA(ld_i_plant).
DATA(ld_i_plant) = ' '.
 
 
 
DATA(ld_i_flg_all_plants) = 'X'.
 
DATA(ld_i_flg_wait) = ' '.
 


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!