cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Duplicate production entries 101 using BAPI VHURM_HU_POST_WE_PROD_ORDER

ilnbtgliytiogio
Newcomer
0 Kudos
174

Hello experts,

We are working with a custom program that posts production confirmations using the BAPI VHURM_HU_POST_WE_PROD_ORDER, which internally calls transaction COWBHUWE to register production goods receipts in EWM, already packed in HUs (Handling Units).

We're encountering the following issue:

ilnbtgliytiogio_0-1759760687251.png

 

Unexpected behavior:

In very rare cases, the system is duplicating the 101 movement for a production order. That is, it creates two separate material documents, each with a different batch number, for the same order.

📌 Observations:

  • The duplicated movements occur at exactly the same second, or at most one second apart.
  • This suggests a possible concurrency issue or race condition during execution.

⚙️ Technical details:

  • In the it_hulist parameter (which specifies how many 101 movements should be posted), we are explicitly passing only one line.
  • Despite this, in about 2 out of every 500 production orders, a partial production receipt gets duplicated.

Question:

Has anyone experienced this kind of duplication using the BAPI VHURM_HU_POST_WE_PROD_ORDER or in similar EWM + HU scenarios?
Do you know how we can prevent this unexpected behavior?

Any help or suggestions would be greatly appreciated.

 

Accepted Solutions (0)

Answers (0)