Fonction SAP BAPI_XBP_GET_BP_SRVRES_ON_DATE - Determine Background Resources of Server on 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
SERVER_NAME BAPIXMJOB-EXECSERVER C 20 Server Name
TIME BAPIXMJOB-SDLSTRTTM T 6 Time

Paramètre Reférence Type Long. Description
RESOURCE_INFO BAPIXMRES u 66 Information About Current Resources
RETURN BAPIRET2 u 548

Functionality
With this method you can define the resources that are available forthe background processing system at a specific time in a specific R/3instance. The resources are determined for the specified instancetaking into consideration the operation mode that is active at thespecified time. The system returns the number of work processes forbackground processing, as well as the number of work processes that arereserved for jobs in priority class A.
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 is useful if a job must run on a specific instance. With thisfunction module you can then determine whether any background workprocesses will be available on this instance at the job start time.

Further information
XBP documentation (SAPnet/CCMS)
INCLUDE BAPI_XBP_RESOURCE_INFO_TBL ID TX

Description
INCLUDE BAPI_TABLE

Value range
MSG_NO_RESOURCES_FOUND: No work processes for the background processingsystem exist at the specified time and date.
MSG_INVALID_DATE_TIME: The specified time or date is invalid.
MSG_INVALID_SERVER_NAME: The specified server name is invalid.
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
INCLUDE BAPI_XBP_EXTERNAL_USER_NAME ID TX

Description
Name of the R/3 instance on which the availability of resources is tobe determined.

Value range
The name must be specified in the format<(><<)>host_name>_<(><<)>SAP_system_name>_<(><<)>SAP_system_number>.the instance name is contained in system profile parameterrdisp/myname.
Example: host1234_C11_55

Description
Time of day at which the availability of resources is to be determined.

Value range
The time must be specified as HHMMSS. Example: 231255.