Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Updation terminated Error in BAPI Call

Former Member
0 Kudos

Hi All,

This is related to Warranty module where I need to first change status of a claim (which results into creation of new version for the same claim) and then need to update some fields in the newly created claim version.

I am doing the above steps in following sequence:

1) call of BAPI_WARRANTYCLAIM_SET_ACTION (to change the status of claim)

2) call of BAPI_TRANSACTION_COMMIT

3) call of BAPI_WARRANTYCLAIM_CHANGE (to change the fields)

4) call of BAPI_TRANSACTION_COMMIT

My problem that I am facing is:

- When I execute the whole code, it results into "Updation termination error" followed by an email to my SAP inbox. However, if I execute the BAPIs - SET_ACTION and CHANGE seperately, it works perfectly fine. What I could figure out is that the error is because of LUW not getting completed ie lock still persists when BAPI_WARRANTYCLAIM_CHANGE is called.

By using COMMIT WORK AND WAIT, its still not working.

Can anyone provide some help or pointers for the same.

Waiting for an early reply.

Thanks,

Debarya.

9 REPLIES 9

former_member181962
Active Contributor
0 Kudos

Hi Sarkar,

I think the problem is with the commit bapis.

Remove those bapi_transaction_commit bapis and see if it works.

Generally the UPdate termination errors occur, if you explicitly commit the LUWs where you should not be commiting.

REgards,

Ravi

Former Member
0 Kudos

Hi Deb,

Check the error log in SM13 transacion it will gove you the cause of the problem. Most of the errors are self explanatory.

Hope this helps

Cheers

VJ

0 Kudos

hi all,

thanks for prompt reply.

<b>RAVI -</b> I have tried removing the BAPI COMMITS and explicitly used COMMIT AND WAIT. But it is not working.

<b>VJ -</b> well, i have checked SM13 transaction, but could not figure out head or tail out of it. i am providing you the list below. As you can see, for 9th point, it is showing ERROR. however, i could not figure out, how to proceed from there.

1 WTY19_CHANGE_DOC_CREATE V1 Initial

2 PVSDBWTY_PARTNER_UPDATETASK V1 Initial

3 BAL_DB_INTERNAL_IN_UPDATE_TASK V1 Initial

4 PVSDBWTY_WTYV_IMRG_SAVE V1 Initial

5 PVSDBWTY_WTYV_IMRG_SAVE V1 Initial

6 WTY15_PRICING_COND_POST_UPD V1 Initial

7 HANDLE_TEXT_ARRAY_AFTER_COMMIT V1 Initial

8 PVSDBWTY_WTYV_IMRG_SAVE V1 Initial

9 PVSDBWTY_PARTNER_UPDATETASK V1 Error (no retry)

10 HANDLE_TEXT_ARRAY_AFTER_COMMIT V1 Initial

11 PVSDBWTY_SAVE_UPDATETASK V1 Initial

Regards,

Debs

0 Kudos

Hi Ravi,

Well, I again tried by removing all the BAPI COMMITs and instead used explicite COMMIT WORK.

Still, its giving me "Updation terminated" error.

Looking forward to early help.

Regards,

Debarya.

0 Kudos

Hi Deb,

Check this note.<a href="https://websmp106.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=012003146900000046592006">OSS NOTE</a>

Hope it gives some pointers.

At times SM13 helps in trouble shooting a update termination error.

Cheers

VJ

0 Kudos

Hi VJ,

It seems that OSS note is of some relevance.... proabably, it will help.

Thanks.

Debs

0 Kudos

HI sarkar,

What I meant was to remove any commit statements in the code.

No Bapi_Transaction_Commit and no explicit commit.

Regards,

Ravi

0 Kudos

Hi Ravi,

Well, without any COMMIT work (be it through Bapi_Transaction_Commit or explicit commit) the changes wont get reflected. Hence we need to have atleast one or the other COMMIT.

Any help/ clue to resolve the Update termination error would be appreciated.

Regards,

Debs

0 Kudos

hi VJ,

the OSS note that you mentioned is not solving the purpose. it seems, there is some other problem related to the non updation of field values.

do reply back with ur inputs.

Debs