SAP B1 Service Layer 8 - Produccion icon

SAP B1 Service Layer 8 - Produccion

Interact with SAP B1 Service Layer 8 - Produccion

Overview

This node interacts with the SAP B1 Service Layer 8 for production-related resources, specifically here focusing on the Product Tree resource with an Update operation. It allows users to update existing product tree documents in SAP Business One by specifying the document key and providing the updated content as a JSON body.

Common scenarios include:

  • Modifying the structure or details of a product tree after its initial creation.
  • Adjusting component quantities or attributes within a product tree.
  • Synchronizing changes from external systems into SAP B1 product trees.

Practical example:

  • A manufacturing company wants to update the bill of materials (BOM) for a product due to a design change. Using this node, they provide the DocEntry of the product tree and a JSON payload describing the new components or quantities, which updates the product tree directly in SAP B1.

Properties

Name Meaning
DocEntry The unique identifier (document entry number) of the product tree document to update.
JSON Body The JSON content representing the fields and values to update in the product tree.

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 B1 Service Layer API after attempting the update. This typically includes the updated product tree data or confirmation of the update.
  • In case of errors, the json field contains an error property with the error message.

No binary data is produced by this node.

Dependencies

  • Requires connection credentials to SAP B1 Service Layer API, including base URL, username, password, and company database name.
  • The node performs a login request to obtain session cookies before making subsequent API calls.
  • The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint.
  • No additional external dependencies beyond standard HTTP requests.

Troubleshooting

  • Authentication failures: If login fails, verify that the provided credentials (username, password, company DB) are correct and that the SAP B1 Service Layer is accessible.
  • Invalid DocEntry: Errors may occur if the specified DocEntry does not exist or is invalid. Confirm the document key is correct.
  • Malformed JSON Body: Ensure the JSON body is well-formed and matches the expected schema for updating a product tree in SAP B1.
  • Network issues: Connection timeouts or SSL errors can happen if the SAP B1 server is unreachable or has certificate issues. Check network connectivity and SSL settings.
  • API errors: The SAP B1 API might return errors for business logic violations (e.g., trying to update a locked document). Review the error messages returned in the output for guidance.

Links and References

Discussion