BAPI_GOODSMVT_CREATE-Goods receipt in with sd-delivery in another plant?

Hello to all.
I have a strange situation.
We use the mentioned bapi to post goods-receipts.
In this case we use  the movement type 101.
Inside sap-standard , inside the migo, there is a possibility to do the same, online.
And also, if a sd-delivery from another plant is present.
The posting initiated by the migo is more complete as it fills the entire document flow properly.
I would like to trigger exactly this behaviour in the background, via RFC-call.
As I now use the BAPI_GOODSMVT_CREATE, the documentary told me, that this is not possible.
How else can I achieve this ?
Does anybody know the solution ?
Will I have to do it via WS_DELIVERY_UPDATE_2 instead ?
Best regards
Robert.
Edited by: Robert Dornfeld on Nov 11, 2011 12:04 PM

Refer Note 424014 - BAPI: Goods receipt for the outbound delivery
When you post a goods receipt for an outbound delivery (with reference to a stock transport order) with Bapi BAPI_GOODSMVT_CREATE, you must fill the following fields so that the purchase order as well as the delivery are updated correctly:
    GOODSMVT_ITEM-MOVE_TYPE (Movement type): generally movement type '101'
    GOODSMVT_ITEM-DELIV_NUMB (Delivery)
    GOODSMVT_ITEM-DELIV_ITEM (Delivery item)
    GOODSMVT_ITEM-PLANT      (Plant)
    GOODSMVT_ITEM-STGE_LOC   (Storage location)
    GOODSMVT_ITEM-ENTRY_QNT  (Quantity)
    GOODSMVT_ITEM-ENTRY_UOM  (Unit of measure)
    GOODSMVT_ITEM-PO_NUMBER  (Purchase order)
    GOODSMVT_ITEM-PO_ITEM    (Purch. order item)
    GOODSMVT_ITEM-MVT_IND    (Movement indicator) = 'B'
Now the order history and the document flow of the delivery are updated. In order to use fields DELIV_NUMB and DELIV_ITEM, you must implement the enhancements of Note 356665.
If the delivery note number / delivery (field MKPF-XBLNR) is supposed to be updated in the material document header, field GOODSMVT_HEADER-REF_DOC_NO must be filled with the delivery number when you call the Bapi BAPI_GOODSMVT_CREATE.
The field should only be filled if the delivery number is unique.The delivery is transferred at item level (table GOODSMVT_ITEM, field DELIV_NUMB) so that different delivery numbers can occur in a material document.In this case, there is no unique delivery so that a blank field GOODSMVT_HEADER-REF_DOC_NO would be useful.

