SAP Function Modules

BPT_ANALYSE_START SAP Function module - Start background processing analysis tools







BPT_ANALYSE_START is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BPT_ANALYSE_START into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SBPT
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BPT_ANALYSE_START - BPT ANALYSE START





CALL FUNCTION 'BPT_ANALYSE_START' "Start background processing analysis tools
* EXPORTING
*   automatic_db_repair = SPACE  " btch0000-char1
*   btcqsize_get = SPACE        " btch0000-char1
*   check_all_btc_servers = SPACE  " btch0000-char1
*   db_consistency_check = SPACE  " btch0000-char1
*   hostname_check = SPACE      " btch0000-char1
*   profile_check = SPACE       " btch0000-char1  Check profile parameters
*   server_name = SPACE         " msxxlist-name
*   srvlist_get = SPACE         " btch0000-char1
*   temse_check = SPACE         " btch0000-char1
*   user_check = SPACE          " btch0000-char1
*   user_name = SY-UNAME        " sy-uname
*   wpstatus_get = SPACE        " btch0000-char1
*   xpgm_environment_check = SPACE  " btch0000-char1
*   rel_incons_jobs = SPACE     " btch0000-char1
  TABLES
    protocol_tbl =              " btctstprot
  EXCEPTIONS
    ERROR_DETECTED = 1          "
    .  "  BPT_ANALYSE_START

ABAP code example for Function Module BPT_ANALYSE_START





The ABAP code below is a full code listing to execute function module BPT_ANALYSE_START including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_protocol_tbl  TYPE STANDARD TABLE OF BTCTSTPROT,"TABLES PARAM
wa_protocol_tbl  LIKE LINE OF it_protocol_tbl .


DATA(ld_automatic_db_repair) = some text here

DATA(ld_btcqsize_get) = some text here

DATA(ld_check_all_btc_servers) = some text here

DATA(ld_db_consistency_check) = some text here

DATA(ld_hostname_check) = some text here

DATA(ld_profile_check) = some text here

DATA(ld_server_name) = some text here

DATA(ld_srvlist_get) = some text here

DATA(ld_temse_check) = some text here

DATA(ld_user_check) = some text here
DATA(ld_user_name) = 'some text here'.

DATA(ld_wpstatus_get) = some text here

DATA(ld_xpgm_environment_check) = some text here

DATA(ld_rel_incons_jobs) = some text here

"populate fields of struture and append to itab
append wa_protocol_tbl to it_protocol_tbl. . CALL FUNCTION 'BPT_ANALYSE_START' * EXPORTING * automatic_db_repair = ld_automatic_db_repair * btcqsize_get = ld_btcqsize_get * check_all_btc_servers = ld_check_all_btc_servers * db_consistency_check = ld_db_consistency_check * hostname_check = ld_hostname_check * profile_check = ld_profile_check * server_name = ld_server_name * srvlist_get = ld_srvlist_get * temse_check = ld_temse_check * user_check = ld_user_check * user_name = ld_user_name * wpstatus_get = ld_wpstatus_get * xpgm_environment_check = ld_xpgm_environment_check * rel_incons_jobs = ld_rel_incons_jobs TABLES protocol_tbl = it_protocol_tbl EXCEPTIONS ERROR_DETECTED = 1 . " BPT_ANALYSE_START
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_automatic_db_repair  TYPE BTCH0000-CHAR1 ,
it_protocol_tbl  TYPE STANDARD TABLE OF BTCTSTPROT ,
wa_protocol_tbl  LIKE LINE OF it_protocol_tbl,
ld_btcqsize_get  TYPE BTCH0000-CHAR1 ,
ld_check_all_btc_servers  TYPE BTCH0000-CHAR1 ,
ld_db_consistency_check  TYPE BTCH0000-CHAR1 ,
ld_hostname_check  TYPE BTCH0000-CHAR1 ,
ld_profile_check  TYPE BTCH0000-CHAR1 ,
ld_server_name  TYPE MSXXLIST-NAME ,
ld_srvlist_get  TYPE BTCH0000-CHAR1 ,
ld_temse_check  TYPE BTCH0000-CHAR1 ,
ld_user_check  TYPE BTCH0000-CHAR1 ,
ld_user_name  TYPE SY-UNAME ,
ld_wpstatus_get  TYPE BTCH0000-CHAR1 ,
ld_xpgm_environment_check  TYPE BTCH0000-CHAR1 ,
ld_rel_incons_jobs  TYPE BTCH0000-CHAR1 .


ld_automatic_db_repair = some text here

"populate fields of struture and append to itab
append wa_protocol_tbl to it_protocol_tbl.

ld_btcqsize_get = some text here

ld_check_all_btc_servers = some text here

ld_db_consistency_check = some text here

ld_hostname_check = some text here

ld_profile_check = some text here

ld_server_name = some text here

ld_srvlist_get = some text here

ld_temse_check = some text here

ld_user_check = some text here
ld_user_name = 'some text here'.

ld_wpstatus_get = some text here

ld_xpgm_environment_check = some text here

ld_rel_incons_jobs = some text here

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BPT_ANALYSE_START or its description.