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

IDoc getting Self locked while processing in foreground using BD87

former_member209217
Active Contributor
0 Likes
2,015

Hi Experts,

We are facing a problem with custom Inbound  Idoc . We are trying to post a goods receipt using a inbound function module .The Idoc is getting failed with a reason of

STO VLXXXXXXx Goods receipt failed: PO/Item 45XXXXXX/0000X

Message no. ZZ

Goods receipt into Intransit Storage Location failed for the above STO Reference and Supply Purchase Order and Item

This occurs frequently . While trying to reprocess it in foreground using BD87 it's getting self locked by the user itself who is trying to process it.

If you use BD87 to process the Idoc it will just loop for the number of lines on it. If you back  out using keys Shift+F3 every line the Idoc will process. We are trying to analyze the reason behind this weird behavior. Please let me know if you have any suggestions or work around for this.

Best Regards,

Lakshman.

6 REPLIES 6
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,146

Hi

First of all whatever message you are getting check in your inbound FM where this messsage is raised . If it is a custom message you can very easily found why it is raised may be in some enhancement.

Secondly prior to reprocessing just put a break point in posting FM and then start debugging.

Thanks

Nabheet

Read only

former_member209217
Active Contributor
0 Likes
1,146

Hi Experts,

Any possible suggestions?

Read only

0 Likes
1,146

Hi Lakshmanan,

Could you please check the below thread to process locked Idocs.

http://scn.sap.com/thread/1524302

Read only

Former Member
0 Likes
1,146

Hi Lakshman,

   This is caused by programme errror .The error only occurs If you post using function module MB_CREATE _GOODS _MOVEMENT via idoc and if item of different purchase order are transfererd i:e If one delivery is created for several sto .You can check with oss note 191294.

During processing the idoc it is observed that numerous lock are there .The lock are occuuring  during to update the the table .Kindly refer the oss note 1052206.

Please do mark it helpful if it would really help you .

Thanks,

Nalini

Read only

0 Likes
1,146

@Lakshmanan

I already tried the possible ways suggested by you but still it's not getting resolved

@ Nalini

We are not using FM MB_CREATE _GOODS _MOVEMENT , BDC program was being used for transaction MB01 .The OSS Notes suggested by you are not relevant to our current SAP Version.

The error messages getting populated while doing MB01 using BDC is "

Document 4511170652   does not contain any selectable items"

Read only

0 Likes
1,146

Hi Lakshman ,

  As you mentioned above you were trying to post goods receipt by using inbound function module .So that I was suggested above path .You did not mention anywhere you wanted it to post through bdc .So as per your requirement instead of use BDC you can use BAPI_GOODSMOVEMENT _CREATE .

Thanks,

Nalini