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 documents, including Purchase Tax Invoices. Specifically, the "Close" operation for the "Purchase Tax Invoice" resource allows users to close a purchase tax invoice by its unique identifier (DocEntry). Closing a document typically means marking it as finalized or completed in SAP, preventing further modifications.
Common scenarios where this node is beneficial include automating the workflow of purchase tax invoice processing, ensuring that invoices are properly closed after review or payment, and integrating SAP document lifecycle management into broader automation pipelines.
Practical example:
A company uses n8n to automate their accounting processes. After verifying a purchase tax invoice, they use this node to close the invoice automatically in SAP, signaling that no further changes are expected and triggering subsequent steps like payment processing or reporting.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique numeric identifier of the Purchase Tax Invoice to be closed (required). |
Output
The node outputs a JSON object representing the response from the SAP Service Layer API after attempting to close the specified purchase tax invoice. This typically includes details about the updated document status or confirmation of the close action.
If an error occurs, the output JSON contains an error field with the 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 endpoint.
- Username and password for authentication.
- Company database name.
- The node performs a login request to obtain session cookies used for subsequent API calls.
- The SAP Service Layer must be accessible from the environment where n8n runs.
- No additional external dependencies beyond the SAP Service Layer API and standard HTTP requests.
Troubleshooting
- Authentication errors: If login fails, verify the SAP Service Layer credentials (username, password, company DB) and network connectivity.
- Invalid DocEntry: Ensure the
DocEntrynumber corresponds to an existing purchase tax invoice in SAP; otherwise, the API will return an error. - Permission issues: The user account must have sufficient permissions to close purchase tax invoices.
- API errors: The node returns error messages from the SAP API in the output JSON under the
errorkey. Review these messages to identify issues such as invalid operations or server problems. - SSL issues: The node disables SSL certificate verification (
rejectUnauthorized: false) which may cause security warnings; ensure your SAP Service Layer endpoint is trusted or adjust settings accordingly.