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 operations. Specifically, for the Inventory Gen Exit resource and the Create operation, it allows users to create new inventory exit documents in SAP B1. This is useful in scenarios where inventory items are leaving stock due to sales, transfers, or other reasons, and you want to automate or streamline this process via n8n workflows.

Practical examples include:

  • Automatically creating inventory exit records when a sales order is confirmed.
  • Integrating warehouse management systems to update inventory exits in SAP B1.
  • Generating inventory exit documents based on external triggers or events.

Properties

Name Meaning
JSON Body The JSON content to send as the request body when creating an Inventory Gen Exit document. This should contain all necessary fields according to SAP B1 API specifications for an inventory exit.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains:

  • json: The response from the SAP B1 Service Layer API after attempting to create the inventory exit document. This typically includes details of the created document such as its keys and status.
  • In case of errors, the json field will contain an error property with the error message describing what went wrong.

No binary data output is produced by this node.

Dependencies

  • Requires connection credentials to the SAP Business One Service Layer API, including:
    • Base URL of the SAP B1 Service Layer.
    • Username and password for authentication.
    • Company database name.
  • The node performs a login request to obtain session cookies which are used for subsequent API calls.
  • The node uses HTTP requests with JSON payloads to interact with the SAP B1 API.
  • No additional external dependencies beyond the configured 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 an inventory exit document in SAP B1. Invalid or incomplete data may cause API errors.
  • API errors: The node returns error messages from the SAP B1 API in the output. Common issues include missing required fields, invalid document keys, or permission issues.
  • SSL issues: The node disables strict SSL verification (rejectUnauthorized: false) for requests. If your environment requires strict SSL, adjust accordingly.
  • Session handling: The node extracts session cookies from the login response headers. If SAP B1 changes cookie names or authentication mechanisms, the node might fail to authenticate.

Links and References


If you need further details about other operations or resources, feel free to ask!

Discussion