SAP Knowledge Base Article - Public

2980955 - Web Service QueryEmployeeIn Returns Incorrect Number of Employees

Symptom

You downloaded QueryEmployeeIn WSDL file and imported this file to SOAP UI to get all the employees from the system. When running the query, you get a result response. But you observed that the number of employees is incorrect.

You tried to set the QueryHitsUnlimitedIndicator to false. But then it returned 100 for QueryHitsNumberValue.

Environment

SAP Business ByDesign

Reproducing the Issue

  1. Go to Application and User Management work center
  2. Click on Communication Arrangement view
  3. Select communication arrangement
  4. Click on the hyperlink
  5. Select the relevant query
  6. Click on Download WSDL files
  7. Save it locally
  1. Open SOAP UI
  2. Click Create SOAP Project
  3. Select File > New SOAP Project
  4. Browse file 
  5. Import file you saved in Step 7 above
  6. Click on OK
  7. Click on Binding_SOAP12
  8. Select FindByIdentification
  9. Click on the Request1
  10. Create a copy of this request
  11. Copy and paste the xml
  12. Enter username and password
  13. Click on Submit Request

Cause

The standard service restricts the results to 100.

Resolution

You can set QueryHitsUnlimitedIndicator to true. You can also set the QueryHitsMaximumNumberValue to a higher number. Both fields can be found in the processing conditions node of the query web service.Then it should return the exact number of the employees as QueryHitsNumberValue. It will also contain service agents.

Keywords

queryemployeein, wsdl file, query all employees from system, not exact number of employees, , KBA , SRD-MD-BP , Business Partner , Problem

Product

SAP Business ByDesign all versions