on ‎2011 May 27 5:56 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.