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-related resources. It allows users to perform various operations such as retrieving, creating, updating, deleting, and managing inventory documents like Inventory Gen Exit, Inventory Gen Entry, Stock Transfers, Items, and more.
For the Inventory Gen Exit resource with the Get by Key operation, the node fetches a specific inventory exit document from SAP B1 by its primary key (DocEntry
). This is useful when you need to retrieve detailed information about a particular inventory exit transaction, for example, to verify stock movements or audit inventory changes.
Practical scenarios include:
- Fetching an inventory exit record to display in a dashboard.
- Validating inventory exit details before processing further business logic.
- Integrating SAP B1 inventory exit data into other systems or workflows.
Properties
Name | Meaning |
---|---|
DocEntry / Key | Primary key of the Inventory Gen Exit document to retrieve. This identifies the exact record. |
Output
The node outputs the JSON response returned by the SAP B1 Service Layer for the requested inventory exit document. The structure corresponds directly to the SAP B1 inventory exit entity, including all its fields and nested objects as defined by SAP.
Example output JSON structure (simplified):
{
"DocEntry": 123,
"DocNum": 456,
"DocDate": "2024-01-01",
"Comments": "Exit due to sales order",
"Lines": [
{
"ItemCode": "A100",
"Quantity": 10,
"WarehouseCode": "WH1"
}
],
...
}
No binary data output is produced by this operation.
Dependencies
- Requires connection to SAP Business One Service Layer API (version 7).
- Needs valid credentials: base URL, username, password, and company database name.
- The node authenticates via a login POST request to obtain session cookies used in subsequent requests.
- The SAP Service Layer must be accessible from the n8n environment.
Troubleshooting
- Authentication errors: If login fails, check that the SAP Service Layer URL, username, password, and company DB are correct and that the SAP server is reachable.
- Invalid DocEntry: If the specified
DocEntry
does not exist, the SAP API will return an error which the node surfaces in the output JSON under anerror
field. - Network issues: Ensure that SSL certificates are valid or configure the node to allow unauthorized certificates if using self-signed certs (the node disables strict SSL verification).
- Permission issues: The SAP user must have permissions to read inventory exit documents.
Links and References
- SAP Business One Service Layer Documentation
- SAP Business One Inventory Management Concepts
- n8n HTTP Request Node Documentation (for understanding underlying request mechanics)