Showing results for 
Search instead for 
Did you mean: 

BDOC Locking issue with Claims and Agreements

Active Contributor
0 Kudos


I have some practical knowledge of BDocs, but this one has me stumped.

We have the following CRM Grants scenario:

1. In CRM, a Claim X (on Agreement Y) is approved

2. This approval causes a Claim X BDoc to be sent to ERP, to post a billing doc

3. This approval also causes an Agreement Y BDoc to be sent to ERP a few seconds later, for an unknown reason.

4. The Claim X BDoc processes without errors

5. The Agreement Y BDoc is also green, but the returning validation BDoc says that the 'object is locked' (by the BDoc processing user in ERP)

My conclusion is that both Claim and the Agreement are trying to lock the same object in ERP (ie the contract object that corresponds to the Agreement). The Claim BDoc gets there first, so it wins the race.

My questions: How to avoid this? Is this a common issue? If the approval of a claim causes two BDocs to be generated (for the Claim and Agreement), wouldn't there always be a locking issue on the ERP side?

Any hints or suggestions would be greatly appreciated.


Paul B

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Paul,

              First of all , I would suggest you to check if this is a standard issue, if yes, then please raise an OSS for this. If not, you  can try to do some custom enhancement in the BADI or FM and keep a WAIT command before triggering the second BDOC.