on ‎2014 Mar 20 5:48 PM
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
Request clarification before answering.
Hi All,
I'll put here the current status, since I've replied several different answers here.
Currently I have the following org. structure:
The workflow WS20000050 is active, and I've assigned task TS20000118 as general task:
PS: The agent assignement is now empty, but I've also tried to assign a specific role (manager) in my system (as you can see in other answer above), but this makes no difference in the result that I'm getting so far.
When creating the trip, the log shows the following errors:
one important part is that, I'm not sure how the system gets the rule that must be executed (AC00000168), cause the task rules alv is empty:
Here is the strange part: rule AC00000168 is calling function module SWX_GET_MANAGER. Debugging just the function module SWX_GET_MANAGER execution, during the trip creation, the approver is not returned, but if I debug just the function module itself, using transaction se37, using the same parameters as during the standard execution, the function correctly returns the approver .
Any ideas what might be wrong / different between the executions?
Thanks all help,
Roberto Falk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check node 372 in the workflow template, it receives the workflow initiator to the rule container, test the same data in PFAC (pay attention to the leading US) and see if you get a result.
I might have missed this in your data, but is infotype 0105 subtype 0001 maintained in persons master record (PA30)?
Hi Ronen / Modak,
I've tested the rule on transaction PFAC. This rule asks for 3 parameters, Extended object ID, OrgManagement object and Object type. As far as I could identify, just the OrgManagement object is informed. So, I informed USF_EMPLOYEE (user is F_EMPLOYEE), and the test runs fine. See below:
Also, if I re-execute the workflow using transaction swi2_diag, the workflow runs fine and the approver is correctly determined. You said that this might indicate missing authorizations, how can I check that?
Infotype 0105 is mantained for both user (F_EMPLOYEE and F_MANAGER). F_EMPLOYEE is connected to Manuel Santos - Fiori Employee and F_MANAGER is connected to Maria Silva - Fiori Approver.
I saw that when creating the trip, the user that executes the reports in background is WF-BATCH, maybe is something related to this user...
Thanks all your help,
Roberto Falk
Authorization object PLOG - with AC (workflow rule) in the object type, 1001,1000 in the infotype and DISP in actions fields (* in the rest). this is needed since the next approver is calculated with the current ones auth's so without this the workflow rules will return wrong results. this authorization should be given to all users.
Hi Ronen,
thank you very much, after adding the Auth object PLOG, I was able to create it. See below:
One minor question, do you know why the system is showing this message: "PersNr. is locked. Please unlock."? I'm 100% sure that I was not locking this user in the moment that I was approving the trip.
Thanks again,
Roberto Falk
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:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I've done the steps you described, and now the log shows that the workflow was started/considered:
| Obejct Type | Event | Curr Date | Time | Name of... | Handler/Action |
|---|---|---|---|---|---|
| Trace ON | 21.03.2014 | 14:34:03 | F_EMPLOYEE | ||
| BUS2089 | CHANGED | 21.03.2014 | 14:34:09 | No receiver entered | |
| BUS2089 | REQUESTCREATED | 21.03.2014 | 14:34:09 | WS20000050 | SWW_WI_CREATE_VIA_EVENT_IBF |
| Trace OFF | 21.03.2014 | 14:34:14 | F_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
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
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
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
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
Look in tcode SWETYPV for BUS2089.
BTW these are the ones I am aware of:
WS20000040 Approve trip
WS20000050 Approve travel request
WS01000087 Approve travel plan
WS12500014 Mail: Trip has been settled
WS12500016 Mail: Trip was Transferred to FI
WS12500017 Mail: Trip on hold
WS12500021 Automatically approve travel request
WS12500022 Approve Travel Expenses Automatically
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anjan,
Ok, now I can see the entries.
I've also 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... but seems that the user associated has not received the trip to approve.
Any ideas?
Thanks and regards,
Roberto Falk
Hi Ronen,
After doing the steps mentioned by Anjan Paul and Modak Gupta here below, now I can see an entry when running tcode SWI2_FREQ, see below:
| Task | Task text | Workflow Item Type | Number |
|---|---|---|---|
| TS00008267 | Generic decision task | Dialog Step | 1 |
Is this entry right? I mean, there is no place mentioning workflow WS20000050...
The event trace is here below in other answer.
Thanks and regards,
Roberto Falk
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.