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 "Cancel" operation on the "Production Order" resource allows users to cancel an existing production order document in SAP B1.

Typical use cases include:

  • Automating cancellation of production orders that are no longer needed or were created by mistake.
  • Integrating SAP B1 production workflows with other systems where cancellation triggers need to be synchronized.
  • Managing production lifecycle states programmatically within n8n workflows.

For example, a manufacturing company could use this node to automatically cancel production orders when a related sales order is canceled in another system.

Properties

Name Meaning
DocEntry The unique identifier (document entry number) of the production order to be canceled.

Output

The node outputs JSON data representing the response from the SAP B1 Service Layer after attempting to cancel the production order. This typically includes confirmation of the cancellation or error details if the operation failed.

Output structure example (simplified):

{
  "json": {
    // Response object from SAP B1 Service Layer for the cancel operation
  },
  "pairedItem": {
    "item": 0 // Index of the input item processed
  }
}

No binary data output is produced by this node.

Dependencies

  • Requires connection credentials to SAP Business One Service Layer API, including:
    • Base URL of the SAP B1 Service Layer endpoint.
    • Username and password for authentication.
    • Company database name.
  • The node performs a login request to obtain session cookies used for subsequent API calls.
  • The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint.
  • No additional external dependencies beyond the configured SAP B1 API credentials.

Troubleshooting

  • Authentication errors: If login fails, verify the username, password, and company database values are correct and that the SAP B1 Service Layer is accessible.
  • Invalid DocEntry: Providing a non-existent or incorrect DocEntry will result in an error from the SAP API indicating the document was not found.
  • Permission issues: Ensure the user account has sufficient permissions to cancel production orders.
  • Network issues: Connection timeouts or SSL errors may occur if the SAP B1 endpoint is unreachable or uses self-signed certificates. The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity must still be ensured.
  • Error messages returned in the output JSON under error field can help diagnose specific API failures.

Links and References


This summary focuses on the "Cancel" operation for the "Production Order" resource as requested.

Discussion