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

Similar Messages

  • Picking quantity using FM 'ws_delivery_update_2' in vl02n

    Hi,
    I can upload the picking quantity using this FM 'WS_DELIVERY_UPDATE_2' in vl02n.But after updating i cant delete the delivery no and screen becomes grey.It throws the error as
    'A goods issue or goods delivery was already posted in the decentralized warehouse management system for the delivery. Therefore you cannot make any changes to the delivery that affect the stock update'
    Pls help to rectify this.
    Thanks
    Bala

    This Might help you
    Re: Delete handling unit

  • Update Picking quantity in VL02N?

    Hi All,
    In my application i am Using WS_DELIVERY_UPDATE_2 we can  update picking quantity, it is working fine when we pick full quantity.
    Suppose if i pick partial quantity, for example for one item total qty is 2, i am picking 1 first time and save, next time if i pick 1 second time it is not updating? how can we acieve this??
    Thanks,
    Venkat.

    Use below FM :
    Clear : i_prot.
      refresh : i_prot.
    Delivery Update
      CALL FUNCTION 'LE_MOB_DELIVERY_UPDATE'
           EXPORTING
                do_commit                = 'X'
           TABLES
                t_delivery_items         = i_lips
                prot                     = i_prot
           EXCEPTIONS
                conversion_overflow      = 1
                essential_data_missing   = 2
                error                    = 3
                nothing_to_update        = 4
                lock_after_update_failed = 5
                error_in_delivery_update = 6
                OTHERS                   = 7.
      COMMIT WORK.
    Pass lips-lgort..
    <REMOVED BY MODERATOR>
    Thanks
    Seshu
    Edited by: Alvaro Tejada Galindo on Aug 8, 2008 4:51 PM

  • BAPI's for Batch Split and Update Picking Quantity

    HI All,
    I have the delivery details(along with batch number, MATNR etc), now i need to split the batch for picking.
    and then i need to sum the batch quantity and update this total quantity to the picking quantity and then update the delivery.
    I tried to use this BAPI function module BAPI_INB_DELIVERY_CHANGE.
    But i am unable to find the picking quantity field in this BAPI.
    Any idea about how to split the batches using BAPI's??
    and how to update the picking quantity using BAPI's?
    Thanks in advance.
    Vijay

    Hi,
    Can you share the solution for the above issue/
    Regards

  • Update picking quantity in delivery (Batch split items) using function modu

    Hi All,
    I need to update a picking quantity with zero value in delivery for batch split items (Item numbers start with 900001. etc).I'm trying to use WS_DELIVERY_UPDATE
    and SD_DELIVERY_UPDATE_PICKING. I'm passing parameter VBKOK-KOMUE , and all other details, but it is not updating.
    I'm able to update delivery quantity of same item with zero value but not picking quantity.
    Could you please let me know how to achive this.
    Regards
    Vikram

    I think the number 900001is mean batch split line item.
    example:
    In Deivery Note:
    Item 10
         Batch 900001
         Batch 900002
    Item 20
         Batch 900003
         Batch 900004
    That right,

  • Urgent-Help needed in FM to update picking quantity in outbound delivery.

    Hi,
    I have to automatically update the delivery and picking quantity for an outbound delivery without doing any post goods issue.Could you please help me with any FM which does this with proper explanation.
    Any help will be greatly appreciated.
    Thanks,
    Sandeep.

    Check with FM : SD_DELIVERY_UPDATE_PICKING
    The above FM will update Picking in delivery
    Check the structure VBPOK ,within structure VBPOKKOMMI(Include structure)
    Field is PIKMG.
    Thanks
    Seshu

  • LSMW Custom program for updating picked quantity in outbound delivery

    I have been tasked with creating an LSMW that will update the picked quantity in an outbound delivery.  I originally thought of using a recording on transaction vl02n, but I need the LSMW to work with variable amount of item lines. 
    Through some research I figured out that FM WS_DELIVERY_UPDATE_2 can update the picked quantity.  I have successfully created a custom program that calls this FM. 
    I have created what I believe to be the correct entries in the SXDA0, SXDA1, SXDA2, and SXDA3 tables to make my custom program work with LSMW.  I am able to find my program in the "Maintain Object Attributes."  I am also able to "Maintain Structure Relations Step" (screen shot attached)  I am currently using VBKOK and VBPOK for the header and line item structures respectively. 
    My difficulty is converting the data.  I have tried everything from having no conversion rules to mapping many fields and I always receive the following error (screen shot also provided).
    Error analysis
    The statement
         "Move src TO dst"
    requires that the operands "dst" and "src" are convertible.
    Since this statement is in a Unicode program, the special conversion
    rules for Unicode programs apply.
    In this case, these rules were violated.
    Program /SAPDMC/SAP_LSMW_CONV_FORMS
    Include  /SAPDMC/SAP_LSMW_CONV_FORMS
    Row 1,080
    Module type (FORM)
    Module Name TRANSFER_RECORD
    Since I have run the conversion with no conversion rules I am very confused as to why I am still receiving this error.  Any insight would be greatly appreciated.

    For anyone I have uncovered some interesting things about my issue.  I started going through the conversion code piece by piece trying to figure out what data element the system was choking on. 
    After digging though the program and using the debugger I found out that the issue was in FORM transfer_record. 
    ASSIGN (g_record) TO <l_record>.
         CASE g_objecttype.
           WHEN '01' OR '02'.
             gt_buffer-record = g_record.
             gt_buffer-data = <l_record>.
             APPEND gt_buffer.
    If this LSMW was working
    g_record = 'VBKOK'
    <l_record> = 'VBKOK'
    But what is actually happening
    g_record = 'VBKOK'
    <l_record> = "Structure of some sort
    I do not know why this is happening since the field symbol is being assigned right before this piece of code.  Any suggestions are greatly appreciated.

  • "Internal error (-5002) occurred" On Pick List Update Picked Quantity

    Hi Experts,
    I have an SDK program that simply tries to update the Picked Quantity in SAP. Previously it has been working fine, until I try to use the same logic for items managed by Batch or Serial Number.
    In this scenario, I have created a PickList with only 1 row, the item is managed by Serial Number.
    I try to simplify the code as below.
    Dim oBaseDocument As SAPbobsCOM.PickLists
    oBaseDocument = oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPickLists)
    BaseDocument.GetByKey(12345)
    oBaseDocument.Lines.SetCurrentLine(0)
    oBaseDocument.Lines.PickedQuantity += 1
    oBaseDocument.Lines.BinAllocations.Add()
    oBaseDocument.Lines.BinAllocations.SetCurrentLine(0)
    oBaseDocument.Lines.BinAllocations.BinAbsEntry = CInt(sBinAbsEntry)
    oBaseDocument.Lines.BinAllocations.Quantity += dXML_Quantity
    oBaseDocument.Lines.SerialNumbers.InternalSerialNumber = sXML_BatchSerialNo      ' <--- ***
    lRet = oBaseDocument.Update
    I have added the *** line for handling the Serial Number, but when it hit the Update command, the SDK returns "Internal error (-5002) occurred".
    I'm not sure what does it means.
    Anyway I tried to remove the *** line and it works fine for item not managed by Batch or Serial, but the issue will remains for the Items managed by Serial or Batch.
    Please advise whether I missed anything in this code.
    Thank you in advance.
    Best Regards,
    Krisma

    Hi Krisma,
    I haven't done this thing practically but error -5002 will occur, if there is any Invalid Object.
    You can check it accordingly.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • 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

  • Update picking quantity in delivery for batch split items

    Hi,
    I'm trying to use the function module WS_DELIVERY_UPDATE to update the existing deliveries. I'm able to do batch split for the items in delivery using the same FM. I have also requirement to delete these items (batch split items).
    To delete these items first we have to make quantities to zero. So I'm able to make delivery quantity of these items to zero but not picking quantity.
    If we do not make picking quantity also zero it will not allow to delete these items
    and gives an error message saying "item is already made available for transfer order".
    Could some one let me kow how to make picking quantity also zero for batch spit items using FM.
    Thanks

    Hi Vikram
    To nullify the Picking Quantity, we can use FM: <b>SD_DELIVERY_UPDATE_PICKING</b>.
    Parameters to be passed:
    VBKOK_WA
    -- VBELN_VL - Delivery Number
    -- VBELN - Sales Document Number
    SYNCHRON - 'X'
    VBPOK_TAB
    -- VBELN_VL - Delivery Number
    -- POSNR_VL - Delivery Item Number
    -- VBELN -- Sales Document Number
    -- POSNN -- Sales Document Item Number
    -- MATNR -- Material Number
    -- LFIMG -- '0.000'.
    Have tried this in both cases whereby we have partial picking done and full picking done and worked for both cases.
    Please try on your end too...
    Hope this helps.
    Regards
    Eswar

  • Update picked quantity and delivery quantity in picking.

    hi,
    i completed delivery with reference of sales order, and also complete pgi useing tc vl02n . i want any standard function module or BAPI for  update the picked quantity and delivery quantity in picking.
    thanks in advance.

    Hi Dhanush,
    Refer to the function module WS_DELIVERY_UPDATE for pick, pack, update serial numbers & PGI functions of the delivery.
    Hope it helps!
    Thanks!
    Preethi.

  • Updating picked quantity, gross and net-weight in delivery

    Hello Experts,
    I have created a program from which I am trying to update the picked quantity, gross and net-weights into an outbound delivery. This works in the normal scenario when the base UoM, sales UoM and the gross and net-weight UoMs are the same.
    However, when these UoMs are different, I have to carry out a conversion according to the UoM being used for each of the quantities mentioned. In such a scenario, the BAPI returns the following messages: -
    Error message: - Error in document 0080005487 item 00010 (quantity consistency check) [Message Class VLBAPI; Message Number 004]
    Warning message: -Quantities  0.0000000000000000E00 and  0.0000000000000000E00 cannot be represented by conv. factors 87,658 and 39,761 [Message Class VL; Message Number 266]
    The BAPI that I am using is BAPI_OUTB_DELIVERY_CHANGE.
    For the parameter ITEM_DATA, these are the values, that I am passing: -
    DELIV_NUM: - 80005487
    DELIV_ITEM: - 00010
    Material: - 30020596
    DLV_QTY: - 4
    DLV_QTY_IMUNIT: - 8.818
    FACT_UNIT_NOM: - 87658
    FACT_UNIT_DENOM: - 39761
    GROSS_WT: - 1.004
    NET_WEIGHT: - 0.004
    UNIT_OF_WT: - TO
    UNIT_OF_WT_ISO: - TNE
    SALES_UNIT: - KG
    SALES_UNIT_ISO: - KGM
    BASE_UOM: - LB
    MATERIAL_EXTERNAL:  - 30020596
    MATERIAL_GUID: - DD7B9B2F133B61F1B6DF0015C5891481
    Please note that the delivery I am trying to update has the following units: -
    Base UoM: - Lb
    Sales UoM: - Kg
    Gross & Nt Weight: - TO
    Please let me know if there is any other value in the item_data internal table or any other parameter of this BAPI that needs to be initialized.
    Please respond ASAP. I have been struggling with this issue for quite some time.
    Regards,
    Divyaman Singh Rawat

    https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_all&query=bapi_outb_delivery_change&adv=false&sortby=cm_rnd_rankvalue
    Will help you out

  • Update picking quantity

    Hi all,
    We are using IDOC_INPUT_DLVRY in order to update the picking quantity for each item.
    For this we are inserting an extra E1EDL18 segment with QUALF = PIC.
    Now, we have the next issue: when the item is a BOM, the FM updates the quantity of this material but not the relative quantities of each material which belongs to the BOM.
    However doing the same operation manually via VA02, when you change the quantity of the parent BOM material every item of the BOM is updated in the delivery.
    Do u know how we can fix this issue? Maybe an OSS note?
    Thank you in advance.

    FM IDOC_INPUT_DLVRY does not exist in my system. In any case, I hope that you are actually using IDocs, not trying to use an IDoc function module to do some updates.
    My guess is that it's a DELVRY05 IDoc. It updates deliveries, not the orders (VA02 is for the orders). Are the deliveries being created and updated correctly? If so, then no additional steps should be required. When delivery line is updated, the corresponding sales order line should also be updated. If this is not happening, ask your SD consultant to check the configuration.
    If there is some unusual business process, you might need to update the orders separately by BAPI or ORDERS05 IDoc.

  • 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

  • How to update order quantity using the fn BAPI_SALESORDER_CHANGE

    Hi experts,
    I have a requirement that,
    when the quantity in the delivery is edited manually , the order quantity  in the sales order should be updated automatically.
    can we achieve that using the Function module BAPI_SALESORDER_CHANGE?
    if so, kindly let me know.
    TIA.
    kanthi.

    kanthi,
    in tables tab in second parameter ORDER_ITEM_IN you can see couple of field for different type of quantity among them you can choose appropriate one.
    field are:
    TARGET_QTY
    RNDDLV_QTY

