SAP B1 Service Layer 11 - Recursos Humanos icon

SAP B1 Service Layer 11 - Recursos Humanos

Interact with SAP B1 Service Layer 11 - Recursos Humanos

Actions10

Overview

This node interacts with the SAP B1 Service Layer 11 specifically for the "Project Management Time Sheet" resource. The Delete operation allows users to remove a specific time sheet entry identified by its unique DocEntry number.

Typical use cases include:

  • Automating the removal of obsolete or incorrect time sheet records from SAP B1.
  • Integrating with other systems where time sheets need to be programmatically deleted based on business logic.
  • Cleaning up test or temporary data during development or maintenance workflows.

For example, if a project manager identifies an erroneous time sheet entry, this node can be used in an n8n workflow to delete that entry automatically by specifying its DocEntry.

Properties

Name Meaning
DocEntry The unique numeric identifier of the time sheet entry to delete. This is required.

Output

The node outputs an array of JSON objects corresponding to each input item processed. For the Delete operation, the output JSON typically contains the response from the SAP B1 Service Layer confirming the deletion or an error message if the deletion failed.

Example output structure:

{
  "json": {
    // Response from SAP B1 Service Layer after deletion,
    // often an empty object or confirmation details.
  },
  "pairedItem": {
    "item": 0
  }
}

If an error occurs during deletion, the output JSON will contain an error field with the error message.

Dependencies

  • Requires connection credentials to the SAP B1 Service Layer API, including:
    • Base URL of the SAP B1 Service Layer.
    • Username and password for authentication.
    • Company database name.
  • The node authenticates via a login POST request to obtain session cookies used in subsequent requests.
  • No additional external dependencies beyond the SAP B1 Service Layer API.

Troubleshooting

  • Authentication errors: If login fails, verify the SAP B1 credentials (username, password, company DB) are correct and that the SAP B1 Service Layer is accessible.
  • Invalid DocEntry: Ensure the DocEntry provided corresponds to an existing time sheet entry; otherwise, the API may return a not found or similar error.
  • Network issues: Connection failures or SSL certificate problems may occur; the node disables strict SSL verification (rejectUnauthorized: false) but network connectivity must be stable.
  • API errors: The SAP B1 Service Layer might return detailed error messages in the response JSON under failure conditions; review these messages to adjust inputs accordingly.

Links and References

Discussion