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

The IDOC INBOUND function is locking an object

Former Member
0 Likes
1,028

Hi ,

I have created a wrapper bapi around IDOC_INPUT_SHPMNT , this is because i need to change the shipment using a BDC. No the problem is that once the control comes out of IDOC_INPUT_SHPMNT the locks are still maintained on the shipment.Now is this beacuse i am using WE19 to test the program or will i have manually realease the lock from this. Any pointers with function modules will be helpful.

Hi ,

I have created a wrapper bapi around IDOC_INPUT_SHPMNT , this is because i need to change the shipment using a BDC. No the problem is that once the control comes out of IDOC_INPUT_SHPMNT the locks are still maintained on the shipment.Now is this beacuse i am using WE19 to test the program or will i have manually realease the lock from this. Any pointers with function modules will be helpful.

4 REPLIES 4
Read only

Former Member
0 Likes
752

IDOC_INPUT_SHPMNT will be locking the shipment. The lock will not be released until the IDoc has finished processing.

You could remove the lock yourself.

Can you not use a user exit in IDOC_INPUT_SHPMNT to provide your solution instead of running a BDC yourself. If your BDC fails how will this error be reported back to the IDoc. You would then not be able to re-process the IDoc either.

Read only

0 Likes
752

is there a user exit in this function module?

Read only

0 Likes
752

Do a search in the function for the text 'CUSTOMER FUNCTION'.

There will be several I would suspect.

I would not be using a commit work to remove the lock. That is a tad bit dodgy.

Read only

Former Member
0 Likes
752

YOu can use a commit work or rollback work statement after the call to the IDOC_INPUT_SHPMNT to avoid locks.

Regards,

Ravi