Skip to Content
0
Former Member
Apr 14, 2014 at 02:31 AM

How to delete lock entries generated by the function module "BAPI_OBJCL_CHANGE"

1438 Views

Hi experts,

I'm now trying to make an add-on program

which updates material master information by the background job.

To update the "Classification" view of material master,

the program calls the function module "BAPI_OBJCL_CHANGE".

If the "RETURN" information is valid,

then the program calls "BAPI_TRANSACTION_COMMIT" (with the "wait" parameter 'X').

Contrary to my intention,

lock entries generated by the function module "BAPI_OBJCL_CHANGE" remains after "BAPI_TRANSACTION_COMMIT".

As a result, the material updated remains locked until the add-on processing ends.

To shoot this trouble, I read some SCN discussions below:

<<>>

⇒ As I wrote above, I checked the parameter for "BAPI_TRANSACTION_COMMIT".

<<>>

⇒ I cannot call the function module "BAPI_OBJCL_CHANGE" with "IN UPDATE TASK" option

because of "BAPI_OBJCL_CHANGE" attributes.

("BAPI_OBJCL_CHANGE" is not a "Update Module".)

How can I delete lock entries generated by the function module "BAPI_OBJCL_CHANGE" ?

Thanks in advance.

Tom