This is an old revision of the document!
SAP Business One Service Layer using Bizweaver v2.6 and higher
Accessing SAP Business One using the Service Layer is a two-step process. The first step (Login) responds with two cookies. These cookies are then used in any subsequent web service calls in the current processing cycle.
Accessing SAP Business One via the Service Layer is available for HANA on v9.3 only. It is available for both HANA and SQL Server beginning with SAP Business One v10 PL02.
The difference in Bizweaver v2.6 is that a Service Layer global connection can be used to manage much of the detail work. Configuring a Service Layer global connection is described here.
Login Step
Select SAP Service Layer in the “Select Service” drop-down list.
Select Authenticate in the next drop-down to the right.
Select the Authentication Required checkbox.
Select your previously defined Service Layer connection in the “Select Connection” drop-down.
Click the Validate Login link to confirm that your connection is working. If the response is not True, check your connection information and try again.
Interact With Data Steps
Once the workflow has completed a successful login, the remaining steps will use the Interact With Data option.
Select SAP Service Layer in the “Select Service” drop-down list.
Select Interact With Data in the next drop-down to the right.
Select an action from the four options
Query
Add Record
Note the lack of array name. The service layer tool will add the array name, so the only thing needed is the array data.
Add Cumulative data from the data builder step to Values field
When you select fields and save when the tool is reentered, it will only show the selected fields.
To select more fields, refresh the object list and select or remove fields as needed
Patch
Patch is used to update a record in SAP.
Enter the record id that needs updating.
Select the fields that need to be updated.
Enter the values for the selected fields.
When updating records in SAP it is best to update the whole record as opposed to doing a target update. As in most cases, SAP Service Layer will overwrite data in the record instead of adding it to the end.
Delete
More information on the various objects and methods is available on your HANA server using this URL in a browser on your network.
https://<YourServerName>:50000
Working with the Service Layer
Information on sending data through the Service Layer is found here.