Actions34
- Inventory Counting Actions
- Inventory Gen Entrie Actions
- Inventory Gen Exit Actions
- Inventory Posting Actions
- Item Actions
- Stock Transfer Actions
Overview
This node interacts with the SAP Business One Service Layer (version 7) specifically for Inventory Posting resources. It allows users to perform various operations such as creating, deleting, updating, and retrieving inventory postings in SAP B1.
A common use case is automating inventory management tasks within SAP B1 from n8n workflows. For example, a user might delete an inventory posting record based on a specific key (DocEntry
) when certain conditions are met in their business process, or create new inventory postings automatically from external data sources.
Properties
Name | Meaning |
---|---|
DocEntry / Key | Primary key of the inventory posting resource. Used to identify the specific record for operations like delete, update, or get by key. |
Output
The node outputs JSON data representing the response from the SAP B1 Service Layer API for the requested operation. The structure depends on the operation:
- For Delete operation: Typically, a confirmation or status message indicating success or failure.
- For Get operations: The full inventory posting object(s) retrieved.
- For Create or Update: The created or updated inventory posting object returned by SAP B1.
If an error occurs during the request, the output JSON will contain an error
field with the error message.
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
- 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 (GET, POST, PATCH, DELETE) to interact with the SAP B1 API endpoints corresponding to inventory postings.
Troubleshooting
Authentication errors: If login fails, ensure that the provided username, password, and company database are correct and that the SAP B1 Service Layer is accessible at the specified base URL.
Invalid DocEntry: Operations requiring a
DocEntry
(like delete) will fail if the key does not exist or is incorrect. Verify the key value before running the node.Network issues: Connection timeouts or SSL errors 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 node returns error messages from SAP B1 API in the output JSON under the
error
field. Review these messages to understand issues like permission problems or invalid payloads.
Links and References
- SAP Business One Service Layer Documentation
- SAP Business One Inventory Posting API Reference (general reference for inventory posting endpoints)