2009 Sep 25 7:14 PM
Hi All
I have a program which uses function IDOC_INPUT_MATMAS for creating/changing material. After that it also tries to update "Legal Control" using a BDC on MM02 but then I get message M3 022 (Group data for material xxx locked by xxx). It looks like the function is not unlocking tables MARA and MBEW (I can see this on SM12).
I have already searched over the internet, SDN and services.sap but no luck so far.
Anyone has an idea about what could be wrong?
Best Regards,
Douglas
2009 Sep 25 8:33 PM
Before the BDC, use the ENQUEUE function (with _WAIT = 'X') to try to lock the entry that is causing problems. After that FM completes, dequeue the same entry.
Rob
Hi All
I have a program which uses function IDOC_INPUT_MATMAS for creating/changing material. After that it also tries to update "Legal Control" using a BDC on MM02 but then I get message M3 022 (Group data for material xxx locked by xxx). It looks like the function is not unlocking tables MARA and MBEW (I can see this on SM12).
I have already searched over the internet, SDN and services.sap but no luck so far.
Anyone has an idea about what could be wrong?
Best Regards,
Douglas
2009 Sep 25 7:45 PM
Hi
I can see that are locks for 4 tables:
MARA
MBEW
MARC
MVKE
Messages can be M3 022 (for MBEW) and M3 897 (for MARC).
Best Regards,
Douglas
2009 Sep 25 8:33 PM
Before the BDC, use the ENQUEUE function (with _WAIT = 'X') to try to lock the entry that is causing problems. After that FM completes, dequeue the same entry.
Rob
2009 Sep 27 6:55 PM
Hi Rob
I have done this before as workaround. Actually I just used DEQUEUE after calling the IDOC function.
I just would like to know why the IDOC function is not dequeuing the entries.
Best Regards
Douglas