cancel
Showing results for 
Search instead for 
Did you mean: 

Material Master locking during automation of Goods Movement using SAP PI

Former Member
0 Kudos

Dear expert,

I have a scenario. We are trying to automate goods movement happening at our plant.

Basically, we have a plant control system (PCS) whose backend is a sql database. Any goods movement happening at plant will create a record in the the database. Using SAP PI we are picking these records and trying to post Goods Movement in our ECC through different interfaces based on different processes.

The different processes are Goods Issue against a delivery, Goods Receipt against a delivery, PP Confirmations against a Process Order or Goods Receipt against a Purchase Order.

The issue we are facing is, for instance, ECC is receiving two messages at the same time say for instance one for Goods Issue against a delivery and another for PP Confirmation. If both the messages are trying to post respective Goods Movement then one message is failing with error as Material locked by user &. Where the user is the ECC user used by PI to connect to ECC.

I want to know if there is any way to avoid this situation.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member235395
Contributor
0 Kudos

Hi Syed,

Are you calling any BAPI on proxy implementation from PI? If so, before call BAPI, try this sentences.

SET UPDATE TASK LOCAL

Best Regards,

JL23
Active Contributor
0 Kudos

you can only put 2 trains on a single track if you put them behind each other.

Please see OSS note 1985306 - Performance guide for goods movements

and

2319579 - S4TWL - Performance optimizations within Material Document Processing - lock behavior and stock underrun protection