GI for outbound delivery is not getting done despite of the enough stock

Hi SAP Gurus,
I was trying to post the goods Issue for the outbound delivery through VL02N. But I'm getting the Error <b>"M7 021" Deficit of BA unrestricted use</b>. I've created a Tranfer Order for the Delivery and also confirmed the transfer order successfully. The delivery quantity is already there in the destination storage type/bin. But still the GI is not getting done. I'd moved the material from two different storage types to the origin storage type to fullfil the delivery quantity. And then I did LT03 ( TO for Delivery) to move the quantity out of the origin storage type to the destination storage type.
A help from someone of you will be much Appreciated.
Thanks
Dhaval Joshi

Hi there!!
Yes we are using batch split option. Delivery quantity was automatcally splitted into several batches using FIFO rule as all the materials in the system are batch managed. so when you do LT03(TO for delivery) the system will FIFO the bathes to fulfill the delivery quantity from the storage type(s) selected. Eventually the delivery quantity will be splitted into several batches and FIFO rule is realized.
I've checked the all the batches and it seems that the system is giving this error for the batches which were FIFOed from one storage type. Other batches which were FIFOed from a different storage type doesn't have this Error message for Deficit of BA unrestricted Use. I wonder if this has something to do with the storage type.!!!
I really appreciate all the vaulable inputs from all you folks.
Thanks
Dhaval

