SWE2 to link BUS2240.START_STEP_WF, create standard tasks in PFTC for CL_MDC_WF_PROCESS_URL methods GET_PROCESS_URL and GET_RECORDS_URL, bu"> SWE2 to link BUS2240.START_STEP_WF, create standard tasks in PFTC for CL_MDC_WF_PROCESS_URL methods GET_PROCESS_URL and GET_RECORDS_URL, bu">

SAP MDG · COMMUNITY

How do I integrate SAP Business Workflow as a local workflow engine in SAP MDG Cloud-Ready Mode?

From MDG on SAP S/4HANA 2023 FPS02, you can trigger a local SAP Business Workflow for a selected MDG process step instead of a BTP workflow. The example uses BUS2240.START_STEP_WF, standard tasks based on CL_MDC_WF_PROCESS_URL, and a Send Mail step to deliver approval links for the MDG process and related records.

From MDG on SAP S/4HANA 2023 FPS02, you can trigger a local SAP Business Workflow for a selected MDG process step instead of a BTP workflow. The example uses BUS2240.START_STEP_WF, standard tasks based on CL_MDC_WF_PROCESS_URL, and a Send Mail step to deliver approval links for the MDG process and related records.

From SAP S/4HANA 2023 FPS02 onward, MDG Cloud-Ready Mode can use a local SAP Business Workflow instead of BTP Workflow for selected process steps. The documented example triggers BUS2240.START_STEP_WF, retrieves process and record URLs with CL_MDC_WF_PROCESS_URL, and sends an approval email with the links.

Process flow

  1. Maintain BOR event linkage in SWE2 for BUS2240.START_STEP_WF
  2. Create the Get Process URL standard task in PFTC using CL_MDC_WF_PROCESS_URL=>GET_PROCESS_URL
  3. Create the Get Records URL standard task in PFTC using CL_MDC_WF_PROCESS_URL=>GET_RECORDS_URL
  4. Create the workflow pattern in SWDD
  5. Add BUS2240.START_STEP_WF as the triggering event
  6. Create workflow containers MDC_PROCESS, PROCESS_URL, and RECORDS_URL
  7. Configure bindings between the workflow and the URL tasks
  8. Add the Send Mail step and bind MDC_PROCESS, PROCESS_URL, and RECORDS_URL to it','Activate the workflow','Assign the workflow in Configure Process Templates for Cloud-Ready Mode in SAP MDG under Local Workflow','Configure a checkpoint for l
SWE2

Customizing client → BOR event type linkage

Maintain event linkage for BOR object BUS2240 and triggering event START_STEP_WF

PFTC

Development client → Create Standard task

Create the Get Process URL task using class CL_MDC_WF_PROCESS_URL and method GET_PROCESS_URL

PFTC

Development client → Create Standard task

Create the Get Records URL task using class CL_MDC_WF_PROCESS_URL and method GET_RECORDS_URL

SWDD

Development client → Workflow Builder

Create and maintain the workflow pattern and activity bindings

SE80

Workflow repository maintenance → Triggering Event tab

Add triggering event BUS2240.START_STEP_WF

Referenced tables

ObjectPurpose
BUS2240BOR object used for MDG process workflow integration
MDC_PROCESS_IDProcess ID type used for task binding
MDC_PROCESS_URLData type for process and records URLs
MDC_PROCESSWorkflow container holding the BOR object instance
PROCESS_URLWorkflow container for the process URL
RECORDS_URLWorkflow container for the records URL

The remaining configuration, implementation details, and testing guidance continue from this answer more…

Related questions and keywords

Alternative questions

  • What is local workflow in SAP MDG Cloud-Ready Mode?
  • Can SAP Business Workflow be used instead of BTP Workflow?
  • From which release is local SAP Business Workflow supported?

Possible questions

  • How do I configure the event linkage for local MDG workflow?
  • Which transaction is used for BOR event type linkage?
  • How do I create the Get Process URL task?
  • Which class returns the MDG Process URL?
  • How do I assign the workflow to an MDG process step?

Keywords

Cloud-Ready ModeSAP Business Workflowlocal workflowSAP S/4HANA 2023 FPS02BTP Workflow ServiceMDG process stepBUS2240START_STEP_WFCL_MDC_WF_PROCESS_URLGET_PROCESS_URLGET_RECORDS_URLSWE2PFTCSWDDMDC_PROCESS_IDMDC_PROCESS_URLMDC_PROCESSPROCESS_URLRECORDS_URLLocal Workflow