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 Delivery Note resource and the Create operation, it allows users to create new purchase delivery notes by sending a JSON payload representing the document details.

Common scenarios where this node is beneficial include automating the creation of purchase delivery notes as part of procurement workflows, integrating external systems with SAP to streamline goods receipt processes, or bulk-creating delivery notes from other data sources.

For example, a company receiving goods from suppliers can automatically generate purchase delivery notes in SAP when shipment notifications arrive, ensuring accurate and timely inventory updates.

Properties

Name Meaning
JSON Body The JSON content sent as the request body to create the purchase delivery note. This should contain all necessary fields according to SAP's Purchase Delivery Note API schema.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains:

  • json: The full JSON response returned by the SAP Service Layer after creating the purchase delivery note. This typically includes details of the created document such as its unique identifier, status, and any metadata returned by SAP.

If an error occurs during the creation process, the output JSON will contain an error field with the error message describing what went wrong.

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 (B1SESSION and optionally ROUTEID) which are used for subsequent API calls.

  • No additional external dependencies beyond the SAP Service Layer API and valid credentials.

Troubleshooting

  • Authentication errors: If login fails, ensure that the provided username, password, and company database are correct and that the SAP Service Layer endpoint is reachable.

  • Invalid JSON Body: Errors may occur if the JSON body does not conform to the expected schema for a purchase delivery note. Validate the JSON structure against SAP's API documentation.

  • Network issues: Connection timeouts or SSL errors might happen if the SAP Service Layer URL is incorrect or if there are network/firewall restrictions.

  • Error messages in output: The node returns error messages in the output JSON under the error key. Review these messages to identify issues such as missing required fields, invalid values, or permission problems.

  • Session handling: The node manages session cookies internally; however, if sessions expire quickly or multiple concurrent requests cause conflicts, consider adjusting SAP Service Layer session settings.

Links and References

Discussion