Application Development 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: 

How to Post Goods Issue an outbound delivery?

Former Member
0 Kudos

I am trying to PGI a delivery which is related to STO. I have tried using BAPI_GOODSMVT_CREATE but it appears it does not support movement type 641?? Does anyone have any advice on how to use this FM or another FM that could be used to PGI a delivery?

Here is the business process:

1. Create STO

2. Create Outbound Delivery with reference to STO

3. Create Transfer Order with reference to Outb Delivery

4. Confirm TO

5. PGI the delivery - This is the step I am currently trying to figure out!

Regards,

Brian

6 REPLIES 6

Former Member
0 Kudos

Yes, I've seen the above thread but it is not relevant to my scenario. It is for receiving goods against a PO, not Post goods issue.

Former Member
0 Kudos

Hi,

You need to change your GMCODE to 03 for GOODS ISSUE.

  • GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order

  • 02 - MB31 - Goods Receipts for Prod Order

    • 03 - MB1A - Goods Issue*

  • 04 - MB1B - Transfer Posting

  • 05 - MB1C - Enter Other Goods Receipt

  • 06 - MB11

Regards,

Gilberto Li

Former Member
0 Kudos

Have you actually used this BAPI to PGI a delivery and had it work? I have tried chagning the GM code and the movement indicator to no success. The issue seems to be that the BAPI was not intended to handle a PGI on a delivery or at least the movement type 641 (transfer order). I don't see any way around this but if someone has PGI'd a delivery as part of a transfer order I would appreciate hearing the details.

Former Member
0 Kudos

Hi,

Try this FM:

Regards,

Gilberto Li

Former Member
0 Kudos

That FM (WS_DELIVERY_UPDATE) should work but I have not tried it yet. I just succesfully tested using WS_DELIVERY_UPDATE_2. However, I did it by way of using an Idoc. I submitted idoc DELVRY03, message SHPCON, and FM IDOC_INPUT_DELVRY and the delivery succesfully PGI'd. This idoc process actually uses FM WS_DELIVERY_UPDATE_2 to update the delivery after it breaks down the Idoc. I am about to try using just WS_DELIVERY_UPDATE_2 to avoid the entire Idoc process. Thanks for your assistance.

Calling WS_DELIVERY_UPDATE_2 works. It will PGI the deliverywhich ultimatly creates the material documents with the correct movement types. In my case I needed movement type 641.

Edited by: Brian Busse on Jan 19, 2010 11:06 PM

Former Member
0 Kudos

Glad to hear it worked.