Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8803

SAP_WAPI_START_WORKFLOW & Possible Agents

$
0
0

I want to create a background work item programmatically. I don’t want to start a workflow but a task instead. I am doing this with SAP_WAPI_START_WORKFLOW (I am giving my standard task ID (let’s say TS90000001) as a parameter). This is not working since I am getting the “You are not one of the possible agents” error message from the function. This is a clear message for me – I should set the task as “General task”. Now the problem is that in transaction PFTC I cannot go to the “Maintain agent assignment”, since this gives me an error saying that I don’t need to do the agent assignment for background tasks.

 

I have basically already “solved” the problem by changing the task into a dialog task, then setting the task as general task, and then changing the task back to background task (the task attribute stays as “General task” even if go back to background task). This gives me a transport, so I can transport this “agent assignment for background task” trick to other systems too.

 

Does someone know another way to start a background task or some other trick for this problem? I would preferably want to use SAP_WAPI_START_WORKFLOW. (There are some other functions such as EWW_START_WORKFLOW, which should work, but I am not sure which one is worse: Not using the official API or using it with the “agent assignment for background task” trick).

 

Kind regards,

Karri


Viewing all articles
Browse latest Browse all 8803

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>