How to run a query using the K2 connect TestCockpit

See the preceding topic for details on how to create the service object: Create a Service Method. The K2 connect Test Cockpit is a data query tool that runs queries at design time against the local SAP Instance.

  1. To open the K2 Test Cockpit, right click on the BAPI method in the explorer or click on the Test Cockpit icon from the Service Object Designer.
  2. This example will use the K2 connect Service Object Service.
  3. Click on the icon on the right to load the K2 connect Test Cockpit.
  4. The K2 connect Test Cockpit will load. Once it has loaded select Load Interface and the K2 connect Test Cockpit will populate as shown below.
  5. From the Input section, scroll down and enter a date (today's date can be used).
  6. To perform a search for example All employees with their first name starting with A, scroll down to FirstName_M and enter A*. Click Execute.
  7. Minimize the Input section. From the Output section, locate PERSONAL_DATA and click Show Details.
  8. To view the contents of the returned data structure, scroll from left to right.