SAP KBPT_CHECK_AVAILABILITY Function Module for Validation accesses (budget or plan), index structure availability co









KBPT_CHECK_AVAILABILITY is a standard kbpt check availability SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Validation accesses (budget or plan), index structure availability co processing and below is the pattern details for this FM, 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 kbpt check availability FM, simply by entering the name KBPT_CHECK_AVAILABILITY into the relevant SAP transaction such as SE37 or SE38.

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



Function KBPT_CHECK_AVAILABILITY 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 'KBPT_CHECK_AVAILABILITY'"Validation accesses (budget or plan), index structure availability co
EXPORTING
IMP_BPIN = "
* I_UPDATE_FORCE = ' ' "

IMPORTING
E_ACTION = "Action with which VK was activated
E_ERROR = "

TABLES
Q_GE = "
TAB_TR = "
* Q_IG = "
* Q_IJ = "
Q_JA = "
TAB_CU = "
TAB_GE = "
TAB_HI = "
TAB_IG = "
TAB_IJ = "
TAB_JA = "
TAB_OBJ = "

EXCEPTIONS
ERROR = 1 INDEX_EXISTS = 2 NOINDEX = 3 WARNING = 4
.



IMPORTING Parameters details for KBPT_CHECK_AVAILABILITY

IMP_BPIN -

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

I_UPDATE_FORCE -

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

EXPORTING Parameters details for KBPT_CHECK_AVAILABILITY

E_ACTION - Action with which VK was activated

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

E_ERROR -

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

TABLES Parameters details for KBPT_CHECK_AVAILABILITY

Q_GE -

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

TAB_TR -

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

Q_IG -

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

Q_IJ -

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

Q_JA -

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

TAB_CU -

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

TAB_GE -

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

TAB_HI -

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

TAB_IG -

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

TAB_IJ -

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

TAB_JA -

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

TAB_OBJ -

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

EXCEPTIONS details

ERROR -

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

INDEX_EXISTS - Index availability control already exists

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

NOINDEX -

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

WARNING -

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

Copy and paste ABAP code example for KBPT_CHECK_AVAILABILITY 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_q_ge  TYPE STANDARD TABLE OF BPGE, "   
lv_error  TYPE BPGE, "   
lv_e_action  TYPE TBPFC-ACTION, "   
lv_imp_bpin  TYPE BPIN, "   
lt_tab_tr  TYPE STANDARD TABLE OF BPTR_ID, "   
lt_q_ig  TYPE STANDARD TABLE OF BPIG, "   
lt_q_ij  TYPE STANDARD TABLE OF BPIJ, "   
lt_q_ja  TYPE STANDARD TABLE OF BPJA, "   
lv_e_error  TYPE BPEX-AVC_ERROR, "   
lv_index_exists  TYPE BPEX, "   
lv_i_update_force  TYPE BPEX, "   SPACE
lt_tab_cu  TYPE STANDARD TABLE OF BPCU, "   
lv_noindex  TYPE BPCU, "   
lt_tab_ge  TYPE STANDARD TABLE OF BPGE_ID, "   
lv_warning  TYPE BPGE_ID, "   
lt_tab_hi  TYPE STANDARD TABLE OF BPHI_ID, "   
lt_tab_ig  TYPE STANDARD TABLE OF BPIG_ID, "   
lt_tab_ij  TYPE STANDARD TABLE OF BPIJ_ID, "   
lt_tab_ja  TYPE STANDARD TABLE OF BPJA_ID, "   
lt_tab_obj  TYPE STANDARD TABLE OF BPJA_ID. "   

  CALL FUNCTION 'KBPT_CHECK_AVAILABILITY'  "Validation accesses (budget or plan), index structure availability co
    EXPORTING
         IMP_BPIN = lv_imp_bpin
         I_UPDATE_FORCE = lv_i_update_force
    IMPORTING
         E_ACTION = lv_e_action
         E_ERROR = lv_e_error
    TABLES
         Q_GE = lt_q_ge
         TAB_TR = lt_tab_tr
         Q_IG = lt_q_ig
         Q_IJ = lt_q_ij
         Q_JA = lt_q_ja
         TAB_CU = lt_tab_cu
         TAB_GE = lt_tab_ge
         TAB_HI = lt_tab_hi
         TAB_IG = lt_tab_ig
         TAB_IJ = lt_tab_ij
         TAB_JA = lt_tab_ja
         TAB_OBJ = lt_tab_obj
    EXCEPTIONS
        ERROR = 1
        INDEX_EXISTS = 2
        NOINDEX = 3
        WARNING = 4
. " KBPT_CHECK_AVAILABILITY




ABAP code using 7.40 inline data declarations to call FM KBPT_CHECK_AVAILABILITY

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 ACTION FROM TBPFC INTO @DATA(ld_e_action).
 
 
 
 
 
 
"SELECT single AVC_ERROR FROM BPEX INTO @DATA(ld_e_error).
 
 
DATA(ld_i_update_force) = ' '.
 
 
 
 
 
 
 
 
 
 


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!