cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow is going into error as multiple deliveries trigger same WF at same time.

05-12-2015 7:21 AM
584 views 4 comments
0 Likes
SAP Managed Tags
Subscribe

Hi Experts,

During post back of delivery, multiple Work Items are created for multiple deliveries. At that time a task called in background via WF is getting failed as time-stamp is showing same for all the Work Items.

How to resolve this issue? Can we put some wait step or some other way?

Thanks in advance for your help.

0 Likes

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Likes

Hello,

"At that time a task called in background via WF is getting failed as time-stamp is showing same for all the Work Items."

You can't assume the timestamps will be different. Can't you use workitem id?

regards

Rick

Former Member
0 Likes

Hi,

I am guessing that you have some custom step which uses time stamp as a key. What kind of time stamp are you using? long or short form (check abap documentation on GET TIMESTAMP ).

Kind regards, Rob Dielemans

SandySingh
Active Contributor
0 Likes

Hello

  • check the logs in Transaction SM12 SM21 ST22
  • check transaction SWPC.
  • Maybe the records to be updated are locked and it's waiting for them to be unlocked. ENQUEUE DEQUEUE of workitem or object involved
  • You can also check in transaction SWU2 if there aren't any local rfc's stuck in there
  • Transaction SMQA for any RFC errors.
  • You can check the application log to see if there are any errors.

Regards

sandy

pokrakam
Active Contributor
0 Likes

Hello Santanu,

Do you not want multiples or why exactly is it failing? According to your explanation of multiple deliveries, the system should cope perfectly well with starting several workflows at once.

You say the time stamp is the same, is this relevant to your application? Again, Workflow won't care about this. Your screenshot shows different timestamps...

Regards,

Mike