cancel
Showing results for 
Search instead for 
Did you mean: 

Create object TYPE BUS2000126 in workflow -> error

Former Member
0 Kudos

(moved by moderator) -> Dear moderator, please have a look into the editing note at the end. Thanks.

-

-


Hello,

I´m successful creating an activity in a workflow (CRM 5.0).

In the corresponding task container an attribute of type BUS2000126 was added.

In the workflow method I want to create also an object of type BUS2000126 by using the guid of the generated activity. After that the new object should exported to the container.

coding:

 swc_create_object lv_object_act 'BUS2000126' lv_act_guid.
 swc_set_element container 'YY_ACT' lv_object_act.

The parameter lv_act_guid contains the activity guid ( TYPE crmt_object_guid).

The container element YY_ACT has the TYPE BUS2000126.

My problem:


By dialog processing in the debugging mode the object lv_object_act is generated without errors and is added to the container.

By dialog processing WITHOUT debugging OR background processing the object lv_object_act is not created.

So the workflow task ends with an error.

The error isn´t caused by missing authorization because the workflow user WF-BATCH has the sap_all profile.

Does anybody know this behaviour and can provide some hints?
+
Thanks & cheers,
André+


Message was edited by: Andre Schillack
-> it would be nice if the moderator moves this posting back into the Business Process forum. Because it is not a CRM issue. Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186746
Active Contributor
0 Kudos

Hi,

From what you're describing this should work.

Try to add a swc_refresh_object statement after the set, if this also doesn't work, add an endless loop prior to the setting to see, if maybe something else is causing the problem ( you have to also change the user which executes the workitem, because you can't debug a process via Sm50 for user WF-BATCH)

Oh yeah, and if this also doesn't yield an answer, raise an oss message.

Kind regards, Rob Dielemans

Former Member
0 Kudos

Hi Rob,

thanks for your hints.

But I have divided the step into two tasks because the activity creation and the creation of the object reference/instance of the activity was done in parallel instead of synchronous mode.

It works pretty well, now,

Regards,

André