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 in SAP Business One. Specifically, for the Purchase Quotation resource and the Reopen operation, it allows users to reopen a previously closed or canceled purchase quotation by its unique identifier (DocEntry). This is useful in scenarios where a purchase quotation needs to be reactivated for further processing after being closed or canceled.

Practical examples include:

  • Reopening a purchase quotation that was prematurely closed to add new items or update details.
  • Reactivating a canceled purchase quotation if the cancellation was done in error or circumstances have changed.

Properties

Name Meaning
DocEntry The unique numeric identifier of the purchase quotation document to be reopened.

Output

The node outputs a JSON object representing the response from the SAP Service Layer API after attempting to reopen the purchase quotation. This typically includes the updated state of the purchase quotation or an error message if the operation failed.

The output structure is:

{
  "json": {
    // Response data from SAP Service Layer about the reopened purchase quotation
  },
  "pairedItem": {
    "item": <index_of_input_item>
  }
}

If the operation fails, the json field contains an error property with the error message.

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 the SAP Service Layer base URL, username, password, and company database are correct.
  • Invalid DocEntry: If the specified DocEntry does not exist or is invalid, the API will return an error. Ensure the DocEntry corresponds to an existing purchase quotation.
  • Operation not allowed: Attempting to reopen a purchase quotation that is not in a closable or cancelable state may result in an error.
  • Network issues: Connection problems or SSL certificate issues can cause request failures; check network connectivity and SSL settings.
  • Error messages: The node returns error messages from the SAP Service Layer API in the output JSON under the error key. Use these messages to diagnose issues.

Links and References

Discussion