SAP Knowledge Base Article - Public

3804038 - Automatic batch determination is not triggered in outbound delivery created via Sales Scheduling Agreement API via API in SAP S/4HANA Cloud Public Edition

Symptom

When creating a consignment issue using the Consignment Issue for Sales Scheduling Agreement - Create (B2B) API, the outbound delivery is created successfully.

However, automatic batch determination is not triggered for the delivery item.

The following behavior may also be observed:

  • Batch determination works when the API is executed with a different communication user.
  • Manual batch determination for the created delivery is successful.
  • No functional error is returned by the API.
  • The behavior can also occur when the API is called directly, without an integration middleware.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Configure the communication arrangement for the Sales Scheduling Agreement API.
  2. Execute the Consignment Issue for Sales Scheduling Agreement - Create (B2B) API for a batch-managed material.
  3. The consignment issue and outbound delivery are created successfully.
  4. Open the generated outbound delivery.
  5. Observe that no batch has been automatically determined for the relevant delivery item.
  6. Manual batch determination may still successfully determine a batch.

Cause

The communication user executing the API does not have sufficient communication-scenario authorization coverage for subsequent processing required during outbound delivery and batch determination.

As a result, the API request itself can complete successfully and create the delivery, while authorization-dependent processing performed during automatic batch determination is not completed.

Resolution

Review the communication scenarios and communication arrangements assigned to the communication system/user executing the API.

Ensure that the communication user has the required communication scenarios not only for creating the Sales Scheduling Agreement consignment issue, but also for the subsequent processing performed during outbound delivery creation.

In the observed scenario, maintaining the relevant Delivery Processing Integration communication arrangement (SAP_COM_0106) for the affected communication setup resolved the behavior and automatic batch determination was subsequently performed successfully.

If the behavior persists, compare the communication arrangements and authorization coverage of a working communication user with the affected communication user.

See Also

Keywords

automatic batch determination, batch not determined, outbound delivery, consignment issue, Sales Scheduling Agreement, SAP_COM_0106, SAP_COM_0382, communication arrangement, communication user, communication scenario, batch split, API, S/4HANA Cloud Public Edition , KBA , SD-SLS-API-2CL , APIs for Sales Documents (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions