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 purchase-related documents in SAP Business One. Specifically, for the Purchase Return resource and the Update operation, it allows users to update an existing purchase return document by specifying its unique identifier (DocEntry) and providing the updated data in JSON format.
Common scenarios where this node is beneficial include:
- Automating updates to purchase return documents based on external triggers or workflows.
- Synchronizing purchase return data between SAP Business One and other systems.
- Modifying details of a purchase return without manual entry in SAP.
For example, you might use this node to update the quantities or reasons for returned items after receiving new information from a warehouse system.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (number) of the purchase return document to update. |
| JSON Body | The JSON content representing the fields and values to update in the purchase return. |
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 Service Layer API after attempting the update. This typically includes the updated purchase return document data or an error message if the update failed.pairedItem: Metadata linking the output to the input item index.
The node does not output binary data.
Dependencies
- Requires connection credentials to the SAP Service Layer API, including:
- Base URL of the SAP Service Layer endpoint.
- Username and password for authentication.
- Company database name.
- The node performs a login request to obtain session cookies used for subsequent API calls.
- No additional external dependencies beyond the SAP Service Layer API and valid credentials.
Troubleshooting
- Authentication errors: If login fails, verify that the base URL, username, password, and company database are correct and that the SAP Service Layer is accessible.
- Invalid DocEntry: If the specified
DocEntrydoes not exist or is incorrect, the update will fail. Confirm the document ID before running the node. - Malformed JSON Body: Ensure the JSON body is correctly formatted and contains valid fields as expected by the SAP Service Layer for purchase returns.
- Permission issues: The user account must have sufficient permissions to update purchase return documents.
- Network or SSL issues: The node disables SSL verification (
rejectUnauthorized: false), but network connectivity problems or firewall restrictions may still cause failures.
Error messages returned from the SAP Service Layer API are included in the output under the error field when exceptions occur.
Links and References
- SAP Business One Service Layer Documentation
- SAP Service Layer API Reference (consult for exact JSON structure and fields for Purchase Returns)