on 06-13-2011 4:44 PM
Hello,
I created a specific workflow, triggered by an event, from a class I also created.
From this event, I get some data about a Document (CV01/02/03N...).
The first step is a task which refer to a method (from the same class above).
The binding Task <=> Method is the data about the Document and the Workflow ID.
After I start the workflow, I execute the work item in SWI1, with a breakpoint in the method.
I can't go in debug, and the work item is in error (in Workflow log) :
- "Work item 000000590208: Object ZCL_SA3_WF_GED_RECL_FOURN method UPDATE_FID cannot be executed"
- "EXECUTE_METHOD_OBJECT_SYNC : Dereferencing of the NULL reference".
Note: The task is not in background processing, in the aim of debugging the source code.
I did SWU_OBUF and quit/relog SAP.
Do you have any ideas to solve this problem ?
I think it's a biding problem, because I can' t even go in debug mode...
Thanks.
Regards
(sap version: ECC 6.0)
Hi:
Is the method is static or instance dependent? Also, you can execute the method separately from SE24 and check what is the problem.
Vinoth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your answers.
I found the solution : the method has to be a STATIC method, because there's no object instantiated.
My method now works fine.
Looks like a classic beginner mistake
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I hope that method UPDATE_FID is instance dependant.
So please create an object/class instance before calling the method UPDATE_FID .
After creating the instance of the object/class then call the method UPDATE_FID.
This will work fine.
Thanks and regards,
SNJY
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Looking at the error message I feel like there is something wrong in the task object and object method. You are using a class in the task make sure that class has the IF_WORKFLOW. Mak sure the task is enabled with synchronous task method check box.
Regards
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
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.