cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem using workflow - Agent not ready

Former Member
0 Likes
2,922

Dear all, i'm not a workflow expert. I've created a workflow that works correctly when i test it using transaction SWDD, but I have an error of "no agent ready" when i process it using fm SWE_EVENT_CREATE.

the task is defined in this way:

Agent Expression: &_WF_INITIATOR&

but I also try this:

Agent User : ACNDEV (my user)

....and also I try to leave the agent blank.

I call the workflow rasing the event "CREATED" in that way:

VA_CREATOR-OTYPE = 'US'.

VA_CREATOR-OBJID = SY-UNAME.

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

objtype = 'ZTESTFLOW'

objkey = 'ZTESTFLOW'

event = 'CREATED'

CREATOR = VA_CREATOR

TABLES

EVENT_CONTAINER = wi_container

The workflow start but at first task it is stopped with the message "No agent ready".

I already have try in different way, but i don't find any solution.

Anybody can help me ?

Davide

View Entire Topic
Former Member
0 Likes

Hi,

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

objtype = 'ZTESTFLOW'

objkey = 'ZTESTFLOW'

event = 'CREATED'

CREATOR = VA_CREATOR

TABLES

EVENT_CONTAINER = wi_container

Please check if you have properly delegated the business object 'ZTESTFLOW'. If not delegated then please check if it is created correctly or not.

Secondly, please check the key field of Business Object 'ZTESTFLOW'. ZTESTFLOW must be a valid value for the key field of ZTESTFLOW.

Thirdly, please check the data type of ZTESTFLOW. It must be same as that of OBJKEY parameter of SWE_EVENT_CREATE.

Fourthly, please check that CREATED is an event of ZTESTFLOW.

To check all these, you can go to T-Code 'SWO1' and there specify the BO type as ZTESTFLOW and check the details.

Regards,

Guddan