Actions88
- Purchase Credit Note Actions
- Purchase Invoice Actions
- Purchase Delivery Note Actions
- Purchase Down Payment Actions
- Purchase Order Actions
- Purchase Quotation Actions
- Purchase Request Actions
- Purchase Return Actions
- Purchase Tax Invoice Actions
Overview
This node integrates with the SAP Service Layer to manage various purchase-related entities, including Purchase Requests. Specifically, for the Purchase Request resource and the Reopen operation, it allows users to reopen a previously closed or canceled purchase request by its unique identifier (DocEntry). This is useful in scenarios where a purchase request needs to be reactivated after being closed or canceled, enabling further processing or modifications.
Practical examples include:
- Reopening a purchase request that was prematurely closed to add more items.
- Reactivating a canceled purchase request due to a change in procurement plans.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique numeric identifier of the purchase request to reopen. Required for this operation. |
Output
The node outputs the JSON response returned by the SAP Service Layer API after attempting to reopen the purchase request. This typically includes the updated purchase request object reflecting its new status. If an error occurs, the output JSON contains an error field with the error message.
Example output structure (simplified):
{
"DocEntry": 123,
"Status": "Open",
"OtherFields": "..."
}
If an error happens:
{
"error": "Error message describing what went wrong"
}
No binary data output is produced by this node.
Dependencies
- Requires connection credentials to the SAP Service Layer API, including:
- Base URL of the SAP Service Layer.
- Username and password for authentication.
- Company database name.
- The node performs a login POST request to obtain session cookies used for subsequent API calls.
- The SAP Service Layer must be accessible from the n8n environment.
Troubleshooting
- Authentication errors: If login fails, verify the SAP Service Layer credentials and network connectivity.
- Invalid DocEntry: Providing a non-existent or incorrect
DocEntrywill result in an error from the API indicating the purchase request was not found. - Permission issues: Ensure the user account has sufficient permissions to reopen purchase requests.
- API endpoint errors: If the SAP Service Layer endpoint changes or is unavailable, requests will fail.
- Error messages: The node returns error messages from the SAP API in the output JSON under the
errorkey. Use these messages to diagnose issues.
Links and References
- SAP Business One Service Layer Documentation
- SAP Service Layer API Reference (example link; check your SAP version)