Application Development and Automation 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: 
Read only

BAPI_MATERIAL_SAVEDATA through Jco

Former Member
0 Likes
378

Hello,

We are trying to create a new material through BAPI_MATERIAL_SAVEDATA using JCo. Since the FM requires a material number, we are using BAPI_MATERIAL_GETINTNUMBER to get the next available material number. However, this function module locks the material number and when we call the SAVEDATA function module, an error message MGVNUM 011 is returned, saying that the material has already been created. It looks like the GETINTNUMBER uses lock objects MATNR_LOCK and MATNR_LOCK_INT which is checked by the SAVEDATA function module. Are we missing something in terms of passing parameters to get around this? Any help will be greatly appreciated.

1 REPLY 1
Read only

Former Member
0 Likes
312

Locking due to multiple connections.