on 07-28-2005 9:48 AM
Hi ,
I have created a method which call SWX_GET_MANAGER to my BUSINESS OBJECT. It's a synchronous method, but NON-DIALOG method. I have created a user task which runs in BACKGROUND and attached it to a ACTIVITY Step in my workflow.
Well, sometimes the workflow runs perfectly. But sometimes, the control stops at this step in IN PROCESS Status mode. And from there, the flow never proceeds any further...
But sometimes, the same step runs perfectly..
why is it so?
Is there any solution for this?
Regards,
Raja sekhar
Hi,
When a background step stays in IN PROCESS mode after execution, it means the step did not complete. It could be due to Authorization failure or some other errors in your code. It is possible that you are not checking for the exceptions from FM? Check for any short dumps (Txn ST22) or RFC errors (Txn SM58).
Cheers,
Ramki Maley.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
the problem is with the method - the workflow activity step halts because the synchronous method does not return. The step can complete only when the method is completed.
Have you checked in the cases the workflow halts that the values binded to the step work when testing the method outside workflow?
-MIkko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes, this is true. If it's synchronous as in your case, the synchronous task can complete only when the synchronous method contained in it has completed.
Have you tested the method thoroughly? Does the processing halt only for some specific values or is the halting completely random?
-Mikko
You said "I have created a user task which runs in BACKGROUND and attached it to a ACTIVITY Step in my workflow."
When you schedule a BACKGROUND JOB in SM36.There you give this value.
If you are not scheduling BACKGROUND JOB from SM36, then please ignore my suggestion, let someone else answer your question.
I am not much into Workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is Job class of this background task.
I suggest assign it A.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.