Skip to Content
0
Former Member
Apr 20, 2008 at 09:52 AM

MM BAPI Commit - Lock Issues

325 Views

Hi All,

I am updating Material Master and I am getting locking issues intermittently.

Which is better of the 2 processes below or any new ideas?

PROCESS 1:

Loop at Material.

...BAPI_MATERIAL_SAVEDATA (Material BAPI)

...BAPI_OBJCL_CHANGE (Classifications BAPI)

...BAPI_TRANSACTION_COMMIT (WAIT = 'X')

...BAPI_MATINSPCTRL_SAVEREPLICA (Inspection Control BAPI --- This BAPI saves to the database)

...BDC for Classifications View (If not all required information is passed to BAPI_OBJCL_CHANGE, then we need this BDC.)

Endloop.

PROCESS 2:

Loop at Material.

...BAPI_MATERIAL_SAVEDATA (Material BAPI)

...BAPI_TRANSACTION_COMMIT (WAIT = 'X')

...BAPI_OBJCL_CHANGE (Classifications BAPI)

...BAPI_TRANSACTION_COMMIT (WAIT = 'X')

...BAPI_MATINSPCTRL_SAVEREPLICA (Inspection Control --- This BAPI saves to the database)

...BDC for Classifications View (If not all required information is passed to BAPI_OBJCL_CHANGE, then we need this BDC.)

Endloop.

Thanks for the help.

Riyaz