Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 05 at 04:54 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded