MDG Cloud Ready Mode: Custom Workflow template in SAP build process automation with S/4HANA

Estimated read time 8 min read

Hi All,

Season’s Greetings!!

As we enter 2025, technology space is evolving at a rapid pace with GenAI, Agentic LLM’s findings it’s way in each and every enterprise level application. With Joule taking a bigger role in all SAP cloud applications, MDG has also been integrated with Joule for cloud ready mode with S4HANA 2023 FPS02. Markus discusses this in his blog Key Presentations about SAP Master Data Governance… – SAP Community.

In the blog MDG Cloud ready Mode: Integration of S/4HANA with SAP Build process automation & SAP Build work zone I talked about step-by-step details on how to set up the integration between S/4HANA on-prem to SAP BTP build process automation. In this blog we are going to explore how to set up our own workflow template in build process automation and link it with MDG process template.

INTRODUCTION:

In any MDG implementation, a big part of the design phase is to understand the workflow requirements and create custom workflows in BRF+ to cater to these requirements. In the MDG cloud ready mode also SAP has provided option to create your own Workflow templates. This has to be done in SAP build process automation.

There are however some limitations in terms of the current capabilities. A simple example is currently the control once transferred to MDC process model, can’t be sent back to build process automation workflow. 

The way in which i have setup the custom workflow is little different from what is documented in the SAP help page. You can find it here.Custom Workflow and Visibility (Optional) | SAP Help Portal.

Essentially, I have not taken the standard Workflow template application in Build process automation as base, instead I have created completely different workflow.

PS: I followed the tutorial Create an API Trigger for the Process | SAP Tutorials to create the Build process automation project, so you can refer to this tutorial for step-by-step details.

MAIN CONTENT:

1. Create a blank WF project in build process automation. This workflow will be a trigger-based workflow, where trigger will be provided by the MDG process for cloud ready mode. 

2. For a trigger-based API, we need to define the input data structure of the API which is a data type. MasterDataProcess is the data type which was created with multiple fields.

3.  We have to create the process input to the API trigger; in this case I have kept only the processID as the mandatory input for the trigger.

4. Now we need to create the process artifact, which will take the Approve or Reject decision. In this case again it’s only approval, rejection scenario can also be built on the build process automation side. Approve1 is the decision form 

 

 

The add quoates step, is technical step as the payload to S4HANA need to contain quotes for the WF ID instance. Currently its going without quotes, this might be overcome with future releases.

4. Once this is completed, we need to invoke a particular service SWF_CPWF_NOTIFICATION_SRV which will call S/4HANA and send the Workflow decision and ensure the process continues further. 

This service needs to be added as a dependency to your build process automation project.

This service expects SAP client and the workflow instanceID as input.

5. Once all these steps are completed the build process automation project along with the API triggers need to be deployed.

6. From the monitoring tab we can locate our custom workflow which is deployed and copy the ID.

7. Create a custom process template and in step workflow column paste the ID from step6.

Once this step is completed, the integration between the custom workflow template and the S4HANA MDG cloud ready mode process template is completed.

9. Below are the 2 methods which are useful for troubleshooting any integration issues with your custom workflow.

CONCLUSION:

This blog outlines few of the important steps, needed to deploy a custom workflow template in Build process automation and integrate it with MDG cloud ready mode process template on S4HANA on-prem.

MDG cloud ready mode is the next gen deployment option for Master data governance following the cloud first approach of SAP.

Hope you this blog provides some guidance during your MDG cloud ready mode implementation.

Please share your thoughts and questions if any.

Regards

Anirban

SAP Master Data Governance   SAP Build Process Automation   SAP Build Work Zone, standard edition   SAP S/4HANA   SAP S/4HANA Cloud Private Edition SAP Business Technology Platform   ABAP Cloud   SAP S/4HANA business partner  

 

 

 

 

 

 

 

 

 

 

 

​ Hi All,Season’s Greetings!!As we enter 2025, technology space is evolving at a rapid pace with GenAI, Agentic LLM’s findings it’s way in each and every enterprise level application. With Joule taking a bigger role in all SAP cloud applications, MDG has also been integrated with Joule for cloud ready mode with S4HANA 2023 FPS02. Markus discusses this in his blog Key Presentations about SAP Master Data Governance… – SAP Community.In the blog MDG Cloud ready Mode: Integration of S/4HANA with SAP Build process automation & SAP Build work zone I talked about step-by-step details on how to set up the integration between S/4HANA on-prem to SAP BTP build process automation. In this blog we are going to explore how to set up our own workflow template in build process automation and link it with MDG process template.INTRODUCTION:In any MDG implementation, a big part of the design phase is to understand the workflow requirements and create custom workflows in BRF+ to cater to these requirements. In the MDG cloud ready mode also SAP has provided option to create your own Workflow templates. This has to be done in SAP build process automation.There are however some limitations in terms of the current capabilities. A simple example is currently the control once transferred to MDC process model, can’t be sent back to build process automation workflow. The way in which i have setup the custom workflow is little different from what is documented in the SAP help page. You can find it here.Custom Workflow and Visibility (Optional) | SAP Help Portal.Essentially, I have not taken the standard Workflow template application in Build process automation as base, instead I have created completely different workflow.PS: I followed the tutorial Create an API Trigger for the Process | SAP Tutorials to create the Build process automation project, so you can refer to this tutorial for step-by-step details.MAIN CONTENT:1. Create a blank WF project in build process automation. This workflow will be a trigger-based workflow, where trigger will be provided by the MDG process for cloud ready mode. 2. For a trigger-based API, we need to define the input data structure of the API which is a data type. MasterDataProcess is the data type which was created with multiple fields.3.  We have to create the process input to the API trigger; in this case I have kept only the processID as the mandatory input for the trigger.4. Now we need to create the process artifact, which will take the Approve or Reject decision. In this case again it’s only approval, rejection scenario can also be built on the build process automation side. Approve1 is the decision form   The add quoates step, is technical step as the payload to S4HANA need to contain quotes for the WF ID instance. Currently its going without quotes, this might be overcome with future releases.4. Once this is completed, we need to invoke a particular service SWF_CPWF_NOTIFICATION_SRV which will call S/4HANA and send the Workflow decision and ensure the process continues further. This service needs to be added as a dependency to your build process automation project.This service expects SAP client and the workflow instanceID as input.5. Once all these steps are completed the build process automation project along with the API triggers need to be deployed.6. From the monitoring tab we can locate our custom workflow which is deployed and copy the ID.7. Create a custom process template and in step workflow column paste the ID from step6.Once this step is completed, the integration between the custom workflow template and the S4HANA MDG cloud ready mode process template is completed.9. Below are the 2 methods which are useful for troubleshooting any integration issues with your custom workflow.CONCLUSION:This blog outlines few of the important steps, needed to deploy a custom workflow template in Build process automation and integrate it with MDG cloud ready mode process template on S4HANA on-prem.MDG cloud ready mode is the next gen deployment option for Master data governance following the cloud first approach of SAP.Hope you this blog provides some guidance during your MDG cloud ready mode implementation.Please share your thoughts and questions if any.RegardsAnirbanSAP Master Data Governance   SAP Build Process Automation   SAP Build Work Zone, standard edition   SAP S/4HANA   SAP S/4HANA Cloud Private Edition SAP Business Technology Platform   ABAP Cloud   SAP S/4HANA business partner               Read More Technology Blogs by Members articles 

#SAP

#SAPTechnologyblog

You May Also Like

More From Author