To Add a BWF System as a Task Provider
Define trust between Gateway and the SAP system.
Create an RFC destination to connect to the SAP system. If there is already an RFC connection, proceed with step 3. To create the RFC destination, perform the following steps 2a until 2h:
Log on to the Gateway system.
Note
User credentials are required.Run transaction SPRO.
Navigate to SAP Reference IMG→ABAP Platform→SAP Gateway→OData Channel→Configuration→Connection Settings→SAP Gateway to SAP System→Manage RFC Destinations.

Choose Create.

Enter the following details:
Details for an RFC Connection
Field Description RFC Destination
Enter a unique ID for the RFC destination
Connection Type
3 (ABAP connection)
Description 1
RFC destination for SAP system

Select Load Balancing to yes and provide the following details.
Load Balancing Details
Field Description Target System SID Msg. Server server name of the system Enter the group of the system On the Logon & Security tab, enter the SAP system's client number, activate Current User, and for Trust Relationship choose Yes.
Note
Ensure that the trusted relationship for the system is created already.Save your settings and test the connection.

Configure SSO using assertion tickets.
Create an SAP system alias to be used by the Taskprocessing service. To create the SAP system alias:
Navigate to SAP Reference IMG→ABAP Platform→SAP Gateway→OData Channel→Configuration→Connection Settings→SAP Gateway to SAP System→Manage SAP System Aliases.

Choose New Entries. Enter the following details for the system alias and then save your settings.

Details for the System Alias
Field Description SAP System Alias
Unique Name of the system alias
Description
Descriptive text for the system alias
For Local App
Check the box
RFC Destination
Specify the RFC destination defined for your SAP system
Software Version
For BWF : /IWPGW/BWF

Save.
Assign the SAP system alias to the Taskprocessing OData service. To do so:
Navigate to SAP Reference IMG→ABAP Platform→SAP Gateway→OData Channel→Administration→General Settings→Activate and Maintain Services.

Click on the Filter icon and filter for External Service Name: Taskprocessing.

Double-click Task gateway Service Version 2.0. You can see the system aliases added to this service.

To add a new system alias, select Add System Alias.

Click on New Entries. In the SAP System Alias field, provide the ID of the system alias that you want to add and press Enter.
Save.
Add a BWF system as a task provider in a embedded System
Do the same configuration steps on your system and add a local RFC and System Alias.

