SAP BP_GET_APPLICATION_INFO Function Module for









BP_GET_APPLICATION_INFO is a standard bp get application info 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 get application info FM, simply by entering the name BP_GET_APPLICATION_INFO 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_GET_APPLICATION_INFO 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_GET_APPLICATION_INFO'"
EXPORTING
JOBNAME = "
JOBCOUNT = "
* STEPCOUNT = "

IMPORTING
T_LOGHANDLES = "
T_RETURN_CODES = "
JOB_STATUS = "

EXCEPTIONS
JOB_DOES_NOT_EXIST = 1 STEP_DOES_NOT_EXIST = 2 NOTHING_FOUND = 3
.



IMPORTING Parameters details for BP_GET_APPLICATION_INFO

JOBNAME -

Data type: TBTCO-JOBNAME
Optional: No
Call by Reference: Yes

JOBCOUNT -

Data type: TBTCO-JOBCOUNT
Optional: No
Call by Reference: Yes

STEPCOUNT -

Data type: TBTCO-STEPCOUNT
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for BP_GET_APPLICATION_INFO

T_LOGHANDLES -

Data type: BTC_T_LOGHANDLE
Optional: No
Call by Reference: Yes

T_RETURN_CODES -

Data type: BTC_T_APPRC
Optional: No
Call by Reference: Yes

JOB_STATUS -

Data type: BTCSTATUS
Optional: No
Call by Reference: Yes

EXCEPTIONS details

JOB_DOES_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

STEP_DOES_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

NOTHING_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BP_GET_APPLICATION_INFO 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_t_loghandles  TYPE BTC_T_LOGHANDLE, "   
lv_job_does_not_exist  TYPE BTC_T_LOGHANDLE, "   
lv_jobcount  TYPE TBTCO-JOBCOUNT, "   
lv_t_return_codes  TYPE BTC_T_APPRC, "   
lv_step_does_not_exist  TYPE BTC_T_APPRC, "   
lv_stepcount  TYPE TBTCO-STEPCOUNT, "   
lv_job_status  TYPE BTCSTATUS, "   
lv_nothing_found  TYPE BTCSTATUS. "   

  CALL FUNCTION 'BP_GET_APPLICATION_INFO'  "
    EXPORTING
         JOBNAME = lv_jobname
         JOBCOUNT = lv_jobcount
         STEPCOUNT = lv_stepcount
    IMPORTING
         T_LOGHANDLES = lv_t_loghandles
         T_RETURN_CODES = lv_t_return_codes
         JOB_STATUS = lv_job_status
    EXCEPTIONS
        JOB_DOES_NOT_EXIST = 1
        STEP_DOES_NOT_EXIST = 2
        NOTHING_FOUND = 3
. " BP_GET_APPLICATION_INFO




ABAP code using 7.40 inline data declarations to call FM BP_GET_APPLICATION_INFO

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!