Actions10
- Employees Info Actions
- Project Management Time Sheet Actions
Overview
This node interacts with the SAP B1 Service Layer specifically for managing Project Management Time Sheets. The Update operation allows users to modify an existing time sheet entry identified by a unique key (DocEntry). This is useful in scenarios where time sheet details need correction or updating after initial creation, such as adjusting hours worked, changing project codes, or updating task descriptions.
Practical examples include:
- Updating the number of hours logged on a specific project task.
- Correcting errors in previously submitted time sheets.
- Adding additional notes or metadata to an existing time sheet record.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (number) of the time sheet entry to update. Required for this operation. |
| JSON Body | A JSON object containing the fields and values to update in the time sheet. This represents the request body content sent to the API. |
Output
The output is an array of JSON objects corresponding to each input item processed. Each JSON object contains the response from the SAP B1 Service Layer API after attempting the update operation. Typically, this will include the updated time sheet data or confirmation of the update.
If an error occurs during the update, the output JSON will contain an error field with the error message describing what went wrong.
No binary data output is produced by this node.
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 performs a login request to obtain session cookies used for subsequent API calls.
- The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint.
- No additional external dependencies beyond the configured SAP B1 API credentials.
Troubleshooting
- Authentication failures: If login fails, verify that the provided username, password, and company database are correct and that the SAP B1 Service Layer is accessible.
- Invalid DocEntry: Errors may occur if the specified
DocEntrydoes not exist. Ensure the ID corresponds to an existing time sheet. - Malformed JSON Body: The
JSON Bodymust be valid JSON and conform to the expected schema of the SAP B1 API for time sheets. Invalid or incomplete data can cause API errors. - Network issues: Connection timeouts or SSL errors may happen if the SAP B1 server is unreachable or has invalid certificates. Check network connectivity and SSL settings.
- API permission errors: The authenticated user must have sufficient permissions to update time sheets; otherwise, the API will reject the request.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Service Layer API Reference (search for Project Management Time Sheet endpoints)