cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry: "update client key property" after posting object is crashing the client

Marçal_Oliveras
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Marçal_Oliveras
Active Contributor
0 Kudos

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.