SAP BP_JOBLOG_SHOW Function Module for Display Background Request Log
BP_JOBLOG_SHOW is a standard bp joblog show SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display Background Request Log 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 bp joblog show FM, simply by entering the name BP_JOBLOG_SHOW into the relevant SAP transaction such as SE37 or SE38.
Function Group: BTCH
Program Name: SAPLBTCH
Main Program: SAPLBTCH
Appliation area: S
Release date: 08-May-1996
Mode(Normal, Remote etc): Normal Function Module Warning: Undefined array key "UPDATE" in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 212
Update:

Function BP_JOBLOG_SHOW 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. Warning: Undefined variable $pimport in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 304 Warning: Undefined variable $pidet in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 305 Warning: Undefined variable $ai in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 307 Warning: Undefined variable $px in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 337 Warning: Undefined variable $pxdet in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 338 Warning: Undefined variable $ax in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 339 Warning: Undefined variable $pattern in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 347 Warning: Undefined variable $abapcall in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 349CALL FUNCTION 'BP_JOBLOG_SHOW'"Display Background Request Log.
EXPORTING
* CLIENT = SY-MANDT "Job Clients
* JOBCOUNT = ' ' "Identification no. of background job
* JOBLOGID = ' ' "Name of Job Log in TemSe Database
* JOBNAME = ' ' "Job Name
* LINES = ' ' "No. of Lines
* DIRECTION = ' ' "Read Direction (B = From Beginning, E = From End)
EXCEPTIONS
ERROR_READING_JOBDATA = 1 NO_SHOW_PRIVILEGE_GIVEN = 10 ERROR_READING_JOBLOG_DATA = 2 JOBCOUNT_MISSING = 3 JOBLOG_DOES_NOT_EXIST = 4 JOBLOG_IS_EMPTY = 5 JOBLOG_SHOW_CANCELED = 6 JOBNAME_MISSING = 7 JOB_DOES_NOT_EXIST = 8 NO_JOBLOG_THERE_YET = 9
Warning: Undefined variable $idoc in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 395 Warning: Undefined variable $exitfms in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 397 Warning: Undefined variable $custfunc in /customers/3/8/f/se80.co.uk/httpd.www/builder/sap-function-modules/index.php on line 399 Warning: file(/customers/3/8/f/se80.co.uk/httpd.www/sap/fms/bp_joblog_show/bp_joblog_show.txt): Failed to open stream: No such file or directory in /customers/3/8/f/se80.co.uk/httpd.www/page/php/functions-noconn.php on line 575 Warning: foreach() argument must be of type array|object, bool given in /customers/3/8/f/se80.co.uk/httpd.www/page/php/functions-noconn.php on line 595 Warning: Undefined variable $endtag in /customers/3/8/f/se80.co.uk/httpd.www/page/php/functions-noconn.php on line 859
IMPORTING Parameters details for BP_JOBLOG_SHOW
CLIENT - Job Clients
Data type: TBTCJOB-AUTHCKMANDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
JOBCOUNT - Identification no. of background job
Data type: TBTCJOB-JOBCOUNTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
JOBLOGID - Name of Job Log in TemSe Database
Data type: TBTCJOB-JOBLOGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
JOBNAME - Job Name
Data type: TBTCJOB-JOBNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LINES - No. of Lines
Data type: BTCINT4Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIRECTION - Read Direction (B = From Beginning, E = From End)
Data type: BTCCHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_READING_JOBDATA - Error Reading Job Data
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SHOW_PRIVILEGE_GIVEN - No Authorization to Display Job Log
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_READING_JOBLOG_DATA - Error Reading Job Log
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
JOBCOUNT_MISSING - Job identification no. not specified
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
JOBLOG_DOES_NOT_EXIST - Job Log Not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
JOBLOG_IS_EMPTY - Job Log is Empty
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
JOBLOG_SHOW_CANCELED - Log Display Canceled
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
JOBNAME_MISSING - Job Name Not Specified
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
JOB_DOES_NOT_EXIST - Job Not Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_JOBLOG_THERE_YET - Job Log Not Yet Generated
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BP_JOBLOG_SHOW 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_client | TYPE TBTCJOB-AUTHCKMAN, " SY-MANDT | |||
| lv_error_reading_jobdata | TYPE TBTCJOB, " | |||
| lv_no_show_privilege_given | TYPE TBTCJOB, " | |||
| lv_jobcount | TYPE TBTCJOB-JOBCOUNT, " SPACE | |||
| lv_error_reading_joblog_data | TYPE TBTCJOB, " | |||
| lv_joblogid | TYPE TBTCJOB-JOBLOG, " SPACE | |||
| lv_jobcount_missing | TYPE TBTCJOB, " | |||
| lv_jobname | TYPE TBTCJOB-JOBNAME, " SPACE | |||
| lv_joblog_does_not_exist | TYPE TBTCJOB, " | |||
| lv_lines | TYPE BTCINT4, " SPACE | |||
| lv_joblog_is_empty | TYPE BTCINT4, " | |||
| lv_direction | TYPE BTCCHAR1, " SPACE | |||
| lv_joblog_show_canceled | TYPE BTCCHAR1, " | |||
| lv_jobname_missing | TYPE BTCCHAR1, " | |||
| lv_job_does_not_exist | TYPE BTCCHAR1, " | |||
| lv_no_joblog_there_yet | TYPE BTCCHAR1. " |
|   CALL FUNCTION 'BP_JOBLOG_SHOW' "Display Background Request Log |
| EXPORTING | ||
| CLIENT | = lv_client | |
| JOBCOUNT | = lv_jobcount | |
| JOBLOGID | = lv_joblogid | |
| JOBNAME | = lv_jobname | |
| LINES | = lv_lines | |
| DIRECTION | = lv_direction | |
| EXCEPTIONS | ||
| ERROR_READING_JOBDATA = 1 | ||
| NO_SHOW_PRIVILEGE_GIVEN = 10 | ||
| ERROR_READING_JOBLOG_DATA = 2 | ||
| JOBCOUNT_MISSING = 3 | ||
| JOBLOG_DOES_NOT_EXIST = 4 | ||
| JOBLOG_IS_EMPTY = 5 | ||
| JOBLOG_SHOW_CANCELED = 6 | ||
| JOBNAME_MISSING = 7 | ||
| JOB_DOES_NOT_EXIST = 8 | ||
| NO_JOBLOG_THERE_YET = 9 | ||
| . " BP_JOBLOG_SHOW | ||
ABAP code using 7.40 inline data declarations to call FM BP_JOBLOG_SHOW
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 AUTHCKMAN FROM TBTCJOB INTO @DATA(ld_client). | ||||
| DATA(ld_client) | = SY-MANDT. | |||
| "SELECT single JOBCOUNT FROM TBTCJOB INTO @DATA(ld_jobcount). | ||||
| DATA(ld_jobcount) | = ' '. | |||
| "SELECT single JOBLOG FROM TBTCJOB INTO @DATA(ld_joblogid). | ||||
| DATA(ld_joblogid) | = ' '. | |||
| "SELECT single JOBNAME FROM TBTCJOB INTO @DATA(ld_jobname). | ||||
| DATA(ld_jobname) | = ' '. | |||
| DATA(ld_lines) | = ' '. | |||
| DATA(ld_direction) | = ' '. | |||
Search for further information about these or an SAP related objects