SAP BKK_PA_PROCESS_START Function Module for Start Parallel Processing









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

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



Function BKK_PA_PROCESS_START 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_START'"Start Parallel Processing
EXPORTING
I_APPLCATG = "
* I_S_PRINT = "
* I_XWRT_APPLLOG = 'X' "
* I_DIR_CLOSURE = "Call By Direct Account Closure
* I_XAUTORESTART = "
* I_PROGN = SY-CPROG "
* I_PROGDATE = "
* I_PROGNO = "
* I_XNEWRUN = 'X' "
* I_XSIMULRUN = "
* I_S_RUNPARAM = "
* I_MAXSTEPNO = '001' "
* I_XDEBUG = "

IMPORTING
E_RUNSTATUS = "
E_APPL_RETURNCODE = "

EXCEPTIONS
INVALID_INPUT = 1 NO_START_ALLOWED = 2 NO_EVENT = 3 NO_RESTART = 4 INSERT_FAILED = 5
.



IMPORTING Parameters details for BKK_PA_PROCESS_START

I_APPLCATG -

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

I_S_PRINT -

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

I_XWRT_APPLLOG -

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

I_DIR_CLOSURE - Call By Direct Account Closure

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

I_XAUTORESTART -

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

I_PROGN -

Data type: BKKD_PROGN
Default: SY-CPROG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PROGDATE -

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

I_PROGNO -

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

I_XNEWRUN -

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

I_XSIMULRUN -

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

I_S_RUNPARAM -

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

I_MAXSTEPNO -

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

I_XDEBUG -

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

EXPORTING Parameters details for BKK_PA_PROCESS_START

E_RUNSTATUS -

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

E_APPL_RETURNCODE -

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

EXCEPTIONS details

INVALID_INPUT -

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

NO_START_ALLOWED -

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

NO_EVENT -

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

NO_RESTART -

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

INSERT_FAILED - Error When Inserting a New Process

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BKK_PA_PROCESS_START 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_applcatg  TYPE BKKD_APPLCATG, "   
lv_e_runstatus  TYPE BKKD_RUNSTATUS, "   
lv_invalid_input  TYPE BKKD_RUNSTATUS, "   
lv_i_s_print  TYPE PRI_PARAMS, "   
lv_i_xwrt_appllog  TYPE BKKD_XWRT_APPLLOG, "   'X'
lv_i_dir_closure  TYPE BKK_FLG, "   
lv_i_xautorestart  TYPE BOOLE-BOOLE, "   
lv_i_progn  TYPE BKKD_PROGN, "   SY-CPROG
lv_no_start_allowed  TYPE BKKD_PROGN, "   
lv_e_appl_returncode  TYPE SY-SUBRC, "   
lv_no_event  TYPE SY, "   
lv_i_progdate  TYPE BKKD_PROGDATE, "   
lv_i_progno  TYPE BKKD_PROGNO, "   
lv_no_restart  TYPE BKKD_PROGNO, "   
lv_i_xnewrun  TYPE BOOLE-BOOLE, "   'X'
lv_insert_failed  TYPE BOOLE, "   
lv_i_xsimulrun  TYPE BKKD_XSIMULRUN, "   
lv_i_s_runparam  TYPE ANY, "   
lv_i_maxstepno  TYPE BKKD_STEPNO, "   '001'
lv_i_xdebug  TYPE BOOLE-BOOLE. "   

  CALL FUNCTION 'BKK_PA_PROCESS_START'  "Start Parallel Processing
    EXPORTING
         I_APPLCATG = lv_i_applcatg
         I_S_PRINT = lv_i_s_print
         I_XWRT_APPLLOG = lv_i_xwrt_appllog
         I_DIR_CLOSURE = lv_i_dir_closure
         I_XAUTORESTART = lv_i_xautorestart
         I_PROGN = lv_i_progn
         I_PROGDATE = lv_i_progdate
         I_PROGNO = lv_i_progno
         I_XNEWRUN = lv_i_xnewrun
         I_XSIMULRUN = lv_i_xsimulrun
         I_S_RUNPARAM = lv_i_s_runparam
         I_MAXSTEPNO = lv_i_maxstepno
         I_XDEBUG = lv_i_xdebug
    IMPORTING
         E_RUNSTATUS = lv_e_runstatus
         E_APPL_RETURNCODE = lv_e_appl_returncode
    EXCEPTIONS
        INVALID_INPUT = 1
        NO_START_ALLOWED = 2
        NO_EVENT = 3
        NO_RESTART = 4
        INSERT_FAILED = 5
. " BKK_PA_PROCESS_START




ABAP code using 7.40 inline data declarations to call FM BKK_PA_PROCESS_START

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_xwrt_appllog) = 'X'.
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xautorestart).
 
DATA(ld_i_progn) = SY-CPROG.
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_appl_returncode).
 
 
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xnewrun).
DATA(ld_i_xnewrun) = 'X'.
 
 
 
 
DATA(ld_i_maxstepno) = '001'.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xdebug).
 


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!