Problem in updating Pick Qty using SD_DELIVERY_UPDATE_PICKING_1

Hi,
    I am updating the picking quantity in a delivery document using function module SD_DELIVERY_UPDATE_PICKING_1.
     However the document flow shows the picking request is still Open and not Completed. This does not happen when I do this online. Am I missing something in the parameters.
      Please advise as the documentation of this function module is not very clear.
Thanks and Regards,
Aditya

Hi Ranjith,
         Thanks for all your input. I also posted a message to SAP and they recommended SAP Notes 457925 and 491875.
     I might go in for BDC as a last resort on VL02N since time is quite a constraint.
     I really appreciate the inputs you have given.
     Actually my customer system is running on mySAP ERP ECC 5.0 so it would certainly have all the note corrections mentioned in the several notes
Thanks and Regards,
Aditya

Similar Messages

  • How to update picked qty as delivery qty while creating outbound delivery

    Hi,
    I am using badi definition LE_SHP_DELIVERY_PROC to update delivery qty as picked qty at the time of creating delivery. By using method SAVE_DOCUMENT_PREPARE I am populating delivery qt(yCT_XLIPS- G_LFIMG) to picked qty(CT_XLIPS[1]-PIKMG). and i am also populating update flag as 'I'. after saving the delivery document i am not able to update picked qty which was populated in BADI. could you please suggest anything needs to care. thanks in advance.
    Regards,
    Peranandam

    Hi,
    I did a little test and, within the method CHANGE_DELIVERY_ITEM, itu2019s possible to fill the picking quantity (structure CS_LIPSD) but unfortunately during the save the added information is lost.
    This is because the BAdI method is fired too soon and the routine PICKMENGE_BEARBEITEN (SAPFV50P) is not called at all.
    The problem is quite complex; even after changing the picking quantities, the picking status still remains open!
    The picked quantity is generally filled:
    u2022     by printing the picking list
    u2022     Warehouse Management by creating a transfer order
    u2022     or by manual entry
    Otherwise, it is assumed that picking has not yet been initiated and the result is that picked quantity is ignored.
    In my opinion itu2019s very difficult to solve your problem using only the BAdI implementation.
    I suggest you to propose an alternative solution such as the automatic processing of Picking Output EK00; easy to activate and absolutely standard!!!!!!
    Regards,
    Andrea

  • Update Pick Qty in Delivery

    Hello
    I am trying to use FM SD_DELIVERY_UPDATE_PICKING_1 for updating the pick qty in the delivery. My scenario has 2 line items each having a batch split line. I need to update the pick qty for these batch lines from a Z transaction where the user inputs the pick qty.
    The problem is that the pick qty is getting updated always with the delivery qty even if the user enters a pick qty value less than the delivery qty.
    It would be highly appreciated if anyone can suggest where the problem might be (i may not be using the FM correctly).
    Thanks in Advance.

    Have you check the FM
    RV_DELIVERY_PICK_UPDATE
    RV_DELIVERY_PICK_VIEW
    Thanks

  • Update Picking Quantity using 'WS_DELIVERY_UPDATE_2' - URGENT

    Hi Experts,
    I am struck with an error in updating the delivery. I am using an rfc WS_DELIVERY_UPDATE_2 which is updating the picking quantity one for the first time in a delivery with two delivery quantity in a batch but when iam using it for the other one it is not updating the quantity. I think the parameters which iam passing to RFC might be wrong. I am using the rfc as follows:
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
            EXPORTING
              VBKOK_WA             = WA_VBKOK
              SYNCHRON             = 'X'
              DELIVERY             = DEL_NBR
              UPDATE_PICKING       = 'X'
              COMMIT               = 'X'
              IF_DATABASE_UPDATE_1 = '1'
            TABLES
              VBPOK_TAB            = TAB_VBPOK
              PROT                 = I_PROTT.
    Please correct me if anything is wrong in the interface.
    Any quick response will be appreciated & rewarded.
    Thanks

    Hi seshu,
    It is triggering an error tht interface is not complete.
    so i changed the code:
    tables: vbfa.
    DATA : WA_VBKOK LIKE VBKOK.
    DATA : I_VBPOK LIKE VBPOK OCCURS 0 WITH HEADER LINE.
    DATA : I_PROT LIKE PROTT OCCURS 0 WITH HEADER LINE.
    clear vbfa.
    START-OF-SELECTION.
      WA_VBKOK-VBELN_VL = '0080882358'.
    SELECT SINGLE * FROM VBFA WHERE VBELN = WA_VBKOK-VBELN_VL.
    IF SY-SUBRC = 0.
      WA_VBKOK-VBELN = VBFA-VBELV.                    " Sales and distribution document
    ENDIF.
    Fill the item level
      I_VBPOK-VBELN_VL = '0080882358'.
      I_VBPOK-POSNR_VL = '900001'.
      SELECT SINGLE * FROM VBFA WHERE VBELN = I_VBPOK-VBELN_VL AND
                                      POSNN = I_VBPOK-POSNR_VL.
      IF SY-SUBRC = 0.
        I_VBPOK-VBELN = VBFA-VBELV.                   " Sales and distribution document
        I_VBPOK-POSNN = VBFA-POSNV.                   " Item of an SD document
        I_VBPOK-VBTYP_N = VBFA-VBTYP_N.                 " Document category
      ENDIF.
      I_VBPOK-MATNR = '9692A\260'.
      I_VBPOK-CHARG = '0000010669'.
      I_VBPOK-PIKMG = '1.0'.
      APPEND I_VBPOK.
      CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'
      EXPORTING
      VBKOK_WA = WA_VBKOK
      SYNCHRON = 'X'
      NO_MESSAGES_UPDATE = SPACE
    NICHT_SPERREN = ' '
    AUFRUFER_T = ' '
      IF_ERROR_MESSAGES_SEND = 'X'
      TABLES
      VBPOK_TAB = I_VBPOK
      PROT = I_PROT
    if sy-subrc = 0.
          COMMIT WORK.
        WRITE:/ 'success'.
      else.
      write:/ 'not success'.
      endif.
    It is working fine in updating a delivery with 10 qty for only 8 picking but later when i am using it for the rest i.e., 2 picking qty, it is not working.
    Could please  hepl me with this.
    Thanks

  • Problem to update UDO-recordsets using a matrix with DBDataSource

    Hello,
    I've got a problem with updating recordsets in an UDO-Table using DBDataSource.SetValue().
    Special szenario: I use a matrix bounded with DBDataSources. Adding new records and loading them via DBDataSource.Query() with conditions works fine. The UDO object type is "Document" without lines.
    In the simple way now I load just one record and after this I was trying to set an "message" to an simple, editable edittext-column via calling:
    oDBDataSource.SetValue("U_Message", 0, "Hello world");
    oMatrix.LoadFromDataSource();
    Now it's visible in the matrix.
    But when I call update via clicking the update-button, B1 do say, everything was ok (green status-message). Reloading this recordset you can see: it was not stored in the database
    Even not after:
    oMatrix.FlushToDataSource();
    As a workaround I do write the "message" via using Cell.Specific.
    Can anybody help me?
    I'am using SBO 2005 A SP 01 PL 39
    Edited by: Christian Bührig on Mar 18, 2008 4:48 PM

    look at
    New Row in Matrix is a Duplicate and Cannot update Object with new Row
    the next way is do it with recordset and directly insert to table.
    hope it helps
    Petr

  • Problem while updating Item category using Bapi_salesorder_change

    Hi,
    Iam facing a probelm while updating item category using bapi Bapi_salesorder_change
    In the Return table iam getting the folowing mesages.
    Inforation mesage : Field 'PSTYV' cannot be changed, VBAPKOM 000010  ready for input
    Error Message : Item 000010 cannot be processed.
    Please find the code below
    CLEAR wa_bapisdh1x.
      wa_bapisdh1x-updateflag = 'U'.
      CLEAR wa_order_item_inx.
      wa_order_item_inx-itm_number = wa_vbap-posnr.
      wa_order_item_inx-item_categ = 'X'.
      wa_order_item_inx-UPDATEFLAG = 'U'.
      APPEND  wa_order_item_inx TO it_order_item_inx.
      CLEAR wa_order_item_inx.
      CLEAR wa_order_item_in.
      wa_order_item_in-itm_number = wa_vbap-posnr.
      wa_order_item_in-item_categ = 'ABC'.
      APPEND wa_order_item_in TO it_order_item_in.
      CLEAR wa_order_item_in.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument    = w_vbeln
          order_header_inx = wa_bapisdh1x
        TABLES
          return           = it_return
          order_item_in    = it_order_item_in
          order_item_inx   = it_order_item_inx
    How can i correct it..
    Regards
    Kumar

    Actually iam facing a strange problem here.
    When i copy the program into another sample program and execute it iam able to change both the item catgegory and delivery block for particular sales order and item number.
    But in my main program i have BDC for MB1B transaction to create the material document.
    Once the material document is created succesfully iam using BAPI Sales_order_change to change the item category and delivery block..
    In my main program iam not to change the item catgeory getting an error field PSTYV cannot be changed.
    But the same code is running percfectly in the copied one..
    How can i correct that..
    Regards
    Kumar

  • Updating picking qty from Shipment confirmation

    Hi frenz,
           We got a requirement that when we get 856(shipment confirmation) from our external warehouse, we gotta update the picked quantities in delivery document and ASN has to be sent automatically.
           Can anyone help me on where to write coding for updating picked quantities on delivery document? Else do we have any standard way for doing this?
            Thanks in advance.
    praveen

    hi vinod,
              I know this function module already; Any way thanks for your reply. But i want some more information regarding this scenario. Like where do i write this code (do we have any exits?). N e way thank you for ur reply.
                                               ---praveen.

  • Problem when updating delivery quantity using 'BAPI_OUTB_DELIVERY_CHANGE'

    Hi experts,
    I have a requirement in which i need to update the material's delivery quantity in VL03N transaction.   For this im trying the BAPI
    'BAPI_OUTB_DELIVERY_CHANGE' and im passing the following values.
    HEADER_DATA : Delivery no.
    DELIVER : Delivery no.
    ITEM_DATA : Delivery no,
    item no,
    DLV_QTY quantity(changed),
    FACT_UNIT_NOM ( default to value '1')
    FACT_UNIT_DENOM ( default to value '1')
    ITEM_CONTROL : Delivey no,
    item no,
    CHG_DELQTY ( value "X")
    Then i use 'BAPI_TRANSACTION_COMMIT' for updating the changes. 
    Here the problem is, the BAPI is working fine for some quantity , say if i enter the DLV_QTY as 2 in ITEM_DATA, it is gettting updated.  But if i pass some other quantity , say 12, it is returning the folowing error.
    T ID                   NUM MESSAGE
    E VL                   363
    Pls tell why this error comes. and how to successfully update the delivery quantity for a set of material?
    Regards,
    Shanthi

    not answered

  • Problem in updating material master using  FM 'MD_MRP_LEVEL_CHANGE_DATA'

    hi experts,
    i m using this FM 'MD_MRP_LEVEL_CHANGE_DATA' to update the material master for MRP Area related data. i m passing the fields in the FM according to the requirement. when i execute the program it gives a msg
    000I : 000, i m not able to track this msg that what can be the error..........
    and also the changes are not reflected in MM03 transaction.
    and if i m trying to pass the same data directly from SE37 and executing the FM , its running perfectly and changes are reflected in MM03.
    please help me out to get out of this problem.
    points will be rewarded for the correct answer.
    thanks in advance..........
    Manisha

    Manisha,
    Can you please provide the code where u r having problems?
    Thanks
    Ganesh.S

  • Problem in update statment when using where condtion

    Hi ,
          Iam using update statment to update field in Z-Table .My statment is not working fine as per my requirement.The statment is as below,
    UPDATE ZFINAL_DATA  SET ZDATE_FLAG = SPACE where ZGLOBAL_CODE ( SELECT LIFNR FROM LFA1 WHERE KTOKK = 'ZLIE' ).
    But this statment is doing my purpose .
    My requirement is , I need to update ZDATE_FLAG = SPACE in ZFINAL_DATA table when LFA1 -LIFNR = ZFINAL_DATA-ZGLOBAL_CODE and LFA1-KTOKK = 'ZLIE'.
    Can any correct the update statment which will be helpfull to proceed further .
    Regards,
    Sriram

    Hi Sriram,
    Have a look into the logic of the below query. Maybe this will fulfil the requirement.
    TYPES:     BEGIN OF lt_lifnr,
             lifnr TYPE lifnr,
         END OF lt_lifnr.
    DATA:      la_lifnr TYPE TABLE OF lt_lifnr,
           wa_zfinal_data TYPE zfinal_data,
           la_zfinal_data TYPE TABLE OF zfinal_data.
    TABLES: zfinal_data.
    SELECT lifnr
    FROM lfa1
    INTO TABLE la_lifnr
    WHERE ktokk = 'ZLIE'.
    SORT la_lifnr BY lifnr.
    SELECT *
    FROM zfinal_data
    INTO TABLE la_zfinal_data.
    LOOP AT la_zfinal_data INTO wa_zfinal_data.
      READ TABLE la_lifnr WITH KEY lifnr = wa_zfinal_data-zglobal_code
                          BINARY SEARCH TRANSPORTING NO FIELDS.
      IF sy-subrc = 0.
        wa_zfinal_data-zdate_flag = space.
        MODIFY la_zfinal_data
        FROM wa_zfinal_data
        INDEX sy-tabix
        TRANSPORTING zdate_flag.
      ENDIF.
    ENDLOOP.
    MODIFY zfinal_data FROM TABLE la_zfinal_data.
    COMMIT WORK.

  • Problem with updating pricing date using BAPI_SALESORDER_CHANGE

    Hi,
    I need to update pricing date on sales order (but only on item level).
    I have been trying to use  BAPI_SALESORDER_CHANGE but nothing changes.Bapi returns no errors, ends with success.
    I hoped that bapi would change not only pricing date but also recalculate things the date affected.
    Here is my code:
    ls_head_inx-updateflag = 'U'.
    ls_bapisdls-pricing = 'C'.
    ls_item-itm_number = sales_order_posnr
    ls_item-price_date = new_price_date
    APPEND ls_item TO lt_item.
    ls_item_inx-itm_number = sales_order_posnr
    ls_item_inx-updateflag = 'U'.
    ls_item_inx-price_date = 'X'.
    APPEND ls_item_inx TO lt_item_inx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
              EXPORTING
                salesdocument     = sales_order
                order_header_inx = ls_head_inx
                logic_switch         = ls_bapisdls
              TABLES
                return                 = lt_return
                order_item_in     = lt_item
                order_item_inx   = lt_item_inx
    Thanks & Regards,
    Mario

    Mario,
    I run same code as yours and work for me fine, able to update ITEM pricing date.
    I suppose you are using BAPI_TRANSACTION_COMMIT after your BAPI call, then only it will work.
    Also note that VBKD table stores this date for header and item. In my system, there are generally only header rows in that table, but a new item row gets generated when I change the item date with the BAPI to some other date. Also, this BAPI sometimes issues a W message instead of ERROR for something like non-existing items, so carefully check your RETURN table too.
    'Item 000002 does not exist' as WARNING message, so might be considering it as a success.
    If nothing works, try to do the same thing for the same data using VA02 and check . If that works, BAPI will work surely.
    Regards,
    Diwakar

  • How to Update picking qunatity while Automatic picking is active

    Hello All,
    I have a requirment of updating the Delivery pick quantity.
    I am updating the it through BAPI,
    Is there any other way of updating picked qunatity in case automatic picking is active.
    Please suggest
    regards,
    SNB

    Hello,
    Please look into below thread links for the same issue:
    Updating Picking Quantity using VL02N ?
    how to update picked qty as delivery qty while creating outbound delivery
    Hope the information is useful
    Regards,

  • Problem in using SD_DELIVERY_UPDATE_PICKING_1 - Picked Quantity

    Dear All,
    I am are facing a strange issue while using the FM SD_DELIVERY_UPDATE_PICKING_1. We have developed a custom program which calls the above FM to update the picked quantity ( PIKMG ) field in an Inbound Delivery order.
    The FM is working fine for most cases, but for some articles in a Delivery order ( VL02N) , when the same delivery order is updated twice or more with this FM , the picked qty gets added up with the old qty.
    Eg. Previous picked Qty is 6 CAR , I call the FM and populate the picked Qty field = 8 CAR. Now instead of the delivery order being updated with picked qty 8 CAR  it shows up as 14 CAR.
    This happens only in the case of few articles, for the rest of the articles the picked field is updated with the new value.  I have checked the conversion factor for the problematic articles in material Master and they seem to be fine. Any suggestion on why this could happen ? Any help will be highly appreciated.
    Regards,
    Sandeep

    Hello Sandeep,
    I am facing the same problem, do you have a solution for this behaviour?
    Regards
    Henryk

  • I need a FM to update batch no. & picking qty. of delivery  also to do PGI.

    I need a FM to update batch no.& picking qty of delivery items as well as to do PGI (Post goods issue) for the same delivery.I am using 'WS_DELIVERY_UPDATE' but it doesn't update the batch no. and gives error saying no bactches are deifned for delivery no XXXXX and item XXXX.Can any one suggest the suitable function module to do this? It will be better if you can give details about input parameters with example.
    Thanks & Regards,
    Nimish Dongare.

    Hi,
    I used the following code for both picking & PGI...I think it shud also work for updating the batch details.
    Picking:
    *get header data
    WA_VBKOK-VBELN_VL = <DEL_NBR>
    WA_VBKOK-VBELN = VBFA-VBELV
    get line data
    LOOP AT TAB_VBPOK.
    TAB_VBPOK-VBELN_VL = WA_VBKOK-VBELN_VL.
    tab_vbpok-posnr_vl = <line number> '900001'
    tab_vbpok-matnr= <material nbr>
    tab_vbpok-charg= <batch nbr>
    tab_vbpok-pikmg =<pick qty>
    tab_vbpok-meins= <uom>
       TAB_VBPOK-VBELN = SY-DATUM.
          TAB_VBPOK-POSNN = SY-UZEIT.
          TAB_VBPOK-VBTYP_N = VBFA-VBTYP_N.
          SELECT * INTO TABLE TVBFA FROM VBFA
                              WHERE VBELV = WA_VBKOK-VBELN_VL.
          SORT TVBFA DESCENDING.
          CLEAR TVBFA.
          READ TABLE TVBFA WITH KEY VBELV = TAB_VBPOK-VBELN_VL
                                    POSNV = TAB_VBPOK-POSNR_VL
                                    VBTYP_N = 'Q'
                                    TAQUI = ' '.
          IF SY-SUBRC EQ 0.
            V_PIKMG = TAB_VBPOK-PIKMG + TVBFA-RFMNG.        " Picking quantity
            CLEAR TVBFA.
            READ TABLE TVBFA WITH KEY VBELV = TAB_VBPOK-VBELN_VL
                                  POSNV = TAB_VBPOK-POSNR_VL
                                  VBTYP_N = 'Q'
                                  TAQUI = 'X'.
            IF SY-SUBRC EQ 0.
              V_PIKMG = V_PIKMG + TVBFA-RFMNG.               " Total Picking quantity
    *****Error Message: Picked quantity is larger than the quantity to be delivered.
              IF LIPS-LFIMG LT V_PIKMG.
                PERFORM GET_RETURN  USING 'E' 'VL' '019' SPACE SPACE SPACE SPACE
                          RETURN.
                V_EXIT = 'Y'.
                EXIT.             " EXIT THE RFC.
              ENDIF.
            ENDIF.
          ENDIF.
          MODIFY TAB_VBPOK.
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
          EXPORTING
            VBKOK_WA             = WA_VBKOK
            SYNCHRON             = 'X'
            DELIVERY             = WA_VBKOK-VBELN_VL
            UPDATE_PICKING       = 'X'
            COMMIT               = 'X'
            IF_DATABASE_UPDATE_1 = '1'
         TABLES
            VBPOK_TAB            = TAB_VBPOK
            PROT                 = I_PROTT.
        IF NOT I_PROTT IS INITIAL.
          RETURN-TYPE = 'E'.
          RETURN-MESSAGE = 'Picking Failed!'.
          EXIT.                                  "EXIT THE RFC
        ELSE.
          COMMIT WORK AND WAIT.
        ENDIF.
    PGI
    *get header data
    WA_VBKOK-VBELN_VL = <DEL_NBR>
    WA_VBKOK-VBELN = VBFA-VBELV
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
        EXPORTING
          VBKOK_WA               = WA_VBKOK
          SYNCHRON               = 'X'
          DELIVERY               = WA_VBKOK-VBELN_VL
          NICHT_SPERREN_1        = 'X'
          IF_ERROR_MESSAGES_SEND = 'X'
         TABLES
          PROT                   = I_PROTT.
      IF NOT I_PROTT IS INITIAL.
        RETURN-TYPE = 'E'.
        RETURN-MESSAGE = 'Goods Issue Failed!'.
        EXIT.                                  "EXIT THE RFC
      ELSE.
        COMMIT WORK AND WAIT.
    endif.
    thanks

  • I have lightroom 5 with 5.7 updated.   I use windows.  My problem is with the spot healer or remover.  It worked perfectly when I click on it it don't have the additional circle with a line attached to it where I can move it to another place for better sa

    I have lightroom 5 with 5.7 verson updated.  I use windows.  My problem is with the spot healer or remover in the develop.  It worked perfectly for a while and then suddenly the other circle with a line attached to it where you can move it to a better spot stopped showing up.  I uninstalled the software and re installed it again but it didn't fix the problem and its still the same.  Help please.

    Does the iPod work OK?
    Does it charge when connect to the computer?
    Does it appear in My Computer?
    Look at the dock connector on the iPod. Compare with the iPod that does work/connect.
    I suspect you have a 2G iPod. Those can only go to iOS 4.2.1
    http://support.apple.com/kb/HT1353#iPod_touch_late2009
    iPod touch (3rd generation)
    iPod touch (3rd generation) features a 3.5-inch (diagonal) widescreen multi-touch display and 32 GB or 64 GB flash drive. You can browse the web with Safari and watch YouTube videos with Wi-Fi. You can also search, preview, and buy songs from the iTunes Wi-Fi Music Store on iPod touch.
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

Maybe you are looking for

  • Unhandled exception when code runs for the first time,but works fine the second

    Hi All, I have the following code snippet private void RGL_Click(object sender, RibbonControlEventArgs e) Word._Document oDoc;            oDoc = Globals.ThisAddIn.Application.ActiveDocument;             object start = oDoc.Content.Start;            

  • _blank link in external xml generates pop up blocker

    I have links that are read into an html formatted text field from an external xml file. My problem is that I would like the link to load a new browser window when clicked using _blank - but that generates pop up blocker in firefox. I've tried passing

  • BW related HR cubes and reports

    Hi any one explain me abt the bw related Hr cubes and reports. If possible please give me example of cubes and reports. Thanks Madhavi

  • Problem Installing LimeWire

    I installed jre 1.3.1 and then installed Limewire. When I try to run the runlime.sh script I get the following error, Couldn't find or load essential class `java/lang/Object' java.lang.NoClassDefFoundError java/lang/Object Aborted (core dumped) Any t

  • What is Sync's Strategy

    There's this amorphous thing called 'Sync' that synchronises records, say, bookmarks, on different installations of a user's Firefoxes. But what does that mean? What's the detail? Sync emerges as a feature after I've been using Firefoxes on my comput