Fonction SAP BAPI_XBP_GET_CURR_BP_RESOURCES - Determine Background Resources Currently Available in System

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EXTERNAL_USER_NAME BAPIXMLOGR-EXTUSER C 16 External User Name

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548

Paramètre Reférence Long. Facultatif Description
RESOURCE_INFO BAPIXMCRES 69 Information About Current Resources
SRVGRP_INFO BPGRP0101 60 X Structure for Assignment Dialog: Instance-Group

Functionality
With this method you can determine the resources that are currentlyavailable to the background processing system in an R/3 System. Theresources are determined across the system taking into considering theactive operation mode. For each instance, the system returns the numberof work processes for the background processing system, as well as thenumber of work processes that are reserved for jobs in priority classA.
This type of check of the available resources is not absolutelynecessary. A background job is always executed unless the backgroundprocessing system is completely out of operation.
The check may be useful, for example, if a job should be startedimmediately. With this method you can then determine whether backgroundwork processes can now be made available.

Further information
XBP documentation (SAPnet/CCMS)

Description
INCLUDE BAPI_TABLE

Value range
MSG_NO_RESOURCES_FOUND: No work processes exist for backgroundprocessing for the time and date specified.
MSG_PROBLEM_DETECTED: The background processing system has detected anerror. You can find a detailed description of the problem in the R/3system log.
MSG_CANT_LOG: The method call was terminated due to an error in the R/3XMI logging system.
MSG_EXT_USER_MISSING: The name of the external user was not specifiedin the call. This name specifies the user who triggered the method callin the external system.
MSG_NOT_LOGGED_ON: The external system administration tool has notlogged onto the CCMS XMI interface. The method call was terminated as aresult.
INCLUDE BAPI_XBP_EXTERNAL_USER_NAME ID TX
INCLUDE BAPI_XBP_RESOURCE_INFO_TBL ID TX