cancel
Showing results for 
Search instead for 
Did you mean: 

Perform in Workflow Taks Description

Former Member
0 Kudos

Hello Workflow Experts,

I want to ask you if it is possible to execute perform code in SAP Workflow task description ?

I create User Decision step and in task I want to provide some text for user based on output from perform statement this is working when I go to Print preview but when workflow is executed normally this code is not executed (LV_TEXT is empty).

Maybe I'm missing something but I don't know what.

Accepted Solutions (1)

Accepted Solutions (1)

pokrakam
Active Contributor
0 Kudos

PERFORM is an obsolete ABAP construct.

Use a functional method to do your calculation, you can call it directly in your binding as an expression and bind the result into a container element of the task.

Former Member
0 Kudos

Thank you for your help Mike.

Also if someone is interested in this solution I found a good description about this functionality :

http://scn.sap.com/community/bpm/business-workflow/blog/2006/12/19/using-functional-methods-in-workf...

Answers (1)

Answers (1)

SandySingh
Active Contributor
0 Kudos

Hello

Instead of using the perform statement it is better to use the programming exit to change the work item description dynamically

http://scn.sap.com/people/rj.vanlooy/blog/2012/01/29/dynamic-user-decisions-in-sap-business-workflow

you can also determine the text dynamically in background workflow step and store the results in workflow container elements and then use these container elements in task description

regards

sandy