cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to Dynamically Change the Task Title in Workflow Notifications?

yrjin
Explorer
0 Likes
984

Hi. 

I have configured a Purchase Requisition workflow. When a purchase requisition is created, a notification is triggered as shown in the screenshot below.

yrjin_0-1742799990428.png

Instead of displaying the Purchase Requisition number, I would like to show the description or name of the Purchase Requisition.

The "Redefined Task Title" setting available in the "Manage Workflow for Purchase Requisitions" app cannot be used as it does not allow dynamic data to be set. Is there any way to dynamically change the task title using custom logic or an app?

Accepted Solutions (0)

Answers (1)

Answers (1)

HenrikeGrtecke
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello,

Thank you very much for your question and sorry for the late reply.

Can you please check whether the following information (GenAI was used to help generate this content) solves your issue?

To dynamically change the task title in the Purchase Requisition workflow notifications, you can use custom logic by implementing a BAdI (Business Add-In). This approach allows you to define custom pre-conditions and step conditions that can include dynamic data such as the description or name of the Purchase Requisition.

Steps to Implement Custom Logic:

  1. Implement BAdI for Custom Pre-Conditions: SAP S/4HANA Cloud - Flexible Workflow with new custom pre-condition for

    • Use the BAdI SWF_WORKFLOW_CONDITION_DEF to define new pre-conditions or step conditions.
    • You can specify dynamic data fields such as the Purchase Requisition description.
  2. Evaluate Custom Conditions:

    • Implement the BAdI SWF_WORKFLOW_CONDITION_EVAL to evaluate the conditions against the Purchase Requisition.
    • This BAdI allows you to check the values dynamically and set the task title accordingly.
  3. Configure Workflow:

    • Use the ‘Manage Workflows for Purchase Requisitions’ app to set up the workflow with the newly defined conditions.

By following these steps, you can customize the task title to include dynamic data from the Purchase Requisition, such as its description or name.

Kind regards, Henrike