SAP B1 Service Layer 8 - Produccion icon

SAP B1 Service Layer 8 - Produccion

Interact with SAP B1 Service Layer 8 - Produccion

Overview

This node integrates with the SAP B1 Service Layer 8 - Produccion API to manage various business documents and entities within SAP Business One. Specifically, for the Product Tree resource with the Create operation, it allows users to create new product tree records by sending a JSON payload representing the product tree details.

Common scenarios where this node is beneficial include automating the creation of product trees in SAP B1 as part of manufacturing or production workflows, integrating external systems that define product structures, or bulk uploading product tree data.

For example, a manufacturing company could use this node to automatically create product trees when new products are designed in an external system, ensuring SAP B1 always has up-to-date product structure information without manual entry.

Properties

Name Meaning
JSON Body Content to send as the request body when creating or updating a Product Tree. This should be a JSON object representing the product tree details according to SAP B1's API schema.

Output

The node outputs an array of JSON objects corresponding to each input item processed. For the Create operation on Product Trees, the output JSON contains the response from the SAP B1 Service Layer API after attempting to create the product tree. This typically includes details of the created product tree record or error information if the creation failed.

No binary data output is produced by this node.

Example output JSON snippet (simplified):

{
  "DocEntry": 123,
  "Code": "PT001",
  "Description": "Sample Product Tree",
  ...
}

Or, in case of error:

{
  "error": "Detailed error message from SAP B1 API"
}

Dependencies

  • Requires connection credentials to SAP B1 Service Layer API, including:
    • Base URL of the SAP B1 Service Layer.
    • 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 B1 Service Layer API and valid credentials.

Troubleshooting

  • Authentication errors: If login fails, verify the base URL, username, password, and company database values are correct and that the SAP B1 Service Layer is accessible.
  • Invalid JSON Body: Ensure the JSON Body property contains valid JSON matching the expected schema for a product tree in SAP B1. Malformed or incomplete JSON will cause API errors.
  • API endpoint errors: Errors such as "Not Found" or "Bad Request" may indicate incorrect resource names or malformed requests. Double-check the resource and operation parameters.
  • SSL issues: The node disables strict SSL verification (rejectUnauthorized: false), but network or proxy issues might still block requests.
  • Error messages: The node returns error messages from the SAP B1 API in the output JSON under the error key. Use these messages to diagnose issues.

Links and References

Discussion