Integrating SAP S/4 HANA with Zoho Flow

SAP S/4HANA

What is SAP S/4HANA?

SAP S/4HANA is an ERP (Enterprise Resource Planning) suite that helps businesses manage things like finance, sales, and supply chain in one place. It runs on a database called HANA for real-time processing.

Some important terms

  • OData service - An OData service(Open Data Protocol) is a standard web protocol that allows you to read/write data from SAP using standard URLs and HTTP methods. It acts as a bridge between the SAP system and external applications.


How to connect your SAP S/4HANA account to Zoho Flow 

  1. Select the required trigger or action. If you select a trigger, click Next.

  2. If there are existing SAP S/4HANA connections in your account, click Connect. Otherwise, click +New.



    Alternatively, you can create a new connection by navigating to Settings, then Connections. Click Create connection and choose SAP S/4HANA.

  3. Enter a connection name.

  4. Check the App is installed on-premises box if SAP S/4HANA is accessible within a closed network or intranet. Leave it unchecked if it is accessible over the internet.

    Note: For a cloud database, you need to allow-list Zoho Flow's IP addresses in your inbound rule.

  5. For an on-prem setup, choose an On-Prem agent from the dropdown to create a Zoho Flow connection with your local machine. If you don't already have an agent installed, click +New.

  6. Configure the following fields to create the connection:



    User Name: Your SAP S/4HANA username
    Password: Your SAP S/4HANA password
    Host: Host and Port number of Fiori HTTPS to access ODATA API.
    SAP Client ID: Choose a value from the list of IDs
    000 - Standard delivery client
    100 - Trial and Exploration client
    200 - Ready-to-Activate client
    400 - SAP Best Practices reference client
    API Service: ODATA API service technical name(e.g., API_PRODUCT_SRV). This field value is used only to validate the connection. Ensure that this API service is already registered in SAP S/4HANA.

  7. Once configured, click Authorize.

    Note: To register an API service in SAP S/4HANA, you need to go through the SAP Gateway to activate and register theOData service.


Info
Zoho Flow does not access the SAP S/4HANA database directly. Instead, it integrates using the standard OData APIs provided by SAP.

Steps to register an API service in SAP S/4HANA(On-Prem) 

 Prerequisites   

  • You have access to the SAP GUI and /IWFND/MAINT_SERVICE transaction.

  • You have SAP_ALL or relevant roles to access OData and Gateway services.

 

Here's a step-by-step guide to register an API service in SAP
  1. Login to SAP GUI.

  2. Run the transaction code: /IWFND/MAINT_SERVICE.



  3. When the Activate and Maintain Services screen appears, click Add Service.



  4. In the Add Selected Services screen,
    Enter the System Alias (typically LOCAL for embedded deployments).
    Click Enter.

  5. Search for your OData service name under the Technical Service Name section. You can also leave it blank to show all services.

  6. Once located, select your service, then click Add Selected Services.



  7. In the following dialogue box that appears,
    Assign a Technical Service Name.
            Assign a Package: choose $TMP for temporary local object, if this is for testing.
            Maintain versioning and metadata settings, if required.
            Click Continue  to register the service to the system.



  8. After registration, ensure that the service appears in the list on the /IWFND/MAINT_SERVICE screen.


Triggers and actions available in Zoho Flow
 

Triggers   

Business partner created - Use this trigger when a new business partner is created

Business partner updated - Use this trigger when a business partner is updated

Customer created - Use this trigger when a new customer is created

Maintenance order created - Use this trigger when a new maintenance order is created

Product created or updated - Use this trigger when a product is created or updated

Purchase contract created or updated - Use this trigger when a product contract is created or updated

Purchase order created or updated - Use this trigger when a purchase order is created or updated

Sales contract created or updated - Use this trigger when a sales contract is created or updated

Sales order BOM created or updated - Use this trigger when a sales order's bill of material is created or updated

Sales order created or updated - Use this trigger when a sales order is created or updated

Sales quotation created or updated - Use this trigger when a sales quotation is created or updated

Supplier created - Use this trigger when a new supplier is created

Supplier invoice created - Use this trigger when a new supplier invoice is created

 

Actions

Create business partner - Use this action to create a new business partner

Create business partner address - Use this action to create a business partner address

Create lead - Use this action to create a new lead is created

Fetch business partner - Use this action to fetch business partner details

Fetch customer - Use this action to fetch customer details

Fetch lead - Use this action to fetch lead details

Fetch product - Use this action to fetch product details

Fetch purchase order - Use this action to fetch purchase order details

Fetch sales order - Use this action to fetch sales order details

Fetch supplier - Use this action to fetch supplier details