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 interacts with the SAP Service Layer to manage purchase-related documents, specifically here focusing on "Purchase Credit Notes." The "Create Cancellation" operation allows users to create a cancellation document for an existing purchase credit note identified by its unique DocEntry. This is useful in scenarios where a previously issued purchase credit note needs to be reversed or invalidated due to errors, changes in agreements, or other business reasons.
Practical examples include:
- Automatically generating cancellation documents when a supplier issues a correction.
- Integrating with ERP workflows to maintain accurate financial records by cancelling erroneous credit notes.
- Streamlining purchase document management by programmatically handling cancellations without manual intervention.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (number) of the Purchase Credit Note to create a cancellation for. |
Output
The node outputs a JSON object representing the response from the SAP Service Layer API after attempting to create the cancellation document. This typically includes details about the newly created cancellation document or error information if the operation failed.
The output structure is:
{
// Response data from SAP Service Layer for the cancellation creation
}
If the operation fails, the output JSON will contain an error field with the error message.
No binary data output is produced by this operation.
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 identifier.
- The node performs a login request to obtain session cookies used for subsequent API calls.
- The SAP Service Layer must support the
CreateCancellationDocumentaction on Purchase Credit Notes.
Troubleshooting
- Authentication Errors: If login fails, verify that the provided username, password, and company database are correct and that the SAP Service Layer endpoint is reachable.
- Invalid DocEntry: Providing a non-existent or incorrect
DocEntrywill result in an error from the SAP API. Ensure theDocEntrycorresponds to an existing purchase credit note. - Permission Issues: The user account must have sufficient permissions to create cancellation documents in SAP.
- Network Issues: Connection problems or SSL certificate issues may cause request failures. The node disables strict SSL verification (
rejectUnauthorized: false), but network connectivity must still be stable. - Error Messages: Errors returned from SAP are passed through in the output's
errorfield. Review these messages for specific causes such as invalid parameters or business logic constraints.