SAP B1 Service Layer 8 - Produccion icon

SAP B1 Service Layer 8 - Produccion

Interact with SAP B1 Service Layer 8 - Produccion

Overview

This node interacts with the SAP Business One Service Layer (version 8) specifically for production-related resources. The "Create Cancellation" operation under the "Production Order" resource allows users to create a cancellation document for an existing production order in SAP B1.

Typical use cases include:

  • Automating the cancellation of production orders that are no longer needed or were created by mistake.
  • Integrating SAP B1 production order management into broader workflows, such as ERP automation or manufacturing process control.
  • Ensuring accurate production records by programmatically managing cancellations without manual intervention.

For example, a manufacturing company could use this node to automatically cancel production orders when a change request is received from the sales department, keeping the system synchronized and reducing errors.

Properties

Name Meaning
DocEntry The unique identifier (document entry number) of the production order to cancel. This is required to specify which production order's cancellation document should be created.

Output

The node outputs JSON data representing the response from the SAP B1 Service Layer after attempting to create the cancellation document. This typically includes details about the newly created cancellation document or error information if the operation failed.

The output structure is:

{
  "json": {
    // Response object from SAP B1 Service Layer API,
    // e.g., confirmation of cancellation document creation or error message
  },
  "pairedItem": {
    "item": <index_of_input_item>
  }
}

No binary data output is produced by this node.

Dependencies

  • Requires connection to an SAP Business One Service Layer instance (version 8).
  • Needs credentials including base URL, username, password, and company database name to authenticate via SAP B1 login endpoint.
  • The node uses HTTP requests with session cookies obtained from the login response to perform operations.
  • The user must configure an API key credential or equivalent authentication method in n8n to provide these details securely.

Troubleshooting

  • Authentication failures: If login credentials are incorrect or the SAP B1 Service Layer is unreachable, the node will fail to obtain session cookies, resulting in errors. Verify credentials and network connectivity.
  • Invalid DocEntry: Providing a non-existent or incorrect DocEntry will cause the API call to fail. Ensure the document entry number corresponds to an existing production order.
  • Permission issues: The authenticated user must have sufficient permissions to create cancellation documents in SAP B1.
  • API endpoint errors: If the SAP B1 Service Layer version changes or the endpoint /CreateCancellationDocument is deprecated, the node will return errors. Confirm compatibility with your SAP B1 version.
  • Error messages: Errors returned from SAP B1 are included in the output JSON under the error field. Review these messages for specific causes.

Links and References

Discussion