Skip to Content
0

Agentry - Issue with merge transactions

Mar 09, 2017 at 12:29 PM

57

avatar image

Hi All,

In the customized IM application, we are posting the total material orders as collection from agentry to java/sap via transaction. This items collection is under MainObject. So we are posting the items collection using edit transaction on MainObject.

Post items Transaction:

capture.png

Say if there is any error in sap while posting the transaction via transmit, to clear the pending transaction we have provided the 'Discard' button which clears the collection via Edit transaction which "Auto-initialize" the "Items" collection property. We have update step here with Merge transaction enabled to merge with erroneous transaction. On click of "Discard" button, the collection would get cleared and any pending transactions with 1+ records in item collection would get cleared to 0 via merging.

Discard - Edit Transaction : Clearing via Auto-Initialize

Now the merging happens most of the time except few times even after discard the erroneous pending transactions retains the records in the collection. So sporadically the merge is not happening. Please let me know solution for this.

I have background sending enabled in my application. But the posting of this collection happens via "Transmit" step.

Or if we have better way to clear the pending transaction when we post it as collection, pls suggest.

capture.png (12.0 kB)
capture.png (9.5 kB)
capture.png (9.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Mark Pe
Mar 10, 2017 at 07:53 PM
0

Karthik,

Your statement "Now the merging happens most of the time except few times even after discard the erroneous pending transactions retains the records in the collection. So sporadically the merge is not happening. Please let me know solution for this."

What we know: Merging issue occurs if the properties of the transaction that are being merged are not the same during transmit.

Let us say:

Transaction 1 has X, Y, Z properties.

Transaciton 2 has W, X, Y, Z properties (You are trying to merge this to Transaction 1).

With what we are stating above, this will fail.

Now are challenge to you on your statement that it works most of the time except a few times is in your step of merging did any of the properties differ or it is not an adjacent merge (depending on your merge selection in the editor).

You also said: "background sending enabled in my application"

By design background sending sends transactions over to the backend upon Apply (OK button).

With what is stated above + Background sending you may either have a race condition that may be impacting your result. Background sending normally complicates the steps on debug.

We hope we were able to at least give some foundational knowledge for you to continue your efforts here.

Any other users or consultant may also contribute in this thread.

Best Regards,

Mark Pe
SAP Product Support

Share
10 |10000 characters needed characters left characters exceeded