on 03-28-2013 3:14 PM
Hello,
we wrote our first NW GW + SAPUI5 application and it is great to have these two new technologies / products.
Currently we are at a point where we would like to enhance the WFService to get more informations out of the workitem. When I get it right, the workitem has an container and we could fill this container with additional informations. Is there a good way to get the fields from this workitem-container?
What is the best way to access more informations from this workitem?
Thanks a lot,
Vanessa
There are several ways to get business data.
1. Use BADI /IWWRK/ES_WF_CUST_EXT_IB
Reference: Workflow User Exit
You can call SAP_WAPI_* function module to access the workitem
2. Implement Gateway services which gets business data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Masayuki,
thanks for your answer. I will give it a try. Is there no easier way to solve this? It would be great to be able to consume the additional informations like materialno without developing more web services. How to read the added information in alternative 1 from the WFService? It would be great to be able to read the data from a wi-contrainer. Sorry, but I am new to this topic and maybe these questions are a little bit stupid.
Greetings.
Hi Vanessa,
Container elements can be obtained by navigating into the /ExtensibleElements path of a WorkflowTask entity, e.g. WorkflowTaskCollection('000000010174')/ExtensibleElements (not well named is it!)
The container collection contains each element as a name-value pair.
e.g.
<m:properties>
<d:workitem_id>000000010174</d:workitem_id>
<d:name>_WI_ACTUAL_AGENT</d:name>
<d:value/>
<d:context>CONTAINER</d:context>
</m:properties>
Cheers
Ron.
Just to qualify my earlier answer, you do not have to enhance WFSERVICE if you wish to read container values.
Additionally, enhancing the workflow template and placing extra values in the workflow or task container may solve problems of visibility. Any new container element will simply appear in the ExtensibleElementsCollection.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.