SAP BP_SET_APPLICATION_RC Function Module for









BP_SET_APPLICATION_RC is a standard bp set application rc 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 bp set application rc FM, simply by entering the name BP_SET_APPLICATION_RC into the relevant SAP transaction such as SE37 or SE38.

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



Function BP_SET_APPLICATION_RC 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 'BP_SET_APPLICATION_RC'"
EXPORTING
* JOBNAME = "
* JOBCOUNT = "
* STEPCOUNT = "
APP_RC = "
* APP_RC_DESCR = "

EXCEPTIONS
COULD_NOT_SET_RC = 1 JOB_DOES_NOT_EXIST = 2 STEP_DOES_NOT_EXIST = 3 NOT_IN_BATCH = 4 WRONG_PARAM = 5
.



IMPORTING Parameters details for BP_SET_APPLICATION_RC

JOBNAME -

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

JOBCOUNT -

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

STEPCOUNT -

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

APP_RC -

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

APP_RC_DESCR -

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

EXCEPTIONS details

COULD_NOT_SET_RC -

Data type:
Optional: No
Call by Reference: Yes

JOB_DOES_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

STEP_DOES_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

NOT_IN_BATCH -

Data type:
Optional: No
Call by Reference: Yes

WRONG_PARAM -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BP_SET_APPLICATION_RC 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_jobname  TYPE TBTCO-JOBNAME, "   
lv_could_not_set_rc  TYPE TBTCO, "   
lv_jobcount  TYPE TBTCO-JOBCOUNT, "   
lv_job_does_not_exist  TYPE TBTCO, "   
lv_stepcount  TYPE TBTCO-STEPCOUNT, "   
lv_step_does_not_exist  TYPE TBTCO, "   
lv_app_rc  TYPE I, "   
lv_not_in_batch  TYPE I, "   
lv_wrong_param  TYPE I, "   
lv_app_rc_descr  TYPE BTCCTXTT. "   

  CALL FUNCTION 'BP_SET_APPLICATION_RC'  "
    EXPORTING
         JOBNAME = lv_jobname
         JOBCOUNT = lv_jobcount
         STEPCOUNT = lv_stepcount
         APP_RC = lv_app_rc
         APP_RC_DESCR = lv_app_rc_descr
    EXCEPTIONS
        COULD_NOT_SET_RC = 1
        JOB_DOES_NOT_EXIST = 2
        STEP_DOES_NOT_EXIST = 3
        NOT_IN_BATCH = 4
        WRONG_PARAM = 5
. " BP_SET_APPLICATION_RC




ABAP code using 7.40 inline data declarations to call FM BP_SET_APPLICATION_RC

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 JOBNAME FROM TBTCO INTO @DATA(ld_jobname).
 
 
"SELECT single JOBCOUNT FROM TBTCO INTO @DATA(ld_jobcount).
 
 
"SELECT single STEPCOUNT FROM TBTCO INTO @DATA(ld_stepcount).
 
 
 
 
 
 


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!