SAP K_OPEN_ITEM_SELECT Function Module for









K_OPEN_ITEM_SELECT is a standard k open item select 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 k open item select FM, simply by entering the name K_OPEN_ITEM_SELECT into the relevant SAP transaction such as SE37 or SE38.

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



Function K_OPEN_ITEM_SELECT 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 'K_OPEN_ITEM_SELECT'"
EXPORTING
* I_SELECT_ALL = ' ' "

TABLES
T_BELNR = "
T_ERROR = "
T_SELOPT = "
T_LOCK = "
T_MESSAGE = "

EXCEPTIONS
COSTL_ERROR = 1 NOT_ACTIV = 2
.



IMPORTING Parameters details for K_OPEN_ITEM_SELECT

I_SELECT_ALL -

Data type: CHAR1
Default: ' '
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for K_OPEN_ITEM_SELECT

T_BELNR -

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

T_ERROR -

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

T_SELOPT -

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

T_LOCK -

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

T_MESSAGE -

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

EXCEPTIONS details

COSTL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NOT_ACTIV -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for K_OPEN_ITEM_SELECT 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_t_belnr  TYPE STANDARD TABLE OF CMT_OBJ, "   
lv_costl_error  TYPE CMT_OBJ, "   
lv_i_select_all  TYPE CHAR1, "   ' '
lt_t_error  TYPE STANDARD TABLE OF CMT_OBJ, "   
lv_not_activ  TYPE CMT_OBJ, "   
lt_t_selopt  TYPE STANDARD TABLE OF KABA00, "   
lt_t_lock  TYPE STANDARD TABLE OF FCS_ALV_RKANBU01_LIST2, "   
lt_t_message  TYPE STANDARD TABLE OF CMT_MESSAGE. "   

  CALL FUNCTION 'K_OPEN_ITEM_SELECT'  "
    EXPORTING
         I_SELECT_ALL = lv_i_select_all
    TABLES
         T_BELNR = lt_t_belnr
         T_ERROR = lt_t_error
         T_SELOPT = lt_t_selopt
         T_LOCK = lt_t_lock
         T_MESSAGE = lt_t_message
    EXCEPTIONS
        COSTL_ERROR = 1
        NOT_ACTIV = 2
. " K_OPEN_ITEM_SELECT




ABAP code using 7.40 inline data declarations to call FM K_OPEN_ITEM_SELECT

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.

 
 
DATA(ld_i_select_all) = ' '.
 
 
 
 
 
 


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!