cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry - Transactions not being merged

Marçal_Oliveras
Active Contributor
0 Kudos

Hi,

I hope you can help me, I'm doing some modifications to standard Work Manager 6.2 time registration, but still this seems to be a problem coming from the standard. Anyway it's an Agentry problem since it could happen for any app different than work manager.

First I create a time record, and then if I edit the transactions are not merged. Therefore the Update step calling the creation BAPI in SAP is called two times.

This is what I can see in the ATE

In Java CATSRecordEditStepHandler class, when the record edited is LOCAL then the add BAPI is used, and that's why I get 2 records created in the back end.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

For the Transactions to merge the EDIT Transaction must have same or fewer properties than ADD. You cannot have additional properties in EDIT Transaction that are not there in ADD. Also in EDIT Transaction definition - please make sure you have selected Merge with any Transaction and Merge similar Transactions options.

thanks,

Chandra

Marçal_Oliveras
Active Contributor
0 Kudos

Hi Chandra,

Thanks you for the help. I already had exactly the same properties in both transactions.

Now I tried to change to "Merge with any transaction" from the previous "Merge with adjacent" but I got the same result.

I don't know what else can I try.

jason_latko
Advisor
Advisor
0 Kudos

Marcal,

Try deleting the existing edit transaction, removing it from trash and recreating it with all the correct properties that match the add.  Just take the defaults at first to see if you can get it to merge, then go back and fix the initial values, update rules and whatever else if the merge is successful.

If they still wont merge, Try the same with the Add transaction.  I have had transactions that were somehow internally corrupt for whatever reason, and I could only correct the merging by recreating one or both.

Jason Latko - Senior Product Developer at SAP

Marçal_Oliveras
Active Contributor
0 Kudos

Thanks Jason,

I will give it a try. I wish I shouldn't have to do that though...

rafael_gerdin1
Explorer
0 Kudos

Hi,

I seem to have the same problem with CATSRecordAdd and CATSRecordEdit both sync in but I only want the one to run after EDIT. Did the Deletion of the transaction and rebuilding it solve the problem here? What was the solution?