on 01-03-2018 11:38 AM
Hi,
I'm enhancing Vehicle Stock for Work Manager 6.4. This add-on creates STO (Stock Transport Order) and during transmit, if creation is successful in the backend, it just deletes the created object from the client.
I want to keep the object in my client but update its ID with the value given by SAP and returned by the called BAPI. I modified the transaction StockTransportOrderHeaderPost, update step StockTransportOrderSteplet changing the "Response to client" from Delete object to "Update Client Key Property".
After doing that, the Agentry client crashes during synchronisation if I create a STO. I suspect it's because I need to populate the value of the STO ID returned by the BAPI somewhere in the Java.
But where and how should I do that? I see the StepHandler class is getting the STO ID from the backend, but then is only using it to write it in the logs. How should I manipulate this value to return it to the Agentry client object?
Regards,
Marçal Oliveras
Update:
I managed to replace the local ID by the SAP ID, I just needed to assign a "StockTransportOrderHeader" object with the SAP ID, to the _returnData Object attribute of the steplet class.
So now my functionality works, but Agentry client still crashes after the synchronization finishes... Then if I start the client again, I can see the STO with the ID returned from SAP.
I guess I will need to create a SAP incident for that unless someone can give me a clue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.