SAP Service Layer (Purchases) icon

SAP Service Layer (Purchases)

Todas las entidades de Purchases de SAP Service Layer

Overview

This node integrates with the SAP Service Layer to manage various purchase-related documents within SAP Business One. Specifically, for the Purchase Credit Note resource and the Create operation, it allows users to create new purchase credit notes by sending a JSON payload representing the credit note details.

Common scenarios where this node is beneficial include automating the creation of purchase credit notes as part of an accounts payable workflow, integrating external systems that generate credit notes, or bulk-creating credit notes based on external data sources.

For example, a company receiving returned goods from a supplier might use this node to automatically create a purchase credit note in SAP Business One reflecting the return and credit amount.

Properties

Name Meaning
JSON Body The JSON content sent as the request body to create the purchase credit note. This should contain all necessary fields as per SAP Service Layer's Purchase Credit Note schema.

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 creating the purchase credit note. This typically includes the created document's details such as its unique identifier and status.
  • pairedItem: Metadata linking the output to the respective input item.

No binary data 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 n8n environment.

Troubleshooting

  • Authentication errors: If login fails, verify the SAP Service Layer URL, username, password, and company database are correct and that the SAP server is reachable.
  • Invalid JSON Body: Ensure the JSON body matches the expected schema for a purchase credit note in SAP. Malformed or incomplete JSON will cause API errors.
  • API errors: The node returns error messages from the SAP Service Layer in the output JSON under an error field. Review these messages to identify issues such as missing required fields or invalid values.
  • Network issues: Connection timeouts or SSL errors may occur if the SAP Service Layer endpoint is unreachable or has certificate issues. Check network connectivity and SSL settings.

Links and References

Discussion