SAP Job Failure with Error: BAPI_XBP_JOB_CLOSE R/3 Code: E;237;Receiver object could not be created
search cancel

SAP Job Failure with Error: BAPI_XBP_JOB_CLOSE R/3 Code: E;237;Receiver object could not be created

book

Article ID: 442202

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

SAP jobs scheduled via AutoSys Workload Automation fail immediately after entering a RUNNING state. The AutoSys job log shows the following error:

FAILURE <BAPI_XBP_JOB_CLOSE function failed. R/3 Code: E;237;Receiver object could not be created>

The job may not appear in SAP transaction SM37 because the failure occurs during the job closure/handshake process between the Agent and SAP.

Environment

  • Product: Workload Automation Agent for SAP
  • Version: 12.x and above
  • System: SAP R/3 

Cause

The job definition includes a sap_recipients parameter (e.g., rcp_type=DLI, recipient="NAME") that points to a recipient list or distribution list that does not exist or is not valid within the specific SAP Client. When the agent attempts to close the job and assign the recipient for spool distribution, SAP returns error code 237 because it cannot create the receiver object.

Resolution

  1. Identify the Recipient: Check the AutoSys job definition (JIL) for the sap_recipients attribute.
  2. Test without Recipient: Temporarily remove the sap_recipients line from the JIL and re-run the job. If the job succeeds, the recipient list is the confirmed root cause.
  3. Validate in SAP: Log into the target SAP system and client to verify that the Distribution List (DLI) or Recipient exists and is spelled correctly.
  4. Update Job Definition:
    • If the recipient is no longer needed, permanently remove the sap_recipients line.
    • If the recipient is required, coordinate with the SAP Basis team to create the missing list in SAP or update the JIL with a valid recipient name.