Goods Movement and Updation of outbound delivery.

Hi,
I am using BAPI_GOODSMVT_CREATE to do a transfer posting with movement type 411K.After doing the posting I am updating the outbound delivery for the PO using BDC recording.
The problem is that after doing the transfer posting when I try to update the outbound delivery with picked quantity and picked date it is giving an error that "Article (the article number) is blocked".Due to this the outbound delivery is not getting updated.
Could you please help me to understand why I'm getting the error and how to eliminate it? Need your help urgently.
Thanks,
Sandeep.

Hello Shashank,
Thanks for your reply.
Please let me know do these bapis mentioned by you fulfill my requirement.
Any sample code u have to use this bapis.
Regards,
Tarun

Similar Messages

  • Goods Movement and Billing status at header level

    Hello,
    Im new to this topic and have some very basic questions
    Will WBSTK field be updated with goods movement status for a given sales order number in VBUK table ?
    Similarly, will FKSTK/FKSTK or BUCHK will be updated with billing status ?
    I know that for a given delivery document number, I can track the status at the item level.
    But my aim is to know the overall goods movement and billing status at the order header level.
    Any clues will be of great help.
    Thanking you in advance.
    Regards,
    Preethi

    Hi Preethi,
    A sales order does not determine a billing status for delivery related billing, field VBUK-FKSTK is only determined for delivey.
    Just because of this, you will not find billing status field in VA03 -> goto header;
    you could only find billing status field for delivery in VL03N -> status overview.
    Best regards,
    Crystal Lin

  • How to compare delivery date in schedule lines and PGI in outbound delivery

    Hi,
    I want to create a report to monitor and compare different dates in sales and delivery process.
    One of my key figure is the comparison between date confirmed to the customer, that I can find in the schedule line of the sales order, and the actual goods issue date from the outbound delivery.
    But I can't succeed in making the link between delivery and schedule lines, means between LIKP and VBEP.
    Would you have any idea?
    Thank you.

    It seems there's no exact (table) connection / link between delivery item and schedule line item.
    Those who were searching for this thing (link / connection between delivery item and schedule line) were recommended to use FM "RV_SCHEDULE_CHECK_DELIVERIES".
    This FM calculates the delivered quantity for each schedule line, so it makes link between the delivery item and schedule lines - however if you check the code it's quite sophisticated...
    (if you put a breakpoint in the FM and display a SO in VA03, you can check how the parameters have to be populated with data).
    Schedule Line and Delivery Link
    Edited by: Csaba Szommer on Aug 5, 2011 12:03 AM

  • Goods Issue for a Return Outbound Delivery for both Sales Returns

    Hi gurus..
    tell me the approch for the following development....
    custom transaction to perform a Goods Issue for a Return Outbound Delivery for both Sales Returns and Consignment Returns (Pickups) process within a lean warehouse in SAP.
    it is vry urgnt
    thnks

    I seem to have found the information I required here:
    http://wiki.sdn.sap.com/wiki/display/Snippets/Simulating+the+Sales+Cycle+with+BAPI's
    I'm going to keep this post active because I'd still like answers to my questions and any advice that you might be willing to share in regards to what I am trying to do.
    Edited by: Mikael Nensén on May 18, 2011 3:52 PM

  • Document flow is not updated in outbound delivery

    Hi,
    I have issue at my client side that We create Transfer order and it is not updating in outbound delivery document flow.  Update without delay is check in shipping configuration.  Can somebody please provide the reason, Configuration missing or some OSS note which can help us?
    Thanks,
    RD

    Hi rohit
    I had refered to SAP OSS note 358454 earlier.
    Reward if useful
    Regards
    SE

  • Need help about Post  goods movement with refernece to Inbound delivery

    Hi All,
    I am using  FMs MB_CREATE_GOODS_MOVEMENT and MB_POST_GOODS_MOVEMENT and commit to create a goods movement. I am successfully creating the MM doc and also posting.But still the Inbound delivery is open for GR.Is there any other function module or BAPI that creates GR with reference to Inbound delivery and update the document flow?Or is there any parameter in the above FM that sets the inbound delivery.Kindly provide your guidance on the same.
    Best Regards,
    Sailaja.

    I used BAPI_GOODSMVT_CREATE and it posted the GR successfully and the document flow was updated also.
    You have to use GM_code '01' and give the delivery number / item number w/o PO (if I gave the PO additionally, it also worked).
    If still your document flow is not updated then have a look at OSS note 1050944 and check your config.

  • Urgent help needed-Updating an outbound delivery.

    Hi,
    I have created an outbound delivery for a stock transport order in using VL10D.
    The otbound delivery then goes to a different system wherein it is updated with picking,packing and shipping info.Then it comes back to SAP in the form of idoc(DELVRY05).Now what I need is to write a code in an exit(I know where to write the code) from where the data in the idoc will update the outbouned delivery with picked and delivered quantity.
    I tried using FM's SD_DELIVERY_UPDATE_PICKING and WS_DELIVERY_UPDATE_2 but it is not working.Also where will I get to see the update if it happens.
    Please help me.Its required urgently.
    Thanks,
    Sandeep.

    Sandeep,
    I m trying to understand this requirement. Your IDOC comes in with updated information for a delivery thats already available in the system.
    In this case, the IDOC would lock the delivery object for its ude, so writing FM's directly might not help.
    Please let me know your process code or your inbound FM. If it is IDOC_INPUT_DELVRY, then it already uses a WS_DELIVERY_UPDATE_2 , so there is little reason why you should be calling the FM again.
    Please note that when this comes in it creates an inbound delivery rather an outbound. So, is your third party system sending you back an outbound IDOC?
    Do you want to update the delivery that u sent out ( SD) to the third party system from that information.
    In that case, please use BAPI_OUTB_DELIVERY_CONFIRM_DEC. This is for delivery conformation from a third party system. The documentation is very clear and there are toms of examples on SDN.
    Please reward if useful.
    Thanks
    Ganesh.S

  • Good receipt with reference to outbound delivery document

    Hello Gurus,
    Could someone please help with the following scenario?
    Article 1234 has base unit of measure pc, altenative measure box, 1 box = 12 PC
    In the purchase order (stock transfer order from one site to another site) 4 box of article 1234 is ordered. Outbound delivery created with reference to the above purchase order (stock transfer order) has quantity of 4 boxes (this is copied from PO). And then an transfer order is created with reference to the above outbound delivery and quantity requested is 4 boxes (copied from outbound delivery), but in the transfer order confirmation the confirmed quantity is 14 pcs (this is now confirmed with base unit of measure). And now if we check the outbound delivery doc, the confirm quantity is 14 pcs (1,167 box )
    But when creating good receipt with reference to the outbound delivery document, the quantity confirmed is now 14.004 pcs (this is calculated with unit of measure conversion table, i guess). But actually good receipt quantity should be 14 pcs instead of 14,004 Pcs!
    What can we do in order to have 14 pc in good receipt?
    Thanks in advance for your great help.
    Br, Ailleen

    Hi,
    Thanks a lot for both of your answers. But if is there a way to receive 14 pcs instead of 14.004 pc although the system did the right calculation according to the conversion rules!
    But in this case the supplying plant has issued 14 pcs but receiving plant has received 14,004 pcs and now there is discrepancy! Is there some enhancement or user exit could fix the situation or do I have to change the coding in order to solve this problem!
    Thanks again for you helpful advice!
    Br, Ailleen

  • Goods Receipt w.r.t Outbound Delivery with HU-STO

    Hi All,
    We are doing STO Process with Handling Unit.
    When doing GR w.r.t outbound delivery, we select Via.Hand.Units and execute then we enter into it and select the HU and click and copy.Then item OK and Save.
    Upto here its fine.
    When i save the GR,it is giving the Inbound Delivery no. I want to know how this inbound delivery is generating in background when i save the GR.
    Kindly help me.
    With Regards
    Azeez.Mohd

    Hi Attila,
    Appreciate yor reply.
    The problem is that for one of my client it is generating the inbound delivery when we do GR w.r.t outbound delivery via HU.
    But when iam trying do the same scenario for other client it is not generating.
    I have maintained same config w.r.t that client even though i am unable to get the inbound delivery for GR w.r.t outbound delivery via HU.
    What might be the problem? where i need to check?
    Kindly help me.
    with regards
    Azeez.Mohd

  • Goods receipt not possible for outbound delivery...error code 4

    hi ,
    i created a stock transfer order.
    an outbound delivery was created.
    pgi was done..
    gr was done against this delivery.
    but this gr was then cancelled.
    now when i am doing gr against this outbound delivery.
    i get this eror message.
    Goods receipt not possible for delivery 1134930096: error code 4
    i have then reversed PGI of this delivery in vl09.
    then did PGI again.
    but still same error message.
    please help.
    regards
    shashank

    Hi,
    When system gave you the message with the error code 4, you can click on the message.
    There may be various reasons for the error of GRn agaist delivery -
    1) GRN already posted against the Delivery
    2) Delivery is deleted
    3) Delivery is currently processed by another user
    System gives you the detailed analysis aling with the codes. You can check what reason is mentioned for reason code 4.
    Regards,
    Prashant

  • UPDATING THE OUTBOUND DELIVERY

    Hi ABAP Gurus,
    I have one urgent requirement as below,
       Outbound delivery gets updated/picked for the quantities as stated in the related inbound delivery via BAPI_OUTB_DELIVERY_CHANGE or WS_LM_GOODS_MOVEMENT , or WS_DELIVERY_UPDATE.
    1.1.1.2.        Outbound delivery gets additional data as described in section .
                    Required fields to be updated into the outbound delivery:
    Source
    Description
    Target
    Description
    Specific
    ZMM_EDI_CONF- ZFWNR
    MAWB/OBOL number
    LIKP-BOLNR
    Bill of lading
    Conf. type ‘1’
    LIKP-TRAID
    Means of Transport ID
    LIKP-TRAID
    Means of Transport ID
    HAWB/FCR number
    ZMM_EDI_CONF- ZCSBR
    Broker reference
    LIKP-LIFEX
    External reference
    Conf. type ‘2’
    ZMM_EDI_CONF- ZCSDO
    D.O. date
    LIKP-TDDAT
    Transportation planning date
    Conf. type ‘2’
    ZMM_EDI_CONF- ZCFTN
    Trailer number
    LIKP-TRMTYP
    T.B.D.
    Conf. type ‘3’
    ZMM_EDI_CONF- ZFWVN
    Vessel name
    Text-ID Z060
    Conf. type ‘1’
    LIPS-LFIMG
    Quantity
    VBFA-RFMNG
    Pick quantity
    Please help me by sending th ecoding to how to update the outbound deliveries.

    Got the solution.
    Thanks.
    Edited by: zamishaik on Jan 24, 2012 6:03 PM

  • Idoc: post goods movement and batch classification

    Hi,
    I want to process a goods receipt to PO (mvt: 101) via Idoc for a batch managed part and also add some data into the batch classification.
    The idoc processing works (including the creation of the classification data). but as soon as I want to add data to the classification within the same function module I get a lock entry error.
    Can someone give me a hint of how to do that? what is the best option to fill additional classification data (maybe a BAPI?)
    Thanks for any help!
    Right now I added the following coding to the function module (copy of IDOC_INPUT_MBGMCR) which processes the idoc (here I get the error that the data of material XXX is blocked!):
        PERFORM dynpro USING:
                'X'  'SAPMM03S'     '0105',
                ' '  'RM03S-MATNR'   batch_data-matnr,
                ' '  'RM03S-WERKS'   batch_data-werks,
                ' '  'RM03S-CHARG'   batch_data-batch,
                ' '  'RM03S-LGORT'   '    ',
                'X'  'SAPMM03S'     '0200',
                ' '  'BDC_OKCODE'   '/7',
                'X'  'SAPLCTMS'     '0109'.
        IF batch_data-trace1 NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(1)'  'TRACECODE1',
                ' '  'RCTMS-MWERT(1)'   batch_data-trace1.
        ENDIF.
        IF batch_data-trace2 NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(2)'  'TRACECODE2',
                ' '  'RCTMS-MWERT(2)'   batch_data-trace2.
        ENDIF.
        IF batch_data-lotno NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(4)'  'STM_LOT',
                ' '  'RCTMS-MWERT(4)'   batch_data-lotno.
        ENDIF.
        IF batch_data-difflot NE space.
          PERFORM dynpro USING:
                ' '  'RCTMS-MNAME(5)'  'STM_DIFFUSION_LOT',
                ' '  'RCTMS-MWERT(5)'   batch_data-difflot.
        ENDIF.
        PERFORM dynpro USING:
                ' '  'BDC_OKCODE'   '/3',
                'X'  'SAPMM03S'     '0200',
                ' '  'BDC_OKCODE'   '/11'.
      post changes
        CLEAR:  msg, msg[].
        l_mode = 'N'.
        CALL TRANSACTION 'MSC2' USING tbdc MODE l_mode UPDATE 'S'
                                MESSAGES INTO msg.

    Sorry! resolved it myself. I was jsut a commit missing.
    I called the BAPI_TRANSACTION_COMMIT before processing my routine to update the classification data and it worked.

  • Related to goods movement and IDOC generation

    Hi,
    I need to create an IDOC for custom output type attached to transaction MIGO for purchase order after goods reciept.
    How can I attach an output type with transaction MIGO.
    Or is there is any other method to generate IDOC after good reciept.

    Dear Goutam
    All the three you can see in <b>MB51</b>.
    Thanks
    G. Lakshmipathi

  • GI:How to set Indicator:Item Not Relevant for Goods Movements LIPS-NOWAB

    Hi,
    does anybody know what i have to do to get the Indicator: Item Not Relevant for Goods Movements set for a good issue delivey position? (Table LIPS field NOWAB)
    thanks in advance
    Steffen

    Hi,
    the thing is the following (maybe it doesn't work at all, i don't know) :
    a) i have a "Non-stock" material (e.g.material type NLAG)
    b)this material should be picked, so it should be relevant for the delivery (e.g.item category TAX)
    c) for a special reason the "Total goods movement status" in the outbound delivery header shouldn't be "Not relevant", therefore i assigned the item category TAX to a shedule line category that has a movement type (e.g. CN)
    d)but the bad thing is, that the customer has set the indicators "quantity updating" and "value updating" for the material type NLAG, and so the goods issue posting gets some errors. eg.g missing storage location etc.)
    During debugging i found a coding that checks the sign NOWAB of lips, the documentation says:
    "You can use this indicator to control whether the item is relevant for goods movement when the delivery is still being created.
    When this indicator is set, goods movement is not posted for this item - regardless of the movement type assigned  to it."
    So i head the idea it might be possible to set this indication (Lips-nowab) somewhere in the sales order or somewhere else but maybe this conflicts with point c) above .
    Maybe shomeone knows what to do or has a better idea.
    Best regards
    Steffen

  • Updating Outbound Delivery with picking and delivery quantity.

    Hi,
    I have a scenario where in an idoc will come from external system(DELVRY05) and based on the data in the idoc I have to update the picking and delivery quantity for the outbound delivery created in SAP.The idoc has the outbound delivery number and the quantity which is sent from the legacy system.
    I do not want to do googs issue,just updatation.
    How can I update the outbound delivery?
    Please help me.Its needed urgently.
    Thanks,
    Sandeep.

    YOu can make use of the FM:
    WS_DELIVERY_UPDATE_2.
    see the sample code:
    Assume that it_500o has the Delivery Header details and it_5010 has item details
      LOOP AT it_5000.
        CLEAR lx_vbkok.
        CLEAR lv_vbeln.
        REFRESH lt_vbpok.
        REFRESH lt_prott.
        lx_vbkok-vbeln_vl = it_5000-order_number.
        lx_vbkok-vbtyp_vl = 'J'.
        lv_vbeln = it_5000-order_number+0(10).
        LOOP AT it_5010 WHERE order_number = it_5000-order_number.
          lt_vbpok-vbeln_vl = it_5010-order_number.
          lt_vbpok-posnr_vl = it_5010-order_line.
          READ TABLE lt_vbfa WITH KEY vbeln = lt_vbpok-vbeln_vl
                                      posnn = lt_vbpok-posnr_vl.
          IF sy-subrc = 0.
            lt_vbpok-vbeln = lt_vbfa-vbelv.
            lt_vbpok-posnn = lt_vbfa-posnv.
           lt_vbpok-vbtyp_n = 'J'.
          ENDIF.
          lt_vbpok-pikmg = it_5010-quantity. "Picking quantity
          APPEND lt_vbpok.
          CLEAR lt_vbpok.
        ENDLOOP.
    Update the Delivery
        CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
          EXPORTING
            vbkok_wa                           = lx_vbkok
      SYNCHRON                           = ' '
      NO_MESSAGES_UPDATE_1               = ' '
           commit                             = 'X'
            delivery                           = lv_vbeln
           update_picking                     = 'X'
      NICHT_SPERREN_1                    = ' '
      IF_CONFIRM_CENTRAL                 = ' '
      IF_WMPP                            = ' '
      IF_GET_DELIVERY_BUFFERED           = ' '
      IF_NO_GENERIC_SYSTEM_SERVICE       = ' '
           if_database_update_1               = '1'
      IF_NO_INIT_1                       = ' '
      IF_NO_READ_1                       = ' '
           if_error_messages_send             = 'X'
      IF_NO_BUFFER_REFRESH               = ' '
      IF_NO_MES_UPD_PACK                 = ' '
    IMPORTING
      EF_ERROR_ANY                       =
      EF_ERROR_IN_ITEM_DELETION          =
      EF_ERROR_IN_POD_UPDATE             =
      EF_ERROR_IN_INTERFACE              =
      EF_ERROR_IN_GOODS_ISSUE            =
      EF_ERROR_IN_FINAL_CHECK            =
         TABLES
           vbpok_tab                          = lt_vbpok
           prot                               = lt_prott
      VERKO_TAB                          =
      VERPO_TAB                          =
      VBSUPCON_TAB_1                     =
      IT_VERPO_SERNR                     =
      IT_PACKING                         =
      IT_PACKING_SERNR                   =
      IT_REPACK                          =
      IT_HANDLING_UNITS_1                =
      ET_CREATED_HUS                     =
      TVPOD_TAB                          =
    endloop.

Maybe you are looking for