Actions34
- Inventory Counting Actions
- Inventory Gen Entrie Actions
- Inventory Gen Exit Actions
- Inventory Posting Actions
- Item Actions
- Stock Transfer Actions
Overview
This node integrates with the SAP B1 Service Layer 7 to manage inventory-related operations, specifically focusing on Inventory Counting when the "Create" operation is selected. It allows users to create new inventory counting records in SAP Business One by sending custom JSON data representing the inventory counting details.
Common scenarios where this node is beneficial include automating inventory management workflows, synchronizing inventory counts from external systems into SAP B1, or programmatically creating inventory counting documents based on scanned or collected stock data.
For example, a warehouse management system could use this node to automatically create inventory counting entries in SAP B1 after a physical stock count is completed, ensuring that SAP's inventory records are up-to-date without manual data entry.
Properties
Name | Meaning |
---|---|
JSON Body | The JSON content to be sent as the request body when creating (or updating) an inventory counting record. This should contain all necessary fields as per SAP B1 API requirements for inventory counting creation. |
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 call.- On success, this will be the newly created inventory counting record data returned by SAP B1.
- On failure, it will contain an
error
field with the error message describing what went wrong.
No binary data output is produced by this node.
Dependencies
- Requires access to a SAP B1 Service Layer API endpoint.
- Needs credentials 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 (
B1SESSION
andROUTEID
) which are used for subsequent API calls. - The environment must allow HTTPS requests to the SAP B1 Service Layer, with TLS certificate verification disabled (
rejectUnauthorized: false
), likely due to self-signed certificates.
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 JSON Body: Ensure the JSON Body property contains valid JSON matching SAP B1's expected schema for inventory counting creation.
- API endpoint errors: Errors returned from SAP B1 will appear in the output under the
error
key. Check the error message for details such as missing required fields or invalid data formats. - Session cookie issues: If session cookies are not properly retrieved, subsequent requests will fail. Confirm that the login response includes the expected cookies.
- Network issues: Connection problems or SSL errors may occur if the SAP B1 server is unreachable or has certificate issues.
Links and References
- SAP Business One Service Layer API Documentation
- SAP B1 Inventory Counting API Reference (consult your version-specific docs)
- n8n HTTP Request Node documentation for understanding request options and error handling: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/
This summary focuses exclusively on the "Inventory Counting" resource with the "Create" operation, reflecting the provided properties and source code logic.