K2 connect Test Cockpit

The K2 connect Test Cockpit is a development tool that enables the developer to run queries against the SAP BAPIs. The Test Cockpit returns a data table in response to parameters provided by the user. And in essence is used to verify at design time that the data returned is correct when provided with the current user credentials and display the data that would eventually become available in the published ServiceObject. The Test Cockpit also enables a developer to determine what parameters are required to return data from the BAPI.

The method used by the K2 connect Test Cockpit to interact with SAP, is not the same as the method used by the K2 connect Service at run time. Owing to this, unless the correct SAP permissions are implemented by the SAP Administrator, the K2 connect Service instance may return errors when the service calls to SAP are executed.

Access the Test Cockpit

To access the Test Cockpit:

  1. Click on the icon as illustrated in the image below from the BAPI Function in the K2 Service Object Designer in Visual Studio.
  2. This will open the K2 connect Test Cockpit window.

Use the Test Cockpit

The Input and Output panes only populate when the Load Interface button is clicked. To load the BAPI references three options are configured, namely:

  1. Destination i.e. the SAP Instance where the BAPI is located
  2. User Credentials
  3. Function Name

The K2 connect Test Cockpit assists the developer in determining whether the input query will return the correct data to the ServiceObject.

Once the 3 items below are configured, the detail required will display in the K2 connect Test Cockpit.

Item Description
Destination Drop down selection for the Destination (SAP Instance) BAPI against which a query will be run. Any BAPI, provided it has been published can be accessed from the Test Cockpit.
User Credentials User access to the BAPI is achieved via either entering a set of credentials or using 'Predefined User Credentials'. Depending on the set of credentials entered this will determine if the BAPI can be accessed and data returned. Where credentials are incorrect or the user has not been given access rights, no access will be allowed.
Function Name The BAPI name, not the friendly name against which the query will be run.
Information Details about the query execution
Load Interface Loads the user interface once the BAPI has been selected and credentials have been passed successfully to the service enabling access.
Execute Executes search parameters.
Roll back Reverts the system back to its previous state.
Commit Work Changes to the system are committed.
Input / Output The Input / Output panes populate with details from the BAPI's once the interface is loaded.

K2 CONNECT PRODUCT DOCUMENTATION4.6.11
Video Links Learn Support
No videos found for this article
K2 on YouTube
No Additional links found for this article
No self-learning content for this article
Try some scenarios...
No relevant support links available for this article