All product information in wiki.bizagi.com is only valid for Bizagi BPM Suite 9.1.X.
For newer Bizagi BPM Suite versions (10.X and up) please visit the User Guide.
 

How to create a vendor in SAP from Bizagi

From Business Process Management, BPM and Workflow Automation Wiki | BizAgi BPMS

Jump to: navigation, search

<keywords content="keywords"> SAP, Netweaver, SAP R3, R3, SAP Netweaver, SAP transaction, record management, new record, provider, new provider, web service invocation, modify provider, query provider, bapi, rfc, create provider, Bizagi SAP integration, Bizagi SAP, SAP web service, provider creation, master data, master record, master, vendor, vendor master record, new vendor, create vendor </keywords>

Contents

How to create a vendor in SAP from Bizagi

In this article we will describe how to integrate Bizagi with SAP, by having a process in Bizagi create a new master data record in SAP.
For this example, Bizagi will create a vendor in SAP.
This how-to and approach doesn't require programming; this integration is done by using the interfaces wizard in Bizagi.

In SAP, we require that the functions involved in the administration of Vendor master data, are published in a web service.
To do so, either SAP Netweaver's utility to publish web services or SAP's PI component (formerly XI) may be used.
To illustrate this idea, the following diagram represents this how-to's architecture and workings:


In this example we part from having the functions to query and create a vendor already published in a web service.

The process in Bizagi which creates the vendor is SAP is designed as follows:

  1. A user requests the inclusion of a vendor by inputting the vendor's name and code (in Bizagi, the vendor will be addressed as "provider" for this example).
  2. Bizagi queries in SAP if the given vendor (by name and code) already exists.
  3. If the vendor does not exist, the user inputs all the necessary information for a vendor's creation.
  4. When the request is approved by an approving user, then Bizagi creates the vendor in SAP and shows the user the confirmation code.



In this how-to we will illustrate the configuration in Bizagi's interfaces wizard to query if a vendor exists, and to create the new vendor in sap.

Prerequisites

In order to accomplish this integration it is required to:

  • Have the functions in your SAP system that manage the master data in SAP, published as methods in a web service (by using either the SAP PI component or SAP's Netweaver utilities).


Alert: If you are not familiar with publication of SAP functions in a web service, we recommend you to browse SAP's online help to have a guide for this procedure according to your SAP version and installed components.


Configuring the invocation in Bizagi to query a vendor

To configure the web service invocation in Bizagi through the interfaces wizard, go to the sixth step of our Process Wizard in Bizagi (Integrate) and select Define integration interfaces.
For this example, we will configure the "Verify Vendor in SAP" service task to invoke the method which queries if a vendor exists in SAP.





Note: For this shown configuration in the interfaces wizard, we first select SOAP as the service type:




We input the web service's URL and select the corresponding method.


We map the input parameters sent from Bizagi to SAP by dragging and dropping the code and name of the vendor into the expected parameters:


The mapping for the output parameters will allow the vendor's information to be shown in Bizagi (if the vendor exists):


For the last step, we click on finish (error handling will be managed by Bizagi).



Configuring the invocation in Bizagi to create a vendor

To configure the web service invocation in Bizagi through the interfaces wizard, we use the sixth step of our Process Wizard in Bizagi (Integrate) and its option Define integration interfaces.
This time, we choose the "Create Vendor in SAP" service task to configure the invocation of the method which creates a vendor in SAP.





Note: For this shown configuration in the interfaces wizard, we first select SOAP as the service type:




We input the web service's URL and select the corresponding method.


We map the input parameters sent from Bizagi to SAP by dragging and dropping the vendor's detail into the expected parameters:


The mapping for the output parameters will update in Bizagi the confirmation response (and reference number for the created vendor):


For the last step, we click on finish (error handling will be managed by Bizagi).




SAP will return the reference number for the created vendor, and at this point our "Vendor Request" process in Bizagi creates a vendor master data directly in SAP!

The vendor can now be looked for and worked for in SAP system.


Related Topics

<comments/>