Fonction SAP BAPI_XBP_GET_BP_RESRC_ON_DATE - Determine all Background Resources Available on a Particular Date

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DATE BAPIXMJOB-SDLSTRTDT D 8 Date
EXTERNAL_USER_NAME BAPIXMLOGR-EXTUSER C 16 External user name
TIME BAPIXMJOB-SDLSTRTTM T 6 Time

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

Paramètre Reférence Long. Facultatif Description
RESOURCE_INFO_TBL BAPIXMRES 66 Table with resource information

Functionality
With this method you can determine the resources that are available inan R/3 System at a specific time. The resources are determined accrossthe system, taking into account the operative mode active at thespecified time. For each R/3 instance, the system returns the number ofof 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 can be useful if, for example, a job is executed at theexecution time without any hesitation. With this function module youcan then specify whether any background work processes may beavailable.

Further information
XBP documentation (SAPnet/CCMS)

Description
INCLUDE BAPI_TABLE

Value range
MSG_NO_RESOURCES_FOUND: No work processes exist for the backgroundprocessing system for the date and time specified.
MSG_INVALID_DATE_TIME: The time or date specified is not valid.
MSG_PROBLEM_DETECTED: The background processing system has detected anerror. You can find an exact 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 external user name was not specified in thecall. This name specifies the user in the external system who triggeredthe method call.
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_RES_DATE ID TX
INCLUDE BAPI_XBP_EXTERNAL_USER_NAME ID TX
INCLUDE BAPI_XBP_RES_TIME ID TX
INCLUDE BAPI_XBP_RESOURCE_INFO_TBL ID TX