cancel
Showing results for 
Search instead for 
Did you mean: 

Error when executing a work item (cannot execute a method, biding problem?)

Former Member
0 Kudos

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)

Accepted Solutions (1)

Accepted Solutions (1)

former_member183917
Active Contributor
0 Kudos

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

Answers (3)

Answers (3)

Former Member

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

Former Member
0 Kudos

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

bpawanchand
Active Contributor
0 Kudos

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