cancel
Showing results for 
Search instead for 
Did you mean: 

Change table entries with a workitem

Former Member
0 Kudos

Hi all,

I think this is an easy one for you. I want to change a table entry in a customer table over a method which is part of a work item. In the test modus everything is ok but directly over the workflow the entries are not updated (background processing). I'm using the modify command.

Thanks for your help

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

In your case check for,

1) Binding between the workflow container and task container and also, task container to method container.

At times even though binding is established due to poor run time buffer synchronization its not binded.

check this link [runtime synch|https://wiki.sdn.sap.com/wiki/display/ABAP/SAPBusinessWorkflow#SAPBusinessWorkflow-ExceptioninbindingofTaskandtheMethod%3F]

2) Check for the macros swc* in the method whether they are populating the values inside the method.

You have an option for debugging the method itself directly.

Thanks

Sharath

Former Member
0 Kudos

Hi,

I have checked the bindings. The container has the correct data and the test run is also working.

Is there a chance to debug the executed workitem?

Regards

Thomas

Former Member
0 Kudos

hi,

I think debugging of workflows is possible through using the SM50, transaction.

Thanks

Sharath

Former Member
0 Kudos

Check the work item status in

SWI1

and work flow diagnosis SWUD,

They might help you in arriving at a conclusion about the behavior of your workflow and work item

Thanks and regards

Sharath

former_member185167
Active Contributor
0 Kudos

Hello,

Did you put a commit in the method? Is there no update at all, or an incorrect value?

You can debug it by putting an infinite loop in the method:

  • Temporary, for debugging.

data: lv_rbtmp(1).

lv_rbtmp = 'X'.

while lv_rbtmp eq 'X'.

endwhile.

Go to SM50, find the program (usually user WF-BATCH) choose debug (Program/Session > Program > Debugging) and change the value to get out of the loop.

Don't forget to remove the infinite loop!

regards

Rick Bakker

Hanabi Technology

Answers (1)

Answers (1)

surjith_kumar
Active Contributor
0 Kudos

Hi,

The variable is not passed or Variable is reseted in the workflow. This mostly happen because of the binding, check right variable you bind.

To debug, For testing put a breakpoint in the method coding and make it as a Dialog task, give your user id the assignment.

Then test it.

Regards,

Surjith

Former Member
0 Kudos

Hi,

thanks for your help. I found the problem. It was a bug in the method.

Regards

Thomas