Similar Messages

  • Goods Receipt Report With 101 movement type using bapi_goodsmvt_create

    Dear Abapers,
            i am getting some problem, i got requirement like Goods Receipt Report with 101 movement type using
    bapi_goodsmvt_create and data should upload through excel sheet.
    still facing problems, i have searched sdn forum n sdn code also, but relevant answer i could not find.
    What are all the inputs i need to take and please give some valuable inputs to me.
    please do help ..... thanks for advance..
    Thanks & regards,
    Vinay.
    Moderator message : Spec dumping is not allowed, show the work you have already done. Thead locked.
    Edited by: Vinod Kumar on Sep 27, 2011 10:58 AM

    Dear Abapers,
            i am getting some problem, i got requirement like Goods Receipt Report with 101 movement type using
    bapi_goodsmvt_create and data should upload through excel sheet.
    still facing problems, i have searched sdn forum n sdn code also, but relevant answer i could not find.
    What are all the inputs i need to take and please give some valuable inputs to me.
    please do help ..... thanks for advance..
    Thanks & regards,
    Vinay.
    Moderator message : Spec dumping is not allowed, show the work you have already done. Thead locked.
    Edited by: Vinod Kumar on Sep 27, 2011 10:58 AM

  • MIGO Goods Receipt - error with Movement Types on GR from Inbound Delivery

    Hi,
    I am getting an error message when processing a Goods Receipt (MIGO) against an Inbound Delivery with as 2 lines with different movement types, a standard 101 and a 970 (the latter being a user defined movement type for free goods).
    The error message I get is 'Movement type 970 is not allowed; only 101 is allowed
    Message no. BORGR622'
    This error message only occurs with a Goods Receipt against an Inbound Delivery, we are able to process a similar Goods Receipt using MIGO against a Purchase Order, with two different movement types 101 and 970, without any issues. 
    It is only a problem with a GR against an Inbound Delivery which is necessary in our MM solution.
    As anybody and ideas how to resolve this?  I cannot see anything obvious in config, and have not spotted any SAP OSS notes either.
    I should mention that we can process a single line Inbound Delivery and Goods Receipt for the Movement Type 970 also!

    Thanks for the reply.  The Price Control Indicator is 'S'.
    The solution was set up at my company before I joined, but the different movement type is to enable the free goods stock to make a Finance posting to a Bonus Stock GL Account.  Bonus stock sale update the same account.
    As I mention the '970' movement type worked fine with Goods Receipt against a Purchase Order (it was coded into to the user exit). 
    The MM procedures were changed to use the Inbound Delivery matched to the PO, this had a result that when the Goods receipt was posted in MIGO it posted as 101 movement, as the PO number was not being recognised.
    By making a further change to the user exit we able to suggest the '970' movement type, but now get the BORGR622 error I refer to.
    '511' is not possible against an inbound delivery either.

  • How to post good receipt for an inbound delivery with HU in the stock?

    Hello,
    We have an inbound delivery of a purchase order with 10 Handling Units inside on.
    The HU's has been put in a storage bin (by transport order + confirmation) before a good receipt has been posted for the whole delivery.
    Due to this it's not possible to post good receipt for the inbound delivery, and the available stock quantity is in minus on zone: '902-GR Area External Rcpts' since  the handling units are already in a storage bin.
    Can anyone help me on this matter?
    Thanks

    Hi,
    my situation is:
    - a WM managed warehouse, society A;
    - a HU managed warehouse (without WM), society B;
    - a purchasing process of HU from society A towards society B.
    Society B have a scheduling agreement; when a delivery schedule appears, in society A born a sales order and a delivery. After the registration of the delivery good issue, an idoc transfer information for inbound delivery creation.
    This process is ok without WM, but with a WM managed warehouse the idoc has the following problem:
    "V51VP - item was not found - process cancelled".
    Can you help me to transfer these HU?

  • Post goods receipt against a Inbound Delivery(VL32N) FM or BAPI Method

    Hi Expert,
       I am looking for a Function Module or BAPI Method to Confirm the Inbound Delivery i.e. that can post Goods Movement Against a Delivery Document.
    My scenario is Create PO-> create Inbound delivery-> post Goods Receipt.
    Regards,
    Kapil.
    Edited by: Kapil Kumar Gupta on May 5, 2011 2:46 PM

    In OSS note 520813 it is said:
    16. Question:
    Which goods movements should I not post using the BAPI_GOODSMVT_CREATE BAPI?
    Answer:
    You should not post the goods receipt for the inbound delivery using BAPI_GOODSMVT_CREATE BAPI because the document base and the status of the inbound delivery are not updated. See Note 199703.
    If you check OSS note 199703 you can see that it is valid from release 45 to release 500.
    Assigned to this note you can find another: 1050944 (it's worth of reading!!!).
    I feel there are contradictions here - it might possible that the first note (520813) is not updated properly. (As far as I remember in my case this BAPI was working properly too).
    In my opinion you should send a message to OSS and ask them whether the statement in note 520813 is still valid or not - you should also tell them that the referred note (199703) is not applicable to ECC6.0.
    (there's a setting in ECC6.0 which enables that document flow is updated if GR is posted via MIGO with reference to IBD - V_TVSHP-SPE_INB_VL_MM)
    I would like to ask you if you have a reply from them, please update this thread - it may be helpful for us.
    Edited by: Csaba Szommer on May 9, 2011 2:34 PM
    One more remark: (based on OSS note 1050944) it seems that you cannot use it only in case of packing (IBD with HU).
    Edited by: Csaba Szommer on May 9, 2011 3:05 PM

  • BAPI o FM for posting goods receipt of an inbound delivery

    Hi
       I have a program that post a goods receipt for an inbound delivery using batch input of transaction VL32 (in the first screen of this trx pushing button "Post Goods Recepit"). We need to change it for a BAPI o FM that makes the same process. I've seen other threads of the same issue that makes reference to BAPI_GOODSMVT_CREATE. I've checked it using value 05 of GM_Code
    (other goods receipt) but it doesn't work (I think the movement type I using is not compatible with the code 05). Can anybody tell me if this BAPI can do what i need? In that case, anybody have an example code?  I've seen other FM: MB_CREATE_GOODS_MOVEMENT. Is that a better choice? Example code will be much appreciated
    Thanks and regards
    Dani

    Check whether there is any BTE from FIBF and use it accordingly.
    Also check from SWEL whether any event is getting published when the GR is being done.
    If none of the above works try to find some user Exit where you can code the needful.
    Thanks
    Arghadip

  • Goods receipt not possible for   delivery 80016425: error code 4   in MIGO

    Hi friends,
    I created STO from ME21N tr.code(document type:UB), then I created outbound delivery from VL10B tr.code based on STO.
    After that, goods issue is made by vl02n.Lastly , when I want to make  a goods receipt based on outbound delivery from MIGO
    (with mvmt type:101),it gives me error about"Goods receipt not possible for   delivery 80016425: error code 4   in MIGO tr.code" .
    Take your opinions

    Hi,
    Error 4 indicates there is/are no delivery item/items.
    Check following options:
    option-1--->Check material number extended to the both plants with storage locations
    option-2--->Check the material received already WRT  the delivery
    option-3---> Check confirmation control key in  material that needed in creation of an inbound delivery to have GR process
    option-4--->Check The latest goods receipt date in STO
    option-5--->Check(done any setting) if any billing to be done after PGI and then can do GR WRT delivery
    Regards,
    Biju K

  • Goods receipt not possible for delivery 800001597: error code 4

    Hi,
    When doing goods recipt for outbound delivery in MIGO, I am getting the below message:
    Goods receipt not possible for delivery 800001597: error code 4
    When going in details of error messgae:
    For error 4 : Check the delivery and its document .
    Document flow is as below:
    Step 1. PO Created
            2. Delivery created with ref to PO
            3.Picking
            4. Shipment Created
            5. Goods Issue complete.
    Now what i have to check.
    Thanks in advance.
    Regards

    Check the link Re: MIGO
    Also check OSS Note 458770 - GR for outbound delivery shipping units with batch split and Note 314765 - M7865 during GR f. delivery w/ default values 102 if it applies to your SAP version.
    Regards

  • Goods receipt not possible for delivery 80172554: error code 8

    Hi all,
    I got this error but the description does not helps to understand the issue.
    Goods receipt not possible for delivery 80172554: error code 8
    Message no. M7865
    Diagnosis
    The goods receipt for the delivery cannot be posted.
    The error according to the error code:
    1. The delivery does not exist.
    2. The delivery type is unknown.
    3. The delivery is not goods issue posted.
    4. There are no delivery items.
    5. The receiving plant could not be determined.
    6. The delivery items have already been goods receipt posted or contain zero quantities.
    7. Goods receipt(effect)movement type to goods issue movement type could not be determined.
    8. It is not currently possible to block the delivery.
    Procedure
    Error code 1      : Check your entry.
    Error code 2,3,4,6: Check the delivery and its document flow.
    Error code 5      : The delivery must be related to a purchase order or
                        the customer must be a retail business.
    Error code 7      : Check the settins for your movement types.
    CD

    Please check this answered link:
    Re: MIGO
    Re: Inter comapny  PO-
    Goods receipt not possible for delivery 800015869: error code 1
    STO Problem while doing GR against outbound delivery
    Edited by: Afshad Irani on Jun 2, 2010 7:13 PM

  • Goods receipt not possible for delivery 800015869: error code 1

    Dear friends,
    I am doing MIGO-GR for outbound delivery, but getting error once inputting outbound delivery no.
    Goods receipt not possible for delivery 800015869: error code 1
    Message no. M7865
    Diagnosis
    The goods receipt for the delivery cannot be posted.
    The error according to the error code:
    1. The delivery does not exist.
    2. The delivery type is unknown.
    3. The delivery is not goods issue posted.
    4. There are no delivery items.
    5. The receiving plant could not be determined.
    6. The delivery items have already been goods receipt posted or contain zero quantities.
    7. Goods receipt(effect)movement type to goods issue movement type could not be determined.
    8. It is not currently possible to block the delivery.
    Procedure
    Error code 1      : Check your entry.
    Error code 2,3,4,6: Check the delivery and its document flow.
    Error code 5      : The delivery must be related to a purchase order or
                        the customer must be a retail business.
    Error code 7      : Check the settins for your movement types.
    Any poniters to check the setting in PO or delivery or any setting in SPRO.
    Regards
    Ashutosh

    Hi Anupam,
    That is the requirement of my scenario
    That is happening in intercompany posting.
    I am explaining to you.
    say total stock for article AR is 1000 ( In DC --A it is 500 and in store B it is 500)
    I have two company codes X and Y
    One DC (A) belongs to X and second store (B) belongs to Y.
    I have stock available for say article ( am working here in IS Retail  instead of material ) in both DC --A and Store --B.
    Now I have created PO thru replenishment planning WRP1 , now in PO supplying plant is DC.
    Now I did delivery thru VL10B and then picking and then PGI.
    Now my stock is reduced in DC by PO quantity created.( let us assume it is 100)
    So now total stock in DC=400
    Now this stock is in transit we can check thru MB5T. so total stock in transit = 100
    Now I have to do GR against delivery , if I will do GR for 100 nos , there will be no stock in transit
    and stock of receivibg store (B) will increase by 100 nos.
    But I am not able to do GR against delivery so I did GR against PO for say 50 nos. In this case stock in store is increase by 50 nos.
    But there is another stock in transit available=50
    Now why GR is not happening against delivery but it is happening against PO???
    Any pointers

  • Goods receipt not possible for delivery 540039784: error code 4

    Dear Friends,
    While making GR against out bound delivery for a STO system throws following error:
    Goods receipt not possible for delivery 540039784: error code 4
    Message no. M7865
    Kindly help me out.
    Ashok

    Hi
    This Error indicates There are No Delivery items.
    Check the delivery and its document flow.
    Check the GR Refernce document being used for MIGO
    Regards
    Anand

  • BAPI for Post Goods Receipt - VL02N(SD) - Return Delivery

    Hi All,
    Could you plz tell me the bapi or function module or bdc for post goods rceipt for return delivery. I am ucing the bapi called BAPI_GOODSMVT_CREATE but it throughing an error. u can not do the these movement types.like this. Here i am using the movement types as - 632,651 and 653. could any one hlp me regarding this issue. its urgnt and i am not able to get the reason.it is working for normal delivery when i use the same for return delivey with the above movement types its not working.
    VL02N - return delivery number -
    > Post goods receipt.
    thnks
    yerukala setty

    Hi,
    Use BAPI 'BAPI_OUTB_DELIVERY_CHANGE'
    Check out this thread, this question is being solved before.
    bapi for vl02n about post goods issue
    Thanks,
    Krishna

  • Deactivate Goods receipt indicator on PO Delivery Tab

    Dear Experts
    My client would like that system would not require goods receipt (non-GR based PO) for PO line items of respective material group (services) - goods receipts should even not be possible so GR indicator on the delivery tab should be ticked-off.
    Since the client is using one-client system with multiple company codes on same client this requirement should be valid not on a client- but on a company code- or plant-level.
    Please advise how to approach to this challenge. Is it possible to set it up via customizing or some programming is required.
    Thank you in advance for any hint.
    Best regards
    Miha Egart

    Hi Jürgen,
    I have checked the Network, it is not stock managed.
    But there is another PO in which the network is not stock managed but The GR indicator is set for the PO.
    I am doing PR conversion through ME59 just against info record not against contract.
    Instead of automatically converting PR through ME59/ME59N, if I am trying to do it directly through ME21N, the GR tick is set. But the client will not do this, they will do automatic conversion of PR's only.
    Can you please suggest some other possibilities.
    Regards,
    Krishna Bharadwaj.

  • Need BAPI for MIGO to create a Goods Receipt against PO &Outbound Delivery

    Hi Friends,
    GRN’s (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
    I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
    PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
              If PO Number = EKKO-EBELN    GR against Purchase Order
                            = LIKP-VBELN      GR against Outbound Delivery
    Based on the above condition I need to create a Goods Receipt. 
    Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
    The fields available are with us are...
    Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number… SLED
    Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
    Please provide sample code if possible.
    Waiting for replies,
    Thanks and Regards,
    Sudha

    Hi Friends,
    GRN’s (Good receipt notifications) created in DHL (Non SAP system) will need to be communicated to SAP.
    I need to post goods receipt using input data in MIGO. Is there any BAPI that i can use.The requirement is like below:
    PO number field in output file is checked against entries in EKKO-EBELN, if a match is found the GR is posted against a Purchase Order otherwise LIKP-VBELN is checked and if a match is found GR is posted against an Outbound Delivery.
              If PO Number = EKKO-EBELN    GR against Purchase Order
                            = LIKP-VBELN      GR against Outbound Delivery
    Based on the above condition I need to create a Goods Receipt. 
    Could you please tell me the GM code, movement types and the required fields to be passed for the BAPI?
    The fields available are with us are...
    Header text. - Bill of Lading- Posting Date-Quantity- UOM--- Vendor Batch / Batch / Serial No --- PO Number or Delivery Number… SLED
    Are these fields sufficient for doing MIGO with the BAPI or do we require more fields???
    Please provide sample code if possible.
    Waiting for replies,
    Thanks and Regards,
    Sudha

  • BAPI_GOODSMVT_CREATE Goods Receipt Reversal

    Hello All,
    According to SAP docs I need to use goodsmvt_code-gm_code = '06' but with movement type 102 I get an error message "Goods movement not possible with movement type 102". Works fine if I use regular goods receipt code '01' and movement 102. Please let me know if I’m missing something here.
    Also, how do you post goods receipt reversal referencing goods receipt and not PO with BAPI_GOODSMVT_CREATE?
    Thanks,
    Leon

    Hi Leon,
    I found the following documentation by SAP seems to be helpful for you.
    <b>You can use the Cancel method to reverse goods movements. But you may also want to cancel a goods movement without referring to a material document (see the Cancel method).
    If you want to work without referring to the document, you have to fill the field BAPI_GM_ITEM_CREATE-XSTOB in the interface (import table GOODSMVT_ITEM). In this case, the system converts the movement type assigned in the interface to the reversal movement type. Alternatively, you can set the reversal movement type in the interface. In this case, the BAPI_GM_ITEM_CREATE_XSTOB field must be transferred blank.
    If you want to cancel a goods movement with reference to a reservation (without using the Cancel method) you can only transfer the field BAPI_GM_ITEM_CREATE_XSTOB if it is filled. Movement types are not transferred when you post with reference to a reservation, as the movement type is contained in the reservation item.</b>

Maybe you are looking for

  • Lenovo Miix 2 10: Sleep and shut down causes restart

    I fairly recently ran into a problem with the Miix 2 10. It works perfectly fine otherwise, apart from two issues: 1. I can't put the computer to sleep. Hitting the power button, or selecting sleep from the power menu, or waiting long enough for slee

  • Not getting any audio

    Just setting up a new AppleTV and all is good except not getting any audio -- help

  • What's up with caption ?

    I have a page with a table thereon - http://aws.gws-sitetest.com/a_2008_exhibition_sch.php This table has a caption, i.e., <table> <caption>blah</caption> Note that the caption is way left of the table which has a border so you can see it. Why is tha

  • How to use Smart cut and what are the restrictions to use this

    Hello, How to use Smartcut and what are the restrictions to use this. is it possible in version 9. and is it safer to use it in real iproject mplementation? Thanks in advance

  • USB Sharing switch

    I'm using a USB sharing switch to choose which computer gets the input from my mouse/keyboard. They are connected to a hub which is connected through the switch to my desktop and laptop. I recently got a new, smaller and simpler hub, without fancy au