Maybe you are looking for

  • I have a dell computer and can not get the cloud to download photoes to it. What do I need to do?

    I cannot get the photoes to download to my computer from the cloud. I tried to find thr file that the photoes are to bedownlowed too but itis not on the computer.

  • Change Data Capture in ODI

    Hi all, A client of ours is planning to replicate their production database into a reporting database. All tables will be copied to the reporting DB. They also need to do "Change Data Capture" on the production DB and reflect the changes into the rep

  • Lenovo Thinkpad T60 / Monitor Issue

    When I boot up my computer intermittently the bottom half of the screen is horizontal garbled. I can put the top down to put in hibernate mode and open up and press the on button and most of the time it will fix the problem. Any clues??? Thanks for a

  • Windows 10 Download Link grabs only 2MB only every time

    Hi, as of today (3/30/2015), I tried to download the Windows 10 Enterprise Technical Preview, it only grabs 2MB, then jumps to complete. The link is below http://care.dlservice.microsoft.com/dl/download/B/0/4/B04B2186-C3EC-43FE-9D9E-8AB15D636527/9926

  • Time Machine turns off Computer

    On two occasions, when Time Machine shows its about half way complete in backing up, when I come back to check on its progress, my MBP will be completely shutdown.  When I try to turn it back on, it takes a few times for it to actually turn on.  So w