SAP Knowledge Base Article - Public

3285335 - Web-Services Required To Fetch All Worklist Items For An Employee.

Symptom

Web-services required to fetch all worklist items for an employee.

Environment

SAP Business ByDesign

Cause

There are two webservices.These are Released with restrictions

  1. Query Web-service II_TIMX_WRKLIST_SYNC_ACTION_IN
  2. Worklist synchronization Web-service II_TIMX_QUERY_EMPLOYEE_TIME_I

Resolution

In-order to fetch all worklist items of an employee, it’s important to first call the synchronization Web-service (creates all worklist items for employee) followed by the query webservice.

Step #1: Call webservice II_TIMX_WRKLIST_SYNC_ACTION_IN (Operation: SYNCHRONIZE_WORKLIST)
Note: DO NOT FORGET TO COMMIT WORK

Payload Example:
<n0:EmployeeWorklistSynchronizeActionRequest_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<BasicMessageHeader>
<ID>Token 4</ID>
<UUID>*****</UUID>
<ReferenceID>Token 10</ReferenceID>
<ReferenceUUID>*****</ReferenceUUID>
</BasicMessageHeader>
<EmployeeWorklist>
<EmployeeUUID >*****</EmployeeUUID>
<EmployeeID>XXXX</EmployeeID> 
</EmployeeWorklist>
</n0:EmployeeWorklistSynchronizeActionRequest_sync>


Step #2: Call webservice II_TIMX_QUERY_EMPLOYEE_TIME_I (Operation: FIND_PRO_TASK_IN_WRKLIST_BY_EL)

Payload Example:
<n0:EmployeeTimeProjectTaskServiceInWorklistByElementsQuery_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<EmployeeTimeProjectTaskServiceInWorklistSelectionByElements>
<SelectionByEmployeeID>
<InclusionExclusionCode>I</InclusionExclusionCode>
<IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode>
<LowerBoundaryEmployeeID>XXXX</LowerBoundaryEmployeeID>
</SelectionByEmployeeID>
<SelectionByDate>
<InclusionExclusionCode>I</InclusionExclusionCode>
<IntervalBoundaryTypeCode>3</IntervalBoundaryTypeCode>
<LowerBoundaryDate>YYYY1-MM1-DD1</LowerBoundaryDate>
<UpperBoundaryDate>YYYY2-MM2-DD2</UpperBoundaryDate>
</SelectionByDate>
</EmployeeTimeProjectTaskServiceInWorklistSelectionByElements>
</n0:EmployeeTimeProjectTaskServiceInWorklistByElementsQuery_sync>

NOTE: XXXX= Employee ID , ***** = give your UUID/ReferenceUUID/EmployeeUUID

Keywords

Query Web-service , Worklist synchronization Web-service, Released with restrictions , Worklist Items for an Employee , KBA , all worklist items for an employee , query web-servic , released with restrictions , worklist synchronization web-service , SRD-HR-TLM , Time and Labour Management , Problem

Product

SAP Business ByDesign all versions