SAP AIA_TOOL_SET_NEXT_STATUS Function Module for









AIA_TOOL_SET_NEXT_STATUS is a standard aia tool set next status 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 tool set next status FM, simply by entering the name AIA_TOOL_SET_NEXT_STATUS into the relevant SAP transaction such as SE37 or SE38.

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



Function AIA_TOOL_SET_NEXT_STATUS 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_TOOL_SET_NEXT_STATUS'"
EXPORTING
I_NEXT_VRGNG = "
* I_CHECK = ' ' "
I_OBJNR = "

TABLES
RETURN = "

EXCEPTIONS
NEXT_STATUS_NOT_POSSIBLE = 1
.



IMPORTING Parameters details for AIA_TOOL_SET_NEXT_STATUS

I_NEXT_VRGNG -

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

I_CHECK -

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

I_OBJNR -

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

TABLES Parameters details for AIA_TOOL_SET_NEXT_STATUS

RETURN -

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

EXCEPTIONS details

NEXT_STATUS_NOT_POSSIBLE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for AIA_TOOL_SET_NEXT_STATUS 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_next_vrgng  TYPE TJ01-VRGNG, "   
lv_next_status_not_possible  TYPE TJ01, "   
lv_i_check  TYPE IMAV-XGENEH, "   ' '
lv_i_objnr  TYPE IMAK-OBJNR. "   

  CALL FUNCTION 'AIA_TOOL_SET_NEXT_STATUS'  "
    EXPORTING
         I_NEXT_VRGNG = lv_i_next_vrgng
         I_CHECK = lv_i_check
         I_OBJNR = lv_i_objnr
    TABLES
         RETURN = lt_return
    EXCEPTIONS
        NEXT_STATUS_NOT_POSSIBLE = 1
. " AIA_TOOL_SET_NEXT_STATUS




ABAP code using 7.40 inline data declarations to call FM AIA_TOOL_SET_NEXT_STATUS

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 VRGNG FROM TJ01 INTO @DATA(ld_i_next_vrgng).
 
 
"SELECT single XGENEH FROM IMAV INTO @DATA(ld_i_check).
DATA(ld_i_check) = ' '.
 
"SELECT single OBJNR FROM IMAK INTO @DATA(ld_i_objnr).
 


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!