SAP BKK_STACK_DB_GET_STACK_INTERV Function Module for BCA: Retrieve Check Stack from BKKA6 Using a Check Number Interval









BKK_STACK_DB_GET_STACK_INTERV is a standard bkk stack db get stack interv SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BCA: Retrieve Check Stack from BKKA6 Using a Check Number Interval 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 bkk stack db get stack interv FM, simply by entering the name BKK_STACK_DB_GET_STACK_INTERV into the relevant SAP transaction such as SE37 or SE38.

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



Function BKK_STACK_DB_GET_STACK_INTERV 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 'BKK_STACK_DB_GET_STACK_INTERV'"BCA: Retrieve Check Stack from BKKA6 Using a Check Number Interval
EXPORTING
I_BKKRS = "
* I_STACK_CDAT_TO = "
* I_PLACE_ORIGIN = "
* I_CASHB_EX_FROM = "
* I_CASHB_EX_TO = "
* I_CASHB_CATG = G_CON_CHEQUE "
* I_CASHB_TYPE = "
* I_STACK_NR = "
* I_STACK_STAT = "
* I_CHANG_DAT_FROM = "
* I_CHANG_DAT_TO = "
* I_STACK_PLACE = "
* I_STACK_CDAT_FROM = "

IMPORTING
E_RC = "

TABLES
E_T_STACK_BKKA6 = "
.



IMPORTING Parameters details for BKK_STACK_DB_GET_STACK_INTERV

I_BKKRS -

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

I_STACK_CDAT_TO -

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

I_PLACE_ORIGIN -

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

I_CASHB_EX_FROM -

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

I_CASHB_EX_TO -

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

I_CASHB_CATG -

Data type: BKKA6-CASHB_CATG
Default: G_CON_CHEQUE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CASHB_TYPE -

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

I_STACK_NR -

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

I_STACK_STAT -

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

I_CHANG_DAT_FROM -

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

I_CHANG_DAT_TO -

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

I_STACK_PLACE -

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

I_STACK_CDAT_FROM -

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

EXPORTING Parameters details for BKK_STACK_DB_GET_STACK_INTERV

E_RC -

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

TABLES Parameters details for BKK_STACK_DB_GET_STACK_INTERV

E_T_STACK_BKKA6 -

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

Copy and paste ABAP code example for BKK_STACK_DB_GET_STACK_INTERV 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_e_rc  TYPE SY-SUBRC, "   
lv_i_bkkrs  TYPE BKKA6-BKKRS, "   
lt_e_t_stack_bkka6  TYPE STANDARD TABLE OF BKKA6, "   
lv_i_stack_cdat_to  TYPE BKKA6-STACK_CDAT, "   
lv_i_place_origin  TYPE BKKA6-PLACE_ORIGIN, "   
lv_i_cashb_ex_from  TYPE BKKA6-CASHB_EX_FROM, "   
lv_i_cashb_ex_to  TYPE BKKA6-CASHB_EX_TO, "   
lv_i_cashb_catg  TYPE BKKA6-CASHB_CATG, "   G_CON_CHEQUE
lv_i_cashb_type  TYPE BKKA6-CASHB_TYPE, "   
lv_i_stack_nr  TYPE BKKA6-STACK_NR, "   
lv_i_stack_stat  TYPE BKKA6-STACK_STAT, "   
lv_i_chang_dat_from  TYPE BKKA6-STACK_SDAT, "   
lv_i_chang_dat_to  TYPE BKKA6-STACK_SDAT, "   
lv_i_stack_place  TYPE BKKA6-STACK_PLACE, "   
lv_i_stack_cdat_from  TYPE BKKA6-STACK_CDAT. "   

  CALL FUNCTION 'BKK_STACK_DB_GET_STACK_INTERV'  "BCA: Retrieve Check Stack from BKKA6 Using a Check Number Interval
    EXPORTING
         I_BKKRS = lv_i_bkkrs
         I_STACK_CDAT_TO = lv_i_stack_cdat_to
         I_PLACE_ORIGIN = lv_i_place_origin
         I_CASHB_EX_FROM = lv_i_cashb_ex_from
         I_CASHB_EX_TO = lv_i_cashb_ex_to
         I_CASHB_CATG = lv_i_cashb_catg
         I_CASHB_TYPE = lv_i_cashb_type
         I_STACK_NR = lv_i_stack_nr
         I_STACK_STAT = lv_i_stack_stat
         I_CHANG_DAT_FROM = lv_i_chang_dat_from
         I_CHANG_DAT_TO = lv_i_chang_dat_to
         I_STACK_PLACE = lv_i_stack_place
         I_STACK_CDAT_FROM = lv_i_stack_cdat_from
    IMPORTING
         E_RC = lv_e_rc
    TABLES
         E_T_STACK_BKKA6 = lt_e_t_stack_bkka6
. " BKK_STACK_DB_GET_STACK_INTERV




ABAP code using 7.40 inline data declarations to call FM BKK_STACK_DB_GET_STACK_INTERV

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 SUBRC FROM SY INTO @DATA(ld_e_rc).
 
"SELECT single BKKRS FROM BKKA6 INTO @DATA(ld_i_bkkrs).
 
 
"SELECT single STACK_CDAT FROM BKKA6 INTO @DATA(ld_i_stack_cdat_to).
 
"SELECT single PLACE_ORIGIN FROM BKKA6 INTO @DATA(ld_i_place_origin).
 
"SELECT single CASHB_EX_FROM FROM BKKA6 INTO @DATA(ld_i_cashb_ex_from).
 
"SELECT single CASHB_EX_TO FROM BKKA6 INTO @DATA(ld_i_cashb_ex_to).
 
"SELECT single CASHB_CATG FROM BKKA6 INTO @DATA(ld_i_cashb_catg).
DATA(ld_i_cashb_catg) = G_CON_CHEQUE.
 
"SELECT single CASHB_TYPE FROM BKKA6 INTO @DATA(ld_i_cashb_type).
 
"SELECT single STACK_NR FROM BKKA6 INTO @DATA(ld_i_stack_nr).
 
"SELECT single STACK_STAT FROM BKKA6 INTO @DATA(ld_i_stack_stat).
 
"SELECT single STACK_SDAT FROM BKKA6 INTO @DATA(ld_i_chang_dat_from).
 
"SELECT single STACK_SDAT FROM BKKA6 INTO @DATA(ld_i_chang_dat_to).
 
"SELECT single STACK_PLACE FROM BKKA6 INTO @DATA(ld_i_stack_place).
 
"SELECT single STACK_CDAT FROM BKKA6 INTO @DATA(ld_i_stack_cdat_from).
 


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!