on 2022 Jun 08 5:48 PM
Hello Workflow People,
I found several similar questions, but not exactly what I need.
We have a workflow where the Product Engineering Task and the Manufacturing Engineering Task are parallel. Both can start their work at the same time, but the ME group cannot complete theirs until the PE group has finished. The ME agent who has the WI reserved wants to receive an e-mail whenever product engineering finishes.
How do I get the "reserved" ME agent user id into a container element? I've read where the WI_actual_agent is not available until after they have executed the task.
Thanks for your assistence,
Al
Request clarification before answering.
Hi Al,
in the PE task code move sy-uname (who is the executing agent) to the container-table. Of course you need to to some more data binding to get this value in workflow container.
1) Since both tasks (PE and ME) are created at the same time, PE is not aware of ME-sy-uname. Therefore, you need to add another task after PE task: this new task must send the email according to the container, which then is filled correctly.
2) Alternatively, you can use the preprocessing method of PE task to get the current ME-user from container when starting PE workitem and send the mail inside this existing PE task.
3) Third alternative: read in table SWW_WI2OBJ and SWWWIHEAD the data of your ME task: Select with your business object key (INSTID) + Business Object (TYPEID) and the WI_RH_TASK the workitem (WI_ID). With this workitem you see in SWWWIHEAD the executing user in WI_AAGENT.
BR, Manuela.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.