SAP B1 Service Layer 7 - Inventario icon

SAP B1 Service Layer 7 - Inventario

Interact with SAP B1 Service Layer 7 - Inventario

Overview

This node integrates with the SAP Business One Service Layer (version 7) to manage inventory-related data. Specifically, for the Inventory Posting - Create operation, it allows users to create new inventory posting records in SAP B1 by sending a custom JSON body describing the inventory posting details.

Typical use cases include automating inventory adjustments, recording stock movements, or integrating external inventory systems with SAP B1 to keep inventory postings synchronized. For example, when a warehouse management system registers a stock receipt or issue, this node can create the corresponding inventory posting in SAP B1 automatically.

Properties

Name Meaning
JSON Body The JSON content sent as the request body to create the inventory posting record. This should contain all necessary fields according to SAP B1's Inventory Posting API schema.

Output

  • The node outputs an array of JSON objects, each representing the response from SAP B1 Service Layer for each input item processed.
  • Each output JSON contains the full response from the SAP B1 API after creating the inventory posting.
  • In case of errors, the output JSON will contain an error field with the error message.
  • No binary data is produced by this node.

Dependencies

  • Requires connection credentials to SAP Business One Service Layer, including:
    • Base URL of the SAP B1 Service Layer endpoint.
    • Username and password for authentication.
    • Company database name.
  • The node authenticates by sending a login POST request to /Login endpoint and manages session cookies for subsequent requests.
  • The node uses HTTP methods (POST for creation) to interact with SAP B1 REST API.
  • Requires n8n credential configuration for SAP B1 Service Layer API access.

Troubleshooting

  • Authentication failures: If login fails, check 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 inventory postings in SAP B1. Malformed or incomplete JSON will cause API errors.
  • API errors: The node returns error messages from SAP B1 in the output JSON under the error key. Review these messages to identify issues such as missing required fields or invalid values.
  • Network issues: Verify network connectivity to the SAP B1 Service Layer endpoint and that SSL certificates are trusted if using HTTPS.
  • Session handling: The node manages session cookies internally; if sessions expire quickly, consider adjusting SAP B1 session timeout settings.

Links and References

Discussion