SAP BP_JOBLOG_READ Function Module for Read Background Request Log
BP_JOBLOG_READ is a standard bp joblog read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read 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 read FM, simply by entering the name BP_JOBLOG_READ 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
Update:
Function BP_JOBLOG_READ 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_JOBLOG_READ'"Read Background Request Log.
EXPORTING
* CLIENT = SY-MANDT "Job Clients
* JOBCOUNT = ' ' "Job identification no.
* JOBLOG = ' ' "Name of Job Log in TemSe Database
* JOBNAME = ' ' "Job Name
* LINES = "No. of Lines
* DIRECTION = "Read Direction (B = From Beginning, E = From End)
TABLES
JOBLOGTBL = "Job Log Entries in List Format
EXCEPTIONS
CANT_READ_JOBLOG = 1 JOBCOUNT_MISSING = 2 JOBLOG_DOES_NOT_EXIST = 3 JOBLOG_IS_EMPTY = 4 JOBLOG_NAME_MISSING = 5 JOBNAME_MISSING = 6 JOB_DOES_NOT_EXIST = 7
IMPORTING Parameters details for BP_JOBLOG_READ
CLIENT - Job Clients
Data type: TBTCJOB-AUTHCKMANDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
JOBCOUNT - Job identification no.
Data type: TBTCJOB-JOBCOUNTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
JOBLOG - 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: BTCINT4Optional: Yes
Call by Reference: No ( called with pass by value option)
DIRECTION - Read Direction (B = From Beginning, E = From End)
Data type: BTCCHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BP_JOBLOG_READ
JOBLOGTBL - Job Log Entries in List Format
Data type: TBTC5Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANT_READ_JOBLOG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
JOBCOUNT_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
JOBLOG_DOES_NOT_EXIST - Log Not Found in TemSe Database
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
JOBLOG_IS_EMPTY - Log is Empty
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
JOBLOG_NAME_MISSING -
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 Already Deleted
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BP_JOBLOG_READ 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 | |||
lt_joblogtbl | TYPE STANDARD TABLE OF TBTC5, " | |||
lv_cant_read_joblog | TYPE TBTC5, " | |||
lv_jobcount | TYPE TBTCJOB-JOBCOUNT, " SPACE | |||
lv_jobcount_missing | TYPE TBTCJOB, " | |||
lv_joblog | TYPE TBTCJOB-JOBLOG, " SPACE | |||
lv_joblog_does_not_exist | TYPE TBTCJOB, " | |||
lv_jobname | TYPE TBTCJOB-JOBNAME, " SPACE | |||
lv_joblog_is_empty | TYPE TBTCJOB, " | |||
lv_lines | TYPE BTCINT4, " | |||
lv_joblog_name_missing | TYPE BTCINT4, " | |||
lv_direction | TYPE BTCCHAR1, " | |||
lv_jobname_missing | TYPE BTCCHAR1, " | |||
lv_job_does_not_exist | TYPE BTCCHAR1. " |
  CALL FUNCTION 'BP_JOBLOG_READ' "Read Background Request Log |
EXPORTING | ||
CLIENT | = lv_client | |
JOBCOUNT | = lv_jobcount | |
JOBLOG | = lv_joblog | |
JOBNAME | = lv_jobname | |
LINES | = lv_lines | |
DIRECTION | = lv_direction | |
TABLES | ||
JOBLOGTBL | = lt_joblogtbl | |
EXCEPTIONS | ||
CANT_READ_JOBLOG = 1 | ||
JOBCOUNT_MISSING = 2 | ||
JOBLOG_DOES_NOT_EXIST = 3 | ||
JOBLOG_IS_EMPTY = 4 | ||
JOBLOG_NAME_MISSING = 5 | ||
JOBNAME_MISSING = 6 | ||
JOB_DOES_NOT_EXIST = 7 | ||
. " BP_JOBLOG_READ |
ABAP code using 7.40 inline data declarations to call FM BP_JOBLOG_READ
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_joblog). | ||||
DATA(ld_joblog) | = ' '. | |||
"SELECT single JOBNAME FROM TBTCJOB INTO @DATA(ld_jobname). | ||||
DATA(ld_jobname) | = ' '. | |||
Search for further information about these or an SAP related objects