SAP B1 Service Layer 3 - CRM icon

SAP B1 Service Layer 3 - CRM

Interact with SAP B1 Service Layer 3 - CRM

Overview

This node integrates with the SAP B1 Service Layer 3 CRM system to perform various operations on CRM resources, including Orders. Specifically, for the Order - Create operation, it allows users to create new sales orders in SAP B1 by sending a JSON payload representing the order details.

Typical use cases include automating order creation from external systems or workflows, syncing e-commerce orders into SAP B1, or programmatically generating orders based on business logic within n8n.

For example, a user can configure this node to receive order data from a webhook or database, then create corresponding sales orders in SAP B1 by providing the order details as JSON.

Properties

Name Meaning
JSON Body The JSON content sent as the request body to create the order. This should contain all necessary order fields according to SAP B1 API requirements.

Output

The node outputs an array of JSON objects, each representing the response from the SAP B1 Service Layer after attempting to create an order. The output JSON contains the created order's details as returned by SAP B1, which typically includes identifiers and status information.

If an error occurs during the request, the output JSON will contain an error field with the error message describing what went wrong.

No binary data is produced by this node.

Dependencies

  • Requires connection credentials to the SAP B1 Service Layer API, including:
    • Base URL of the SAP B1 Service Layer.
    • Username and password for authentication.
    • Company database identifier.
  • The node authenticates by sending a login POST request to /Login endpoint and uses session cookies for subsequent requests.
  • The node sends HTTP requests to SAP B1 endpoints using these authenticated sessions.
  • No additional external dependencies beyond the SAP B1 API and valid credentials.

Troubleshooting

  • Authentication errors: If login fails, verify that the base URL, username, password, and company database are correct and that the SAP B1 Service Layer is accessible.
  • Invalid JSON Body: Ensure the JSON Body property contains valid JSON matching the expected schema for creating an order in SAP B1. Malformed or incomplete data may cause API errors.
  • Network issues: Connection failures or SSL certificate problems may occur if the SAP B1 server is unreachable or has invalid certificates. The node disables strict SSL verification (rejectUnauthorized: false) but network connectivity must be ensured.
  • API errors: The SAP B1 API may return errors for invalid operations, missing required fields, or business logic violations. These errors appear in the output under the error key.
  • Session handling: The node relies on cookies returned from the login response. If SAP B1 changes its authentication mechanism, the node might fail to maintain sessions.

Links and References

Discussion