on 03-14-2013 12:27 PM
Hi Folks,
We have a situation whereby wf-batch used to exeute a background task which was assigned a z method in a BO. This method simulated a pre-hire in pa40 and so executes hr_maintain_masterdata.
This process used to work fine, but something has changed in the system and the FM now returns an error when wf-batch tries to execute (start date before initial entry date). It should be noted that when a user executes this method, the pre-hire is completed without incident.
So looking on this site, I found a blog where nabheet madan states:
Change user name of WF-BATCH which is posting a document in background to the user who lastly approved the release. .In those cases we can bind back the actual agent who executed the previous work item and change the background task to dialog task with advance with dialog set. The workflow system will use the correct user to execute the following step without interrupting it .
Any ideas on how to achieve this? I have tried passing wf-initiator as the actual agent and have unticked background processing on the task but in swia it is hanging as no agent is assigned.
How can I get around this issue?
Thanks in advance,
Liz.
WF-Batch was missing parameters. Once these added, workflow working as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
WF-BATCH is for the background jobs, there is no point in running this as a different user.
I predict you will have the same problem if you manage to do so, so you would be better off trying to figure out why it happens for WF-BATCH. Does it have SAP_ALL and SAP_NEW?
regards
Rick Bakker / hanabi technology
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Liz,
Really? Which upgrade? What happens when you try the infinite loop trick?
Here's another way:
SE38 > Utilities > Settings > Debugging
You can set the userid you want to debug for. This includes background
users like WF-BATCH. It will stop on any 'external breakpoint' you then set.
regards
Rick
Hi Liz,
Is there any dumps in Transaction ST22 logged under WF-BATCH user ID. Could you specify what sort of dump or error message is encountered.
Regards
Sandy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.