Kony Fabric allows you to connect and access the BAPI functions inside an ABAP SAP backend via SAP JCo Adapter that was built using sapjco java client. Using SAP JCo adapter, you can explore the BAPI functions inside Business Object Repositories (BOR) and Remote Function Call (RFC) and add them as Kony Fabric operations in the console. When a BAPI function is added as an operation, its corresponding import params and export params are auto-generated as request input params and response output params.
You must load the required Business Application Programming Interface (BAPI) functions to define a SAP service. The BAPI files contain the SAP methods and functions. These methods have the logic defined for a service. A BAPI is a function module as it can be invoked from remote programs such as standalone Java programs, web interfaces, and so on.
Login and Log Out - At design time Kony Fabric generates the LOGIN and LOGOUT services along with BOR's and RFM's in the root explore, by default. Usually every BAPI function execution requires username and password to be sent in the request. If you want to skip passing the user name and password, you can use the LOGIN and LOGOUT operations.
Login - The Login operation contains two input params, username and password, used to skip passing the user name and password for subsequent BAPI function calls. When you make a LOGIN call, the credentials you provide are stored into the middleware session.
Log out - The log out operation is used to remove the stored user name and password from the middleware session.
SAP offers several mechanisms for authenticating users. If there are multiple systems in your system network, using a single sign-on (SSO) environment helps to reduce the number of passwords you must remember. SSO eases user interaction with the available systems, components, and applications . After authentication , users can use the portal to access different systems without repeatedly entering their user information for authentication.
To use SSO login, set the Login Type to SSO Login and provide the values for Portal Host and Portal Port (which are mandatory for SSO login) in connection properties. When you add a BAPI function from an SSO enabled backend as an operation (along with BAPI import params list from backend), two additional input params such as username, password, and a header named SSO-TOKEN are generated by Kony Fabric. Change the scope for username, password, and SSO-TOKEN from request to session.
Note: In SSO Login type, user must call LOGIN before invoking a BAPI function.
To use NON-SSO login, the Login Type must be set to NON-SSO in connection properties. BAPI function of a NON-SSO enabled SAP backend is added as an operation (along with BAPI import param list from backend), two additional input params username and password are generated by Kony Fabric. For every call, the BAPI function is invoked directly by passing the username and password. You can also invoke by changing the scope of username and password input parameters from request to session and using the LOGIN and LOGOUT operations.
To configure your SAP JCO Service in the Integration Service Definition tab, follow these steps:
Fields | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Connection Parameters | Fill in the details for the following fields.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Authentication | Use existing Identity Provider. Select SAP JCO Identity provider from the list. |
Field | Description |
---|---|
Custom Code |
Custom Code enables you to specify dependent JAR. To specify a dependent JAR, select the JAR containing preprocessor or postprocessor libraries from the list, or click Upload New to select the JAR file from your local system. This step allows you to further filter the data sent to the backend. Important: Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration. |
API Throttling |
|
Note: Additional configurations in the advanced section are optional.
The Operations List tab appears only after the service definition is saved.
Note: Click Operations List tab > Configure Operation. The Configured Operations list appears. The New Operation window.
To create an operation, follow these steps:
Under the Operations List tab, click the list to display all the supported operations based on the uploaded SAP JCO file.
Click ADD OPERATION. The system adds your operation to the Operations List tab.
Field | Description |
---|---|
Name | It is pre-populated with the operation name. You can change the name if required. |
Operation Security Level |
It specifies how a client must authenticate to invoke this operation. Select one of the following security operations in the Operation Security Level field.
|
Field | Description |
---|---|
Custom Code Invocation - Preprocessor and Postprocessor (for Java and JavaScript) | You can add pre and post processing logic to modify the request inputs of service. When you test, the service details of various stages in the service execution are displayed for better debugging. For more details, refer to Preprocessor and Postprocessor. |
Properties |
You can configure the additional properties (timeout, cachable, unescape embedded xml in response, response encoding, number of connection retries) for service call time out cache response. |
Front End API | You can map your endpoint/back-end URL of an operation to a front-end URL. |
Server Events | Using Server Events you can configure this service to trigger or process server side events. For detailed information, refer Server Events. |
Note: Additional configurations in the advanced section are optional.
All the request input parameters must be form-url-encoded
.
You can perform the following actions in Request Input tab:
Click Add Parameter to add an entry (if the entries for input and the output tabs do not exist).
To make duplicate entries, select the check box for an entry and click Copy and then click Paste.
To delete an entry, select the check box for the entry and click Delete .
Under the Body tab, perform the following actions:
Field | Description |
---|---|
Name | It contains a unique identifier. Change the name if required. |
Value | Kony Fabric provides four options while configuring an operation. Dependent identity services are auto populated when you edit this field, These options primarily determine the source of the header value . Select an option from the following options.
Note: The field is set to Request, by default. |
Test Value | A test value is used for testing the service. Enter a value. |
Default Value | The default value is used if the test value is empty. Enter a value, if required. |
DATA TYPE | Select one of the following data types.
|
COLLECTION ID | Collection is a group of data, also referred as data set. Enter a collection ID. |
RECORD ID | Enter an ID. |
DESCRIPTION | Provide a suitable description. |
You must provide the custom HTTP headers based on the operation. For example, POST or GET.
Field | Description |
---|---|
Name | Provide custom HTTP headers required by the external source. |
Value | Kony Fabric provides four options while configuring an operation. Dependent identity services are auto populated when you edit this field, These options primarily determine the source of the header value . Select an option from the following options.
Note: The field is set to Request, by default. |
TEST VALUE | A test value is used for testing the service. Enter a value. |
DEFAULT VALUE | The default value will be used if the test value is empty. Change the syntax, if required. |
SCOPE | Select request or session. The field is set to Request, by default. |
Description | Enter the Description for the request input. |
To validate the details, select the environment from the list and click Save and Fetch Response. Refer Test a Service Operation for the steps to test a service. The result of the operation appears.
Click the Response Output tab to configure the fields of the table for displaying the data.
In the Response Output tab, configure the fields of the table for displaying the data:
The Name field in the Response Output tab is pre-populated with the properties of output schema.
Enter the values for required fields such as name, path, scope, data type, collection ID, record ID, format, and format value.
Note: If you define parameters inside a record as a session, the session scope will not get reflected for the parameters.
Note: You can view the service in the Data Panel feature of Kony Visualizer. By using the Data Panel, you can link back-end data services to your application UI elements seamlessly with low-code to no code. For more information on Data Panel, click here.
Note: To use SAP JCO adapter in On-Premises environment, the following artefacts must be placed in the application server -
- sapjco3.jar
- sapjco.dll (if Kony Fabric instance is on Windows) or libso.so (if Kony Fabric instance is on Linux machine).
- SapJCoDestinationProvider.jar
sapjco3.jar and sapjco.dll/libso.so artefacts must be downloaded from SAP site.
Copyright © 2020 Kony, Inc. All rights reserved. |