Actions10
- Employees Info Actions
- Project Management Time Sheet Actions
Overview
This node integrates with the SAP B1 Service Layer 11 specifically for Human Resources functionalities. It allows users to perform various operations on resources such as "Employees Info" and "Project Management Time Sheet". For the Project Management Time Sheet resource, the node supports creating, updating, deleting, retrieving all, or retrieving by key time sheet records.
The Create operation for Project Management Time Sheet enables users to add new time sheet entries into the SAP system by sending a JSON payload describing the time sheet details.
Common scenarios:
- Automating time sheet entry creation from external systems or forms.
- Integrating project management tools with SAP to synchronize time tracking data.
- Bulk importing time sheets from CSV or other sources via n8n workflows.
Example:
A company uses an external time tracking app and wants to automatically create corresponding time sheets in SAP B1 whenever a new time entry is logged. This node can be configured to receive the time entry data and create the time sheet record in SAP.
Properties
| Name | Meaning |
|---|---|
| JSON Body | Content to send as the request body when creating or updating a time sheet. This should be a JSON object representing the time sheet fields and values. |
Note: The JSON Body property is only shown for create and update operations (pmt_create, pmt_update).
Output
The node outputs an array of items where each item contains:
json: The JSON response returned by the SAP B1 Service Layer API for the performed operation. For a successful create operation, this typically includes the created time sheet's details or confirmation.pairedItem: Metadata linking the output item to the input item index.
If an error occurs during the request, the output JSON will contain an error field with the error message.
The node does not output binary data.
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 by sending a login POST request to
/Loginendpoint and manages session cookies for subsequent requests. - No additional external dependencies beyond the SAP B1 Service Layer API.
Troubleshooting
- Authentication errors: If login fails, verify that the base URL, username, password, and company database 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 time sheet in SAP B1.
- Permission issues: The user account must have sufficient permissions to create time sheets.
- Network or SSL errors: The node disables strict SSL verification (
rejectUnauthorized: false), but network connectivity and firewall settings must allow access to the SAP B1 Service Layer. - Error messages in output: The node returns error messages in the output JSON under the
errorkey. Review these messages to identify issues such as invalid parameters or server errors.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Service Layer API Reference (example link; check your version)
- n8n Documentation