SAP BP_CHECK_REPORT_VALUES Function Module for









BP_CHECK_REPORT_VALUES is a standard bp check report values 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 check report values FM, simply by entering the name BP_CHECK_REPORT_VALUES into the relevant SAP transaction such as SE37 or SE38.

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



Function BP_CHECK_REPORT_VALUES 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_CHECK_REPORT_VALUES'"
EXPORTING
CHECK_TYPE = "Type of check: check report / report + variant
CHKRP_DIALOG = "Online mode (yes = BTC_YES / no = BTC_NO )
REPORT_NAME = "report name to be checked
* VARIANT_NAME = ' ' "Variant to be checked or selected online
* NO_AUTH_CHECK = "

IMPORTING
VARIANT_NAME = "Variant to be checked or selected online

EXCEPTIONS
INVALID_CHECK_TYPE = 1 VARIANT_CHECK_HAS_FAILED = 10 VARIANT_NAME_MISSING = 11 VARIANT_SELECTION_ABORTED = 12 INVALID_DIALOG_TYPE = 2 INVALID_REPORT_NAME = 3 INVALID_VARIANT_NAME = 4 NO_PLAN_AUTHORITY = 5 NO_VARIANTS_DEFINED = 6 REPORT_CAN_NOT_BE_SCHEDULED = 7 REPORT_HAS_NO_VARIANTS = 8 REPORT_NAME_MISSING = 9
.



IMPORTING Parameters details for BP_CHECK_REPORT_VALUES

CHECK_TYPE - Type of check: check report / report + variant

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

CHKRP_DIALOG - Online mode (yes = BTC_YES / no = BTC_NO )

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

REPORT_NAME - report name to be checked

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

VARIANT_NAME - Variant to be checked or selected online

Data type: RALDB-VARIANT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_AUTH_CHECK -

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

EXPORTING Parameters details for BP_CHECK_REPORT_VALUES

VARIANT_NAME - Variant to be checked or selected online

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

EXCEPTIONS details

INVALID_CHECK_TYPE - Check category is invalid (see notes)

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

VARIANT_CHECK_HAS_FAILED - Variant check failed due to internal error

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

VARIANT_NAME_MISSING - Variant specification is missing

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

VARIANT_SELECTION_ABORTED - online variant choice cancelled

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

INVALID_DIALOG_TYPE - Interactive category is invalid

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

INVALID_REPORT_NAME - Report name is invalid

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

INVALID_VARIANT_NAME - Variant name is invalid

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

NO_PLAN_AUTHORITY - User must not plan report as a background job

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

NO_VARIANTS_DEFINED - no variants were defined up to now

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

REPORT_CAN_NOT_BE_SCHEDULED - Report cannot be planned as background job

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

REPORT_HAS_NO_VARIANTS - Report has no variants

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

REPORT_NAME_MISSING - Report specification is missing

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

Copy and paste ABAP code example for BP_CHECK_REPORT_VALUES 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_check_type  TYPE BTCH0000-CHAR1, "   
lv_variant_name  TYPE RALDB-VARIANT, "   
lv_invalid_check_type  TYPE RALDB, "   
lv_variant_check_has_failed  TYPE RALDB, "   
lv_variant_name_missing  TYPE RALDB, "   
lv_variant_selection_aborted  TYPE RALDB, "   
lv_chkrp_dialog  TYPE BTCH0000-CHAR1, "   
lv_invalid_dialog_type  TYPE BTCH0000, "   
lv_report_name  TYPE RALDB-REPORT, "   
lv_invalid_report_name  TYPE RALDB, "   
lv_variant_name  TYPE RALDB-VARIANT, "   SPACE
lv_invalid_variant_name  TYPE RALDB, "   
lv_no_auth_check  TYPE BTCH0000-CHAR1, "   
lv_no_plan_authority  TYPE BTCH0000, "   
lv_no_variants_defined  TYPE BTCH0000, "   
lv_report_can_not_be_scheduled  TYPE BTCH0000, "   
lv_report_has_no_variants  TYPE BTCH0000, "   
lv_report_name_missing  TYPE BTCH0000. "   

  CALL FUNCTION 'BP_CHECK_REPORT_VALUES'  "
    EXPORTING
         CHECK_TYPE = lv_check_type
         CHKRP_DIALOG = lv_chkrp_dialog
         REPORT_NAME = lv_report_name
         VARIANT_NAME = lv_variant_name
         NO_AUTH_CHECK = lv_no_auth_check
    IMPORTING
         VARIANT_NAME = lv_variant_name
    EXCEPTIONS
        INVALID_CHECK_TYPE = 1
        VARIANT_CHECK_HAS_FAILED = 10
        VARIANT_NAME_MISSING = 11
        VARIANT_SELECTION_ABORTED = 12
        INVALID_DIALOG_TYPE = 2
        INVALID_REPORT_NAME = 3
        INVALID_VARIANT_NAME = 4
        NO_PLAN_AUTHORITY = 5
        NO_VARIANTS_DEFINED = 6
        REPORT_CAN_NOT_BE_SCHEDULED = 7
        REPORT_HAS_NO_VARIANTS = 8
        REPORT_NAME_MISSING = 9
. " BP_CHECK_REPORT_VALUES




ABAP code using 7.40 inline data declarations to call FM BP_CHECK_REPORT_VALUES

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 CHAR1 FROM BTCH0000 INTO @DATA(ld_check_type).
 
"SELECT single VARIANT FROM RALDB INTO @DATA(ld_variant_name).
 
 
 
 
 
"SELECT single CHAR1 FROM BTCH0000 INTO @DATA(ld_chkrp_dialog).
 
 
"SELECT single REPORT FROM RALDB INTO @DATA(ld_report_name).
 
 
"SELECT single VARIANT FROM RALDB INTO @DATA(ld_variant_name).
DATA(ld_variant_name) = ' '.
 
 
"SELECT single CHAR1 FROM BTCH0000 INTO @DATA(ld_no_auth_check).
 
 
 
 
 
 


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!