Professional Documents
Culture Documents
Team
Take this high priority. The best solution will be awarded
Nataraj
From: Reddy, Jagdish (Cognizant)
Sent: Wednesday, May 07, 2014 5:57 PM
To: SAP ABAP Pune(cognizant); SAP ABAP Bangalore (Cognizant); SAP ABAP Chennai (Cognizant); SAP ABAP
HYDERABAD(Cognizant)
Cc: Sundaram, Nataraj (Cognizant); Waikar, Makarand; Moghe, Amit (Cognizant); Chitnis, Chintamani (Cognizant)
Subject: Lock Issue in BAPI 'BAPI_PRODORDCONF_CREATE_TT'
Hello All
There is a requirement in our project to perform the below transactions sequentially through a BSP
application.
Operation confirmation including goods issue backflush components (CO11) Using BAPI
'BAPI_PRODORDCONF_CREATE_TT'
Goods issue of serial components (MB1A) using BDC
Goods receipt of the assembly (MB31)
Recosting (CO02)
Ibase creation (IB51)*
IQ02: update serial nbr user status (set to ISSU) *
Update Physical View addresses in Ibase *
We are facing a problem due to the lock mechanism of the BAPI 'BAPI_PRODORDCONF_CREATE_TT' in the
first step and due to this the BDC on MB1A (2nd step) gives a locking error.
The said BAPI confirms the production order + does goods movement for any component that are marked
with backflush indicator. The confirmation of production order and goods movement happens as separate
updates (V1 & V2 respectively).
If we write COMMIT WORK AND WAIT for committing the BAPI the confirmation of order happens as a
synchronous process, but the control does not wait for finishing the goods movement and proceeds for
the BDC on MB1A.
Since the good movement is still being carried out in the V2 update there is a lock on the reservation no.
of the order, so while calling the BDC on MB1A it gives a locking error.
Graphically the current situation can be explained as below.
https://mail.cognizant.com/owa/?ae=Item&t=IPM.Note&id=RgAAAACHZBuzuyNwRaFd1Behhmd9BwASxAa3aQaLSpljTtR99oETAAAAVopkAAASxAa3aQa
1/3
5/10/2014
Our expectation is that execution of MB1A starts only after the V2 asynchronous update. Graphically the
expected desired result is as below.
2/3
5/10/2014
https://mail.cognizant.com/owa/?ae=Item&t=IPM.Note&id=RgAAAACHZBuzuyNwRaFd1Behhmd9BwASxAa3aQaLSpljTtR99oETAAAAVopkAAASxAa3aQa
3/3