Executing the Process is a vital part when integrating any applications. This Document will let the users to understand how the integration process can be executed through workflow for
adding Order from
Magento2 to SAPB1.
After Adding and Updating the inventory of the product in Magento2, an order has been placed which needs to be synced in SAP Business One. Therefore, a workflow has been designed as shown above, to sync all the orders in SAP Business One that are created in Magento2.
Click here to know about the process of creating an order in Magento2.
On Placing the order, the same needs to be fully completed by generating Invoice and Shipment. The Orders will only be synced when the status of the order is completed fully.
- Only Order is created - The status would be Pending.
- Order + Invoice - The status will be Processing
- Order + Invoice + Shipment - The status of the order will be Completed.
In this case, the Order has been placed in the name of Paul M Berry (customer) in Magento2.
The lookup Mapping for the Freight and Tax is needed to be done as the rates and the values differ. The Mapping should be done as shown below.
The destination value ‘exempt’ is needed to be created in the SAP Business One.
- To create the tax value in SAP Business One, Navigate to Administration Module > Setup > Financials > Tax > Sales Tax Codes. The Sales Tax Codes - Setup Window Opens.
- Add a new Tax Code under the type State which can be selected from drop down option Available.
Click here to know more about the Tax Code – Setup Window.
Following the Provided Mapping, the user can sync the Order Add Workflow from Magento2 to SAP Business One. To know more, see Mapping & Transformation Techniques.
Mapping for the
a. CardCode: This is mapped with the variable Customer Email Query for fetching the customer Email. b. U_WEBORDID: This is mapped with Entity ID of Magento2.
- The Root Variables should be arranged as given below:
Executing the Workflow Integration
Note: Before integrating with Magento2 and SAP Business One, make sure all the Master Data Touchpoints are synced.
- Once the workflow is designed,
Update the Configurationin agent for deploying the workflow in the agent.
- Click on the run button in the workflow panel in the cloud portal.
- Once the Execution is finished, click on the Resync Button in the agent. The Resync Panel shows the Success Result in the agent. The User can also trigger or Deploy the workflow from the agent by clicking on the run button.
Integration Data Survey
The user can survey the data by viewing the Processed Snapshot from the node level of the workflow. This Snapshot View displays the successful execution of the workflow. The Sales Order with the source id 56 is successfully synced to SAP Business One with its destination ID as 74.
The user can view the sales order in the SAP Business One Client by navigating to Sales - A/R > Sales Order.
Frequency of Use
The user can execute the Integration through workflow as and when required.
- Error: Details: “Specify valid tax code”.
This error occurs when the Lookup mapping is not done or has not been done accurately. For troubleshooting this error, please go through the Lookup mapping section in this document.
Doing this, the user can successfully integrate this workflow.