SAP Knowledge Base Article - Public

2568317 - How to Add Custom Validations and Messages to Time Sheet Validation for Employee

Symptom

Validation process of time recording in the time sheet of the employee

Environment

On all versions of SAP Business ByDesign

Reproducing the Issue

1- Open SAP Business ByDesign system

2- Go to WoC Overview

3- Go to WoC View Self-Service Overview

4- Click on link Time Sheet under session Time

5- Configure the activities, jobs and time that this Employee will work and release the edition by clicking on button Release

6- You want to add custom validations and messages based on the Employee Time Sheet provided, but you do not know how or the current development maded is not working as expected

Cause

Additional validations or/and messages during the validation of Employee Self-Service Overview Time Sheet configured can only be acheived by creating and configuring a Enhancement Implementation on a custom solution using SDK.

Resolution

1- Add a Enhancement Implementation component to your custom solution

2- On field Namespace select http://sap.com/xi/AP/TimeAndLabourManagement/Global

3- On field Business Object select EmployeeTime

4- On field Enhacement Option select Validate Times

5- Under the Enhancement Implementation configured, use the script file VALIDATE.absl to write your logic to add your validations and messages

6- Under the Enhancement Implementation configured, use the BADI filter component ABCDEF.flrt to configure the conditions based on parameters

Keywords

Enhancement Implementation; http://sap.com/xi/AP/TimeAndLabourManagement/Global; EmployeeTime; Validate Times; Time Sheet; , KBA , SRD-HR-TLM , Time and Labour Management , How To

Product

SAP Business ByDesign all versions