cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in a custom workflow, need help.

meghomallar_das
Participant
0 Kudos

Hello Experts,


I am totally a beginner in SAP Workflow. I have created a custom business object type with a method named IR_DISPLAY. This method takes in the Key Attribute of the object type and opens a custom screen to display the object. I am using a custom function module to open the screen.

In my custom workflow I am using an USER DECISION to show the user whether he wants to display the object or not. If he chooses YES then I am using an ACTIVITY which intakes a task linked to the method IR_DISPLAY. On choosing YES the screen to display the object should be shown but in my case after choosing YES its simply going out and nothing is displayed.

Please suggest where I made the mistake.

Accepted Solutions (1)

Accepted Solutions (1)

I042439
Employee
Employee
0 Kudos

In Addition to what Rob and Anjan have mentioned, also ensure that the executing user of the decision step is set as the agent of the next activity step. You can pass _WI_ACTUAL_AGENT FROM the task to the workflow in binding (into some workflow container variable). Use this variable as the agent of the next activity step.

Regards,

Modak

former_member186746
Active Contributor
0 Kudos

And in addition to everyone else. Do not forget to maintain the agent assignment of the dialog step.

PFTC-->Additional Data-->Agent Assignment-->Maintain

Or directly from within the workflow builder.

Kind regards, Rob Dielemans

Answers (4)

Answers (4)

meghomallar_das
Participant
0 Kudos

Thanks all,

it got solved.

Changed activity agent to WF_INITIATOR.

anjan_paul
Active Contributor
0 Kudos

Hi,

Check is your activty step with method is Dialog step

former_member186746
Active Contributor
0 Kudos

Hi,

If you want to immediately show something to the same person who executed the user decision then you have to make sure that the next step is a dialog step and the steps have the advance with dialog checkbox ticked.

Kind regards, Rob Dielemans

Former Member
0 Kudos

Hi Das,

Check the workflow and task binding between the elements of BO types of workflow container and task container for that activity step.

Regards,

Murali Krishna.