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

Workflow template when running tcode TRIP

roberto_falk
Product and Topic Expert
Product and Topic Expert
0 Likes
3,489

Hi,

I know that this probably is a dummy question, but which workflow template is executed when I create a travel request using transaction TRIP?

I went to tcode SWDD, but there are so many templates that was difficult to know for sure.

Thanks and regards,

Roberto Falk

View Entire Topic
I042439
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Roberto

The workflow will "trigger" if you have activated the event linkage in your system. If not, no workflow will trigger. To find what all standard workflows are there, follow this process: (those may or may not be actively likked to the triggering event)

1) The Business object for TRIP is BUS2089

2) If you go to SWO1,enter this BO , click on where used list, select "Used in" as 'Tasks'-> you will get a lengthy list.

From the list, keep only the ones with 'OTYPE' (visible as just 'OT') = 'WS' - those are workflow templates: (custom workflow templates begin with 9xxxxxxx series):

WS  1000087

WS  1000087

WS  1000087

WS  1000087

WS 20000040

WS 20000040

WS 20000040

WS 20000040

WS 20000050

WS 20000050

WS 20000050

go to PFTC/SWDD and check these out, which one suits your need - activate them via SWETYPV/SWE2.

Regards,

Modak

also check out the help link:

http://help.sap.com/saphelp_erp60_sp/helpdata/en/04/928b3f46f311d189470000e829fbbd/content.htm?frame...

So we have the following standard workflows:

Workflow Template WS20000050 (Approve Travel Request)

Workflow Template WS 01000087 (Approve Travel Plan)

Workflow Template WS20000040 (Approve Trip)

Message was edited by: Modak Gupta

roberto_falk
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

I've done the steps you described, and now the log shows that the workflow was started/considered:

Obejct TypeEvent  Curr DateTime Name of...Handler/Action
Trace ON 21.03.201414:34:03F_EMPLOYEE
BUS2089 CHANGED  21.03.201414:34:09No receiver entered
BUS2089 REQUESTCREATED21.03.201414:34:09  WS20000050SWW_WI_CREATE_VIA_EVENT_IBF
Trace OFF 21.03.201414:34:14F_EMPLOYEE

Before executing, I tried to set the approver by entering in the SWDD - workflow WS20000050, basic data, agent assigment for task, then I've added the posistion 'Manager', that has a user associated.

How can I see if the user received the trip to be approved?

Thanks and regards,

Roberto Falk

0 Likes

If you go into the trip and hit the Generic Object Services button

then

Choose the workflow with the log button

In the log, click on the following button and it will show you the agents of the work item:

Former Member
0 Likes

You can find workitesm using SWI1, or SWI2_FREQ, or SWI6 (provide business object and key and it will return all started workflows).

Then in the log locate the step and click on possible agents.

I assume this is all new to you so just take your time to get familiar with these transactions and with the workflow log (also technical view is interesting).

Kind regards, Rob Dielemans

Haha, just do what tommy said just moments before my post

Message was edited by: Rob Dielemans

roberto_falk
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Tommy,

when I clicked on Workflow Overview, I received the following message:

There are no workflows that have already worked with this object

I believe I'm missing something...

Thanks and regards,

Roberto Falk

roberto_falk
Product and Topic Expert
Product and Topic Expert
0 Likes

I've tested the workflow using tcode SWUS, and there I could see this page, but the approver was not found...

How can I set this?

Thanks and regards,

Roberto Falk

Former Member
0 Likes

Hi,

Just execute the procedure mentioned in the message.

Also make sure that there are values used for the agent assignment in the workflow.

Regards, Rob.

roberto_falk
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Rob,

sorry, not sure how to do it. See below the org. structure:

I'm currently creating the trip with user Manuel, so, in the workflow WS 20000050, under basic data, agent assignement for task, I've included the manger user Maria, see below:

But is not working, when I test the workflow using tcode SWUS, the log says that "No agent found for this task", as you can see in my last post.

Any ideas where I'm missing the step to set the approval?

Thanks and regartds,

Roberto Falk

roberto_falk
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Rob,

here is something interesting, in the technical log, an error message is showed:

"Result of agent resolution does not agree with agent of task", see below:

Maybe this helps...

Thanks again all,

Best regarsd,

Roberto Falk

Former Member
0 Likes

Hello,

That usually means the Decision Task hasn't been set to General Task.

regards

Rick Bakker

I042439
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Roberto

in the task - do not fix to manager.....that is just the "Possible Agent"

go to PFTC, there maintain Agent Assignment -> make the task attribute general.

Now see if the "Rule" is attached to the workflow 'step' to send the decision (in SWDD) or is it attached to the task (in PFTC -> Default Rule).

Pick that up and open in PFAC and see what it is doing to get the agents....make the config.

Did you go through the links I gave, it will have process to setup rules to get the agents.

Regards,

Modak

roberto_falk
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Modak,

My task is set the general. Do you want me to exclude the agent assignement? Currently I've assigned to the manager...

Another thing, the "Rule", inside my task, is empty, check below:

I'll recheck the links you sent. I've checked last week but haven't found this "Rule" part. I'll check again.

Thanks and regards,

Roberto Falk

I042439
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Roberto

No, please do not exclude any agent. setting Task Is general is fine.

Default rule being empty is fine.

where and how are we setting the manager as teh agent?

regards,

Modak