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 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 DocEntry will 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 error key. Use these messages to diagnose issues.

Links and References

Discussion