Actions45
- Inventory Gen Entrie Actions
- Inventory Gen Exit Actions
- Inventory Transfer Request Actions
- Product Tree Actions
- Production Order Actions
Overview
This node interacts with the SAP Business One Service Layer (version 8) specifically for managing production-related documents. The "Delete" operation under the "Production Order" resource allows users to delete a specific production order document identified by its unique key (DocEntry). This is useful in scenarios where a production order was created erroneously or is no longer needed and must be removed from the system.
Practical examples include:
- Removing canceled or obsolete production orders to keep the database clean.
- Automating cleanup of test or temporary production orders during integration workflows.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (document entry number) of the production order to delete. Required. |
Output
The output is a JSON object representing the response from the SAP B1 Service Layer after attempting to delete the specified production order. It typically contains confirmation of deletion or error details if the operation failed.
Example output structure:
{
"json": {
// Response data from SAP B1 Service Layer, e.g., success message or error info
},
"pairedItem": {
"item": 0 // Index of the input item this output corresponds to
}
}
No binary data is produced by this operation.
Dependencies
- Requires an active connection to the SAP Business One Service Layer API (version 8).
- Needs credentials including base URL, username, password, and company database name.
- The node performs a login request to obtain session cookies before making the delete request.
- The environment must allow HTTPS requests with potentially self-signed certificates (
rejectUnauthorized: false).
Troubleshooting
- Authentication errors: If login fails, verify that the provided credentials (username, password, company DB) are correct and that the SAP Service Layer endpoint is reachable.
- Invalid DocEntry: If the
DocEntrydoes not exist or is incorrect, the delete operation will fail. Ensure the document key is valid. - Permission issues: The user account used must have sufficient permissions to delete production orders.
- Network issues: Connection problems or SSL certificate issues may cause request failures; check network connectivity and SSL settings.
- Error messages: The node returns error messages in the output JSON under the
errorfield. Review these messages to identify issues such as invalid parameters or server errors.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Production Orders (general concept)
- n8n HTTP Request Node documentation for understanding request options and error handling.