Similar Messages

  • BAPI_GOODSMVT_CREATE update VBFA or not for Outbound Delivery?

    Dear Gurus,
    When I try to use BAPI_GOODSMVT_CREATE to do the goods receipt for the outbound delivery as the replacement for MIGO transaction, I use 01 as movement code and the bapi create material document and updating MSEG. But it doesn't update VBFA so the items is still showed in MIGO and cannot post there (because it is already moved in BAPI in program.)
    Anybody have any suggestion for this situation? Thanks a lot and points will be rewarded.

    Hello,
    When you use BAPI_GOODSMVT_CREATE  to post Goods Receipt for outbound delivery, reference documents at header and line items should be delivery number and line numbers (BAPI2017_GM_HEAD_01-REF_DOC_NO, BAPI2017_GM_ITEM_CREATE-DELIV_NUMB_TO_SEARCH & BAPI2017_GM_ITEM_CREATE-DELIV_ITEM_TO_SEARCH). Then only document flow will be updated.
    Thanks,
    Venu

  • In VA01  In Schedule line Delivery date not getting populated

    Hello,
    We have developed enhancement for VA01 tcode.
    Depending upon the quatity entered for a material it should show one more item as free good.
    If quatity is 10 for a line item 10 then it should show item 20 by default same mateerial and quatilty as 1.We have done this it is working fine.
    But if we select free good item in our case it is 20 and click on schedule line item buttom all quaitity fields getting populated.but delivery date not getting populated for only free good.for line item 10 it showing properly.
    Can any one please suggest what i need to do in order to display delivery date for free good.
    Thanks in advance.
    Regards.

    Thanks for your response.
    Actually i have seen technical settings for that field.it is rv45a-etdat.this field has value till MV45AFZZ.seen in debugger.
    Looks like it is clearing some where after the above include.Any suggisitions welcome.Thanks again.

  • Delivery document not getting updated

    Dear Experts,
    Till date our client was using VL04 for creating DA for only domestic sales, now they
    are asking to provide facility to created DA for export shipment in VL04 and we have done customization for the same.
    Now there are two separate (delivery document number)  number ranges generated for
    domestic and export sales.
    Now my problem is :  delivery document number generated for export sales is not getting
    updated in database table VTRDI 
    Have any idea ??
    Please advice
    R.Karthik
    Edited by: Karthik R on Sep 30, 2009 5:31 PM
    Edited by: Karthik R on Sep 30, 2009 6:39 PM

    Hi Lakshmipathi  ,
    Thank you so much.....for ur valuable advice !!
    I have checked the table LIKP and LIPS ...and the export delivery number is getting saved
    in these two tables...
    But my problem is with creating shipment in VT01...as delivery number generated for export is not
    getting picked in VT01 but for normal domestic orders it is getting picked.
    I could not figure out where I went wrong??
    could you please guide me on this issue.
    R.Karthik
    Edited by: Karthik R on Oct 5, 2009 8:46 AM

  • Error while doing PGI for Outbound delivery using BAPI BAPI_GOODSMVT_CREATE

    Hi All,
    I am getting an below error while doing PGI for outbound delivery using the BAPI BAPI BAPI_GOODSMVT_CREATE:
    Goods movement not possible with mvmt type 601
    Can anyone suggest me what will be the solution for it?
    Regards,
    Raghuraman.k

    I tried with the above BAPI but it is not working.
    In my case a delivery has one line item with batch split and other line item without batch split.
    Below is my code :
    DATA : gwa_header_data TYPE bapiobdlvhdrcon,
           gwa_header_ctrl TYPE bapiobdlvhdrctrlcon,
           lv_delivery     TYPE bapiobdlvhdrcon-deliv_numb,
           git_item_data TYPE STANDARD TABLE OF bapiobdlvitemcon,
           gwa_item_data TYPE bapiobdlvitemcon,
           git_item_ctrl TYPE STANDARD TABLE OF bapiobdlvitemctrlcon,
           gwa_item_ctrl TYPE bapiobdlvitemctrlcon,
           git_return    TYPE STANDARD TABLE OF bapiret2,
           gwa_return    TYPE bapiret2.
    *Header data
    gwa_header_data-deliv_numb = '0808000002'.
    *Header Control data
    gwa_header_ctrl-deliv_numb = '0808000002'.
    gwa_header_ctrl-post_gi_flg = 'X'.
    *Delivery Number
    lv_delivery = '0808000002'.
    *Item data and its corresponding control data
    gwa_item_data-deliv_numb      = '0808000002'.
    gwa_item_data-deliv_item      = '900002'.
    gwa_item_data-dlv_qty         = 4.
    gwa_item_data-dlv_qty_imunit  = 4.
    gwa_item_data-fact_unit_nom   = 1.
    gwa_item_data-fact_unit_denom = 1.
    APPEND gwa_item_data TO git_item_data.
    gwa_item_ctrl-deliv_numb      = '0808000002'.
    gwa_item_ctrl-deliv_item      = '900002'.
    gwa_item_ctrl-chg_delqty      = 'X'.
    APPEND gwa_item_ctrl TO git_item_ctrl.
    gwa_item_data-deliv_numb      = '0808000002'.
    gwa_item_data-deliv_item      = '900003'.
    gwa_item_data-dlv_qty         = 6.
    gwa_item_data-dlv_qty_imunit  = 6.
    gwa_item_data-fact_unit_nom   = 1.
    gwa_item_data-fact_unit_denom = 1.
    APPEND gwa_item_data TO git_item_data.
    gwa_item_ctrl-deliv_numb      = '0808000002'.
    gwa_item_ctrl-deliv_item      = '900003'.
    gwa_item_ctrl-chg_delqty      = 'X'.
    APPEND gwa_item_ctrl TO git_item_ctrl.
    gwa_item_data-deliv_numb      = '0808000002'.
    gwa_item_data-deliv_item      = '000020'.
    gwa_item_data-dlv_qty         = 10.
    gwa_item_data-dlv_qty_imunit  = 10.
    gwa_item_data-fact_unit_nom   = 1.
    gwa_item_data-fact_unit_denom = 1.
    APPEND gwa_item_data TO git_item_data.
    gwa_item_ctrl-deliv_numb      = '0808000002'.
    gwa_item_ctrl-deliv_item      = '000020'.
    gwa_item_ctrl-chg_delqty      = 'X'.
    APPEND gwa_item_ctrl TO git_item_ctrl.
    BREAK-POINT.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
      EXPORTING
        header_data    = gwa_header_data
        header_control = gwa_header_ctrl
        delivery       = lv_delivery
      TABLES
        item_data      = git_item_data
        item_control   = git_item_ctrl
        return         = git_return.
    BREAK-POINT.
    IF git_return IS INITIAL.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDIF.

  • Delete assignment of HU from outbound delivery (VL02N) not working

    Hi All
    I have searched many threads to find the solution to be above problem but none of them was working for me, so posting the query again.
    I hava a dummy pick HU that I create for some purpose, finally i want to delete the assignment of the HU in the outbound delivery.(not to delete the HU completely). For me, the assignment of the HU vanishes from outbound delivery with 3 FM's. 'HU_GET_HUS' , 'V51P_DELETE_RELATIONSHIP' and 'HU_POST'.
    The problem is, when i PGI the delivery, the HU appears again in VL03N. I am not able to understand this strange behavior.
    I have tried all FM's like bapi_hu_delete etc, but they delete teh HU completely which is not my req. I heard abt this FM BAPI_HU_DELETE_FROM_DEL, but am workng in Ecc 5.0 and the FM doesnt exist.
    Pls help
    Thanks

    Hemanth,
    I recall that we used to update the HU status as well when we dissociated HU from delivery,  though can't remember the reason now.
    Pls check the VEKP-STATUS for HU after you have done with these 3 FM calls, I believe you have to update the status to 'BLANK' with the help of some FM, try it first if it works for you by direct updating it in table in Dev.
    BR,
    Diwakar

  • BAPI for GR for Outbound delivery

    Hi Gurus,
       I need to create a Goods Receipt against an Outbound Delivery ( movement type "101" ) using the BAPI BAPI_GOODSMVT_CREATE
    user is using MIGO transaction for the same. There he will choose the GOODS RECEIPT for OUTBOUND DELIVERY and enters the delivery number. The movement type "101" is used.
    I tried passing gm_code = 01 and mvt_type = 101 and mvt indicator as u2018Bu201D , but  Iu2019m getting an error message  'ENTER PURCHASE ORDER NUMBER'.
    I donu2019t have PO number . I just have shipment number from which I have found open outbound deliveries and now I need to do GR for each of the Outbound delivery.
    Please let me know if Iu2019m passing the right gm_code and mvt indicator to the BAPI or if Iu2019m missing any parameters. Iu2019m passing the following parameters to the BAPI ?
    Delivery. No. , delivery item, Doc. Date , Posting Date , ref document num , Quantity, Storage Location, External qty, External qty unit, matnr, werks .
    Your help is greatly appreciated.
    Thanks in advance.

    Thanks for replying. I went through the entire BAPI documentation but did not found anything related to GR for outbound deliveries.
    I searched some older posts in sdn related to this problem but almost all are unanswered question.
    I'm passing gm_code = 01 , mvt_type = 101 and have tried all movement indicator like 'B' , 'F' and blank.
    here is what I'm passing in my Bapi.Please let me know if I'm missing something or if I'm passing something incorrectly.
    gm_header-pstng_date = sy-datum.
          gm_header-doc_date   = sy-datum.
          gm_header-ref_doc_no =  wa_lips-vbeln. "The Outbound delivery Number
          gm_code-gm_code      = '01'.
         MOVE '101'              TO     gm_item-move_type.
          gm_item-material             = wa_lips-matnr . "Material Number from the Delivery.
          gm_item-plant                = wa_lips-werks . "Receiving Site.
          gm_item-stge_loc             = wa_lips-lgort. "Receiving Storage Location.
          gm_item-entry_qnt            = wa_lips-lfimg.
         gm_item-entry_uom           = wa_lips-vrkme.
          gm_item-ENTRY_UOM_ISO        = wa_lips-vrkme.
          gm_item-mvt_ind              = 'B ' .
          gm_item-deliv_numb           = wa_lips-vbeln.
          gm_item-deliv_item           = wa_lips-posnr.
          gm_item-DELIV_NUMB_TO_SEARCH = wa_lips-vbeln.  "delivery number
          gm_item-DELIV_ITEM_TO_SEARCH = wa_lips-posnr. "delivery item
    if I donot pass any value in mvt indicator the error I'm getting is 'Update control of movement type is incorrect (entry 101 X X)'
    if I pass 'B' in mvt indicator error is 'Material document data and PO data do not match (Plant)'
    if i pass 'F' , erro ris 'Order  not found or not permitted for goods movement'.
    Please help me. This is kind of critical issue. or please suggest if I can do GR for outbound delv in any other way.
    Thanks...!!!!

  • Manual (Dynamic) Interim Destination Storage Type instead of 916 for Outbound delivery T.O

    HI,
    we would like to create transfer order manually for outbound delivery.here both source and destination need to be given manual
    i know that the interim storage type 916 given in the interface movement type , while T.O creation for the outbound delivery
    we would like to have the destination interim storage type as a manual entry so i kept both destination and source storage type blank,and system permits to do picking (T.O Creation  )
    Created Transfer Order, with source and destination details and confirmed T.O.
    But when i do the goods issue getting error as
    Storage bin MT1   does not exist (check your entry)
    Message no. L9009
    when i checked table LIPS-  LGTYP and   LGPLA , both fields are empty.
    Please let me know how can i make this functionality.
    Thanks.

    The requirement is , my interim storage areas are real storage areas,for which goods are issued the stock goes to interim storage area and PGI will be made after verification ,but the interim storage area is dependent on the customer , not a fixed one which we will know only when we deliver the goods .
    I use that process too, with verification on the final storage area before shipping, but what I do is to use SD in conjunction with WM. I use the gates in the Outbound Delivery, to separate the stock, since WM creates a bin in 916 for each delivery document and I can use that to know in which gate each quant is.
    That way, everything goes to 916, but I have a report that tells me which stock is near each gate, so I can run the audit process before shipping.
    It's not completely standard, but WM standard is very hard to use without an additional UI layer on top anyway.

  • Plan order created for Outbound delivery

    Hi Gurus,
    For some materials, When MRP is run it generates plan order for Outbound material with same qty as that of outbound delivery.
    What setting should be done as not to generate plan order for outbound delivery.
    thnx in advance.

    Hi,
    There is nothing in message control tab for outbound parameter(we20) and even there are multiple changes in delivery.
    What we do is as soon as the delivery is created .  Z trnx is executed  which changes the dec whse status A(Relevent ) to  B (distribution) simulteneously outbound Idoc is created and delivery details send to whse.
    Normally there will be one outbound idoc per delivery , but in this case there are 2 (duplicate)

  • Goods Receive for Outbound Delivery Without Reference using MIGO

    Dear Colleague ...
    We might need your insight on the case below related to Goods Receive of Outbound Delivery without Reference using MIGO:
    (1) In the current SAP Enjoy screen of MIGO, we are allowed to select the reference document (e.g. = PO, Material Document, Inbound Document, Outbound Document, etc.)
    (2) We did 3 (three) kind of test set: GR for Inbound Delivery, GR for Outbound Delivery with STO and GR for Outbound Delivery without reference.
    (3) The first 2 (two) cases work just find with MIGO.  We believe it is because the receiving plant is pretty much determined in the reference document, which is PO (case 1) or STO (case 3)
    (4) However, the last case came up with the error message "Goods receipt not possible for delivery 8000610236: error code 5".  We believe that this is the standard design of SAP, that the receiving plant is required and it is not defined explicitly in the delivery document.
    (5) Moreover, we also believe that that's the reason why SAP (via the Logistic Execution module) provide the Handling Unit and Shipment, which can be used to perform such receive function, which will imply the MM posting (goods issue and goods receive) IF there is stock transfer involved.
    Appreciate for any thoughts or input on the above.  Many thanks,
    Alvon Sibarani

    use transaction mb0a it will work for the scenario.

  • Condition table for outbound delivery

    Hi guys
    Is it possible to create a new condition table for outbound delivery output type with a field „sold-to”, although this field is available in the field catalogue , it does not show up during a table creation in the FieldCatlg,why?
    Your quick response appreciated .
    Regards
    Dominik

    Hi Dominik,
    You need to Append the new fields which you want to see in the Field Catelog to create a condition table.
    Please follow the following process
    Got to T. Code SE11 andGive the Table name
    Then click on the Button Append Structure and
    Key in the name of you append starting with letter 'Z'.
    Add fields whcih you want.
    Activate the table.
    Hope this is clear.
    Reward if helpful.
    Thanks,
    Praveen

  • LSMW for Outbound Delivery

    Hi,
    I am not able to find an LSMW for creating GR for outbound delivery. I tried using recording in MIGO but it did not work. Also MB1C is not working for outbound delivery. Please help.
    Regards,
    Anubhav

    Hi
    I think it is better to write a Z program/ BDC to have a mass GR creation of an outbound delivery.
    or
    You have an Auto Goods receipt using confimations. If we activate Auto GR in customizing for Confirmation control key. Once confirmations(ASN) is created a GR will be created automatically.
    Hope this helps
    Regards,
    Sasi

  • BAPI for posting equivalent of MIGO GR (101) for OUTBOUND DELIVERY (R05)

    Hi everyone
    I am looking for a BAPI or function module to do the above; it is the second leg of an STO posting between plants, the first leg being where the goods issue is posted against the outbound delivery into in-transit stock (IM movement 641), with the second being to GR this stock with a 101, which will take it out of in-transit and into unrestricted stock at the destination plant.
    I have tried BAPI_GOODSMVT_CREATE from every angle but have come to the conclusion it does not cater for this. I also tried to do the GR against the STO (P/O) from which the delivery was created, but this does not work as the follow-on documents for the delivery will not be updated.
    Any suggestions?
    Thanks
    Andrew

    hi,
    i try to doing posting goods issue for outbound delivery out fo the regular progression.
    the posting is automaticly as part of outside program.
    thanks alot,

  • Input parameters for BAPI_GOODSMVT_CREATE --MIGO--GR for Outbound Delivery

    Hi Friends,
      We have to create a Goods Receipt against an Outbound Delivery ( movement type "101" ) using the BAPI <b>BAPI_GOODSMVT_CREATE</b>.
    In online the user is using <b>MIGO</b> transaction for the same. There he will choose the GOODS RECEIPT for OUTBOUND DELIVERY and enters the delivery number. The movement type "101" is used.
      Could you please tell me the GM code and the required fields to be passed for the above scenario.
    I have gone through the example program in the link...
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    <b>but unable to find how to use this BAPI for simulating MIGO transaction.</b>
    <b>The fields available are with us are...</b>
    Delivery. No. --- Doc. Date - Posting Date-Quantity-Storage Location-
    Reason for movement-External qty-External qty unit-Goods recipient-Excise Selection
    Are these fields sufficient for doing MIGO with this BAPI or do we require more fields???
    Thanks and Regards,
    Bharat

    see the following code. it may be useful.
      LOOP AT I_TAB.
          count = sy-tabix.
          SELECT SINGLE * FROM ZMM_GR_UPLOAD1
                                    WHERE SOLOMON_GR = I_TAB-SOLOMON_GR AND
                                    SOLOMON_GRDAT = I_TAB-SOLOMON_GRDAT.
          IF SY-SUBRC = 0.
            I_TAB-FLAG = 'C'.
            modify i_tab index count.
            concatenate 'File Name : ' name into i_msg1.
            append i_msg1.
            CONCATENATE 'ERROR  PO : ' I_TAB-SOL_PONO
                '  WAS ALREADY UPLOADED' INTO I_MSG1.
            APPEND I_MSG1.
            CLEAR I_TAB-FLAG.
            CONTINUE.
          ELSE.
            REFRESH I_ITEMS.
            CLEAR I_ITEMS.
            CONCATENATE I_MAIN-SOLOMON_GRDAT+4(4)
                        I_MAIN-SOLOMON_GRDAT+2(2)
                        I_MAIN-SOLOMON_GRDAT+0(2) INTO G_DATE.
            gmhead-pstng_date = G_DATE.
            gmhead-doc_date = sy-datum.
            gmhead-pr_uname = sy-uname.
    "01 - MB01 - Goods Receipts for Purchase Order
            gmcode-gm_code = '01'.
            refresh itab.
            clear itab.
            SORT I_MAIN BY SOLOMON_GR.
            LOOP AT I_MAIN WHERE SOLOMON_GR = I_TAB-SOLOMON_GR.
              itab-move_type  = '101'.
              itab-mvt_ind    = 'B'.
              itab-plant      = I_MAIN-WERKS.
              itab-material   = I_MAIN-MATNR.
              itab-entry_qnt  = I_MAIN-ERFMG.
             itab-stge_loc   = 'OMR1'.
    itab-move_stloc = pcitab-recv_loc.
             itab-REF_DOC = 'exnum123'.
              itab-NO_MORE_GR = 'X'.
              itab-WITHDRAWN = ''.
              itab-stge_loc   = I_MAIN-LGOBE.
              itab-po_number  = I_MAIN-EBELN.
              itab-po_item    = I_MAIN-EBELP.
              itab-unload_pt  = I_MAIN-ABLAD2.
              append itab.
            ENDLOOP.
            if not itab[] is initial.
              call function 'BAPI_GOODSMVT_CREATE'
               exporting
                   goodsmvt_header             = gmhead
                   goodsmvt_code               = gmcode
                 *   TESTRUN                     = ' '
              IMPORTING
                  goodsmvt_headret            = mthead
             *   MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
               tables
                 goodsmvt_item               = itab
      GOODSMVT_SERIALNUMBER       =
                return                      = errmsg.
              clear errflag.
              loop at errmsg.
                if sy-tabix = 1.
                  concatenate 'File Name : ' name into i_msg1.
                  append i_msg1.
                  concatenate 'Sol PO : ' I_TAB-SOL_PONO ' '
                   I_TAB-SOL_PODT into i_msg1.
                  append i_msg1.
                endif.
                if errmsg-type eq 'E'.
                  write:/'Error in function', errmsg-message.
                  errflag = 'X'.
                else.
                  write:/ errmsg-message.
                endif.
                move errmsg-message to i_msg1.
                append i_msg1.
              endloop.
              if errflag is initial.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                WAIT          =
              IMPORTING
                RETURN        =
               commit work and wait.
                if sy-subrc ne 0.
                  write:/ 'Error in updating'.
                  exit.
                else.
                  concatenate 'File Name : ' name into i_msg1.
                  append i_msg1.
                  concatenate 'Sol PO : ' I_TAB-SOL_PONO ' '
                   I_TAB-SOL_PODT into i_msg1.
                  append i_msg1.
                  write:/ mthead-mat_doc, mthead-doc_year.
                  ZMM_GR_UPLOAD1-SOLOMON_GR = I_TAB-SOLOMON_GR.
                 CONCATENATE I_TAB-SOLOMON_GRDAT+4(4)
                       I_TAB-SOLOMON_GRDAT+2(2)
                       I_TAB-SOLOMON_GRDAT+0(2) INTO
                        ZMM_GR_UPLOAD1-SOLOMON_GRDAT.
                  ZMM_GR_UPLOAD1-SOLOMON_GRDAT = I_TAB-SOLOMON_GRDAT.
                  INSERT ZMM_GR_UPLOAD1.
                  COMMIT WORK.
                  I_TAB-FLAG = 'C'.
                  MODIFY I_TAB INDEX COUNT.
                  CONCATENATE mthead-mat_doc  mthead-doc_year
                             into i_msg1.
                  append i_msg1.
                 perform upd_sta.
                endif.
              endif.
            endif.
          ENDIF.
        ENDLOOP.

  • BAPI for outbound delivery without order reference???????????????????

    hello folks
    i want to a bapi for transaction <b>VL01NO</b>. this transaction is used for creating outbound delivery <b>wihtout a order reference</b>. I did a search but was not able to find a bapi pls help.

    Hi,
    Could you please send me the sample code for BAPI_DELIVERYFREE_PROXY_CREATE? I am using the IDOC for outbound delivery w/o order reference. I didnt find any standard process code for this..
    Any suggestions on the same??
    Thanks,
    Prasad

Maybe you are looking for