We are using Service Manager with SAP CRM as the back end. We are trying to create an update step on the Service Order where some additional information is returned to the service Order items. We want to update the service order items with this additional data that is returned.
There are a few things that need to be done from what I can gather--
1) the doSteplet() method needs to populate _returnData[0] populated with the correct Service Order data. We have this working (confirmed via debug).
2) The Edit transaction has the Replace Client Object attribute set.
Please see this SCN thread for some additional background:
http://scn.sap.com/thread/3510781
Additionally, Mark Pe from Syclo indicated that in order to get this to work, you also need an object read step defined. From Mark's comment in the thread:
" The replace client object only returns the unique ID. We just assumed that the internal workings of Agentry just automatically update all the properties defined in the object. What is not mentioned is that the Replace Client Object will cause the Object's read steps to be executed to populate the contents of the Object's Properties. This is the missing link. In short, you need a read step for your object when you use the Replace Client Object."
Also, there is a SAP Incident 2000956 which has more information on this, for WorkManager. It does get a bit confusing however, the response indicates that you need to define a new fetch as well, then the object read step reads from the Fetch. It isn't at all clear how the data from the transaction gets to the read step.
I verified that if you create a read step, as part of the edit transaction, the read step is invoked. So hopefully we don't need to define a fetch for this as well...
Has anyone had any luck defining a object read step where you can populate the object properties using the data from _returnData[0] that was populated using the edit transaction? What needs to be in the Java?
Thanks for your help...
Mike