SAP BKK_PA_PROCESS_DB_GET_RUNDATA Function Module for Retrieve Data for Mass Run









BKK_PA_PROCESS_DB_GET_RUNDATA is a standard bkk pa process db get rundata SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Retrieve Data for Mass Run 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 pa process db get rundata FM, simply by entering the name BKK_PA_PROCESS_DB_GET_RUNDATA into the relevant SAP transaction such as SE37 or SE38.

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



Function BKK_PA_PROCESS_DB_GET_RUNDATA 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_PA_PROCESS_DB_GET_RUNDATA'"Retrieve Data for Mass Run
EXPORTING
I_PROGN = "
I_PROGDATE = "
I_PROGNO = "
* I_XREADFROMBUF = 'X' "

IMPORTING
E_RUNDATA = "
E_APPLCATG = "
E_XSIMULRUN = "
E_CURRSTARTNO = "
E_REALSTARTNO = "
E_CURRSTEPNO = "
E_MAXSTEPNO = "

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for BKK_PA_PROCESS_DB_GET_RUNDATA

I_PROGN -

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

I_PROGDATE -

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

I_PROGNO -

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

I_XREADFROMBUF -

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

EXPORTING Parameters details for BKK_PA_PROCESS_DB_GET_RUNDATA

E_RUNDATA -

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

E_APPLCATG -

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

E_XSIMULRUN -

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

E_CURRSTARTNO -

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

E_REALSTARTNO -

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

E_CURRSTEPNO -

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

E_MAXSTEPNO -

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

EXCEPTIONS details

NOT_FOUND -

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

Copy and paste ABAP code example for BKK_PA_PROCESS_DB_GET_RUNDATA 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_progn  TYPE BKKD_PROGN, "   
lv_e_rundata  TYPE BKKD_S_RUNDBINFO, "   
lv_not_found  TYPE BKKD_S_RUNDBINFO, "   
lv_e_applcatg  TYPE BKKD_APPLCATG, "   
lv_i_progdate  TYPE BKKD_PROGDATE, "   
lv_i_progno  TYPE BKKD_PROGNO, "   
lv_e_xsimulrun  TYPE BKKD_XSIMULRUN, "   
lv_e_currstartno  TYPE BKKD_RUNSTARTNO, "   
lv_i_xreadfrombuf  TYPE BOOLE-BOOLE, "   'X'
lv_e_realstartno  TYPE BKKD_RUNSTARTNO, "   
lv_e_currstepno  TYPE BKKD_STEPNO, "   
lv_e_maxstepno  TYPE BKKD_STEPNO. "   

  CALL FUNCTION 'BKK_PA_PROCESS_DB_GET_RUNDATA'  "Retrieve Data for Mass Run
    EXPORTING
         I_PROGN = lv_i_progn
         I_PROGDATE = lv_i_progdate
         I_PROGNO = lv_i_progno
         I_XREADFROMBUF = lv_i_xreadfrombuf
    IMPORTING
         E_RUNDATA = lv_e_rundata
         E_APPLCATG = lv_e_applcatg
         E_XSIMULRUN = lv_e_xsimulrun
         E_CURRSTARTNO = lv_e_currstartno
         E_REALSTARTNO = lv_e_realstartno
         E_CURRSTEPNO = lv_e_currstepno
         E_MAXSTEPNO = lv_e_maxstepno
    EXCEPTIONS
        NOT_FOUND = 1
. " BKK_PA_PROCESS_DB_GET_RUNDATA




ABAP code using 7.40 inline data declarations to call FM BKK_PA_PROCESS_DB_GET_RUNDATA

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 BOOLE FROM BOOLE INTO @DATA(ld_i_xreadfrombuf).
DATA(ld_i_xreadfrombuf) = 'X'.
 
 
 
 


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!