Updating delivery quantity irrespectuve of errors using Std FM's

Hi all,
Im need to update the quantity for an inbound delivery.I tried using  FM "BBP_INB_DELIVERY_UPDATE".But it gives different results for dfferent Inbound delivries.For some the update happens while for some it doesnt.
The main problem is it doesnt return any exception parameter/error table to know that the update hasnt happened
this FM in turn actually calls the FM 's WS_DELIVERY_UPDATE' and WS_DELIVERY_UPDATE'_2 .These functina have return parameters for errors and hence can be useful in checking the confirmation of update.
However when using these FM 's(WS_DELIVERY_UPDATE' and WS_DELIVERY_UPDATE'_2).,sometimes if there are any errors found,the program stops there and nothig happens further.How do I avoid these errors when using these FM's.I basically need to update the quantty in the dleivery forcefully irresepective of the errors!
Please suggest?
Also if i need to copy the std FM's (mentioned above) which one should i copy??Has anybody worked on a similar reqt earlier?
Thanks.

Hi,
Could you get the solution for your problem? I am having the same problem and I couldnu2019t solve it.
There is a note 1073754  - BBP_INB_DELIVERY_UPDATE: Missing error Handling but it didnu2019t solve it for me.
If you have some information you could share with me I would be really grateful.
Thanks in advanced.
Maria

Similar Messages

  • 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

  • Updating delivery quantity in outbound delivery.

    Hi,
    I have to update the delivery quantity field of an outbound delivery from the quantity that is coming in through an idoc.Is there any BAPI to do the the updation? Also please explain the parameters which need to be passed in the BAPI.
    I tried using a BDC recording but it gave an error that the article is locked.
    Its urgently required.
    Thanks,
    Sandeep.

    Hi,
    Here are the some useful links.
    BAPI to create delivery
    Delivery
    BAPI Outbound delivery
    Please go through them
    Regards,
    Rama.Pammi

  • Pbm in updating delivery quantity and picked quantity in VL03N transaction

    HI all,
    I m using the BAPI 'WS_DELIVERY_UPDATE_2' for changing the picked quantity in VL03N transaction.
    But this BAPI is not changing the picked quantity. Instead it add the old quantity with the new quantity what i mentioned in the ITEM_DATA (VBPOK_TAB table) of this BAPI..
    For example, if the delivery quantity is 3 and picked quantity is 3 for a material item,
    I want to change both the quantity as 2. Is is possible to change both the quantities through BAPI?
    Im using BAPI_OUTB_DELIVERY_CHANGE to update the delivery quantity as loong as the picked quantity is 0.
    If both picked and delivery are same (for example, both are 2),  then i need to change both the quantities (say 1).
    So how can i update both the quantities?
    If so, pls share the BAPI details for achieving this..
    Regards,
    Shanthi

    not answered

  • 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,

  • Sales BOM - Delivery Quantity check during post goods issue

    I am working on a problem in my company.  We are running ECC6.0 ehp 4.  We are using standard ERLA functionality with sales bom (5) for product kits.  Delivery manager has requested that we investigate a system check during delivery post goods issue.  THe problem is that when shipper processes delivery, if they have to backorder they update pick and delivery quanity on the TAE item.  They should also update TAQ delivery quantity, so that backorder amount is correct.  If they make data entry error, backorder quantity is incorrect.  The delivery manager has tried a number of attempts to re-train and correct mistakes.  He is now asking that SAP issue a hard error if TAQ and TAE delivery item quantities are not the same.
    I have searched on SAP Notes, Forms, and Google and do not see solution.  I know that at delviery item category there is a minimum qty check for the item category.  I've not found a user exit or configuration point that checks quanities.  Does anyone know of out of the box solution?  Or where would I put in custom user exit?
    Test Case
    Create Standard Order
    Enter Material with Sales BOM
    ITEM A     Qty 10
    BOM explodes with Item categories
    ITEM A     TAQ parent
    ITEM B     TAE child
    Create Delivery
    Delivery has item categories TAQ and TAE
    TAE is pickable, TAQ no pick
    Process TAE
         Pick quantity of 5 items
         Change delivery quantity to 5 items
         Forget to change TAQ delivery quantity
         Pack 5 items
    Post Goods Issue the delivery.
    Is there are requirement/routine than can be run at time of PGI that checks TAQ delivery quantity is the same as TAE delivery quantity.  If quanities are not the same, show hard error and message do not allow PGI to complete.
    Thank you
    Tony Romain

    I tried setting that field in the sale order this morning.  By defaulting it to "C"; I was able to get warning message for TAE line.  I was able to post goods with TAE and TAQ, being different quantities.  I need the check to determine if TAE and TAQ delivery quantity are different.  Using this fields seems to be line specific.  Thanks for the suggestion.  I now know what that field does to the delivery.
    I rewarded points.
    Thanks,
    Tony

  • Need a FM for change delivery quantity

    Hello,
    I need a FM to update delivery quantity, I have look for the BAPI BAPI_OUTB_DELIVERY_CONFIRM_DEC but I didn't find how it works.
    Any help are welcome
    Frédéric

    Hi,
      I need a SAP FM to update the delivery quantity and the pick quantity, if pick quantity is different than the delivery quantity. I tried SD_DELIVERY_UPDATE_PICKING and WS_DELIVERY_UPDATE_2. Both FMs update pick quantity (even it is different from delivery quantity - strange - online doesn't allow that), but not delivery quantity. Eventhough I pass delivery quantity in LFIMG field of vbpok structure.
    I need it quite urgently, anyhelp? Thanks,
    Regards,
    Sundar.

  • VL02N-Delivery Quantity can be changed in standered by the user

    Hi Gurus
    In STO Scenario After Making The Delivery VL10B Replenishment Delivery in Background
    In Change mode Delivery VL02N Delivery Quantity can be changed in std by the user how can i stop the changing the delivery quantity what should i do
    please its my client requirement
    Thanks in advance

    Dear Balarengan
    I have searched in MM forum and found this thread which is relevant to your requirement
    Forum post in ERP - Logistics Materials Management (MM): STO - How to control Over delivery ?
    STO - How to control Over delivery ?
    hope this helps you
    SAP has a logic for not controlling the over delivery in STO  in standard (unlike sales order  to delivery we have the controls in Zero VLP or 0VLP for this) because STO happens between plants of a same company code or different company codes .The movement of stocks are between plants But in a normal sales the delivery happens to a customer who is actually a third person and hence a user can misuse the delivery quantity
    A plant and an external customer cannot be treated as same
    Hence in SAP standards over delivery is not controlled in standard settings like item category etc
    Regards
    Raja

  • Error E/VL/280 (Required field in interface to delivery update missing &1 &2 &3 &4) using BAPI_OUTB_DELIVERY_CHANGE

    Hi,
    I am trying to change delivery quantity using BAPI_OUTB_DELIVERY_CHANGE. When I tested the BAPI by giving values in the parameters
    HEADER_DATA, DELIVERY, ITEM_DATA and ITEM_CONTROL it is working fine.
    However when I use the same BAPI in program and when I am trying to test it I am receiving error 'E/VL/280' (
    Required field in interface to delivery update missing &1 &2 &3 &4).
    Request to please help me out on how to resolve.
    Much Appreciated.

    Hi Nagarjuna,
    Can you please check the program in debugging  mode, &1 &2 &3 &4 are the place holders specifies some information. Might be missing some information while changing delivery document.
    Check the place holders in debugging mode.
    Thanks,
    Ashok.

  • Update Delivery Qty of  Inbound Delivery using BAPI_INB_DELIVERY_CHANGE

    Hi Experts,
    I'm trying to use  BAPI_INB_DELIVERY_CHANGE to update the delivery quantity of a line item in an Inbound Delivery. However, I keep on getting this error:
    Type: E
    ID: VLBAPI
    Number: 004
    Text: Error in document &1 item &2 (quantity consistency check)
    Below is my test program. Any input will be much appreciated.
    REPORT  ztest.
    DATA: deadlines LIKE bapidlvdeadln OCCURS 0.
    DATA: wa_deadlines LIKE bapidlvdeadln.
    DATA: header_data_t LIKE bapiibdlvhdrchg OCCURS 0.
    DATA: wa_header_data LIKE bapiibdlvhdrchg.
    DATA: header_control_t LIKE bapiibdlvhdrctrlchg OCCURS 0.
    DATA: wa_header_control LIKE bapiibdlvhdrctrlchg.
    DATA: item_data LIKE bapiibdlvitemchg OCCURS 0.
    DATA: wa_item_data LIKE bapiibdlvitemchg.
    DATA: item_control LIKE bapiibdlvitemctrlchg OCCURS 0.
    DATA: wa_item_control LIKE bapiibdlvitemctrlchg.
    DATA: header_data_t_con LIKE bapiibdlvhdrcon OCCURS 0.
    DATA: wa_header_data_con LIKE bapiibdlvhdrcon.
    DATA: header_control_t_con LIKE bapiibdlvhdrctrlcon OCCURS 0.
    DATA: wa_header_control_con LIKE bapiibdlvhdrctrlcon.
    DATA: item_data_con LIKE bapiibdlvitemcon OCCURS 0.
    DATA: wa_item_data_con LIKE bapiibdlvitemcon.
    DATA: item_control_con LIKE bapiibdlvitemctrlcon OCCURS 0.
    DATA: wa_item_control_con LIKE bapiibdlvitemctrlcon.
    DATA: return TYPE STANDARD TABLE OF bapiret2.
    CLEAR: wa_header_data, wa_header_control.
    wa_header_data-deliv_numb = '0180000545'.
    wa_header_data-gross_wt = '3001.000'.
    *wa_header_data-NET_WEIGHT = '3001.000'.
    wa_header_data-unit_of_wt = 'KG'.
    wa_header_data-volume = '1500.5'.
    wa_header_data-volumeunit = 'M3'.
    APPEND wa_header_data TO header_data_t.
    wa_header_control-deliv_numb = '0180000545'.
    wa_header_control-NET_WT_FLG = 'X'.
    wa_header_control-volume_flg = 'X'.
    wa_header_control-gross_wt_flg = 'X'.
    *wa_HEADER_CONTROL-DELIV_DATE_FLG = 'X'.
    APPEND wa_header_control TO header_control_t.
    CLEAR: wa_item_data.
    wa_item_data-deliv_numb = '0180000545'.
    wa_item_data-deliv_item = '000020'.
    wa_item_data-dlv_qty = '3000'.
    wa_item_data-dlv_qty_imunit = '3000'.
    wa_item_data-sales_unit = 'KG'.
    wa_item_data-sales_unit_iso = 'KG'.
    wa_item_data-base_uom = 'KG'.
    wa_item_data-base_uom_iso = 'KG'.
    wa_item_data-gross_wt = '3000'.
    wa_item_data-unit_of_wt = 'KG'.
    wa_item_data-volume = '1500'.
    wa_item_data-volumeunit = 'M3'.
    APPEND wa_item_data TO item_data.
    CLEAR: wa_item_control.
    wa_item_control-deliv_numb = '0180000545'.
    wa_item_control-deliv_item = '000020'.
    wa_item_control-chg_delqty = 'X'.
    wa_item_control-VOLUME_FLG = 'X'.
    wa_item_control-NET_WT_FLG = 'X'.
    wa_item_control-GROSS_WT_FLG = 'X'.
    APPEND wa_item_control TO item_control.
    CALL FUNCTION 'BAPI_INB_DELIVERY_CHANGE'
    EXPORTING
    header_data = wa_header_data
    header_control = wa_header_control
    delivery = '0180000545'
    * TECHN_CONTROL =
    TABLES
    * HEADER_PARTNER =
    * HEADER_PARTNER_ADDR =
    * HEADER_DEADLINES = deadlines
    item_data = item_data
    item_control = item_control
    * ITEM_SERIAL_NO =
    * EXTENSION1 =
    * EXTENSION2 =
    return = return
    * TOKENREFERENCE =
    * HANDLING_UNIT_HEADER =
    * HANDLING_UNIT_ITEM =
    * PARTIAL_GR_OBJECTS =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

    Hi,
    Pls try to use the other structure
    ORDER_SCHEDULES_INX type BAPISCHDLX bcoz it is used to update the required field.
    Now for the date field add the required days to set it as future date.
    ex:
    l_date = l_date + 12. // it will be set to future or requred date.
    Reward if helpful.
    Regards
    Chandralekha

  • 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 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

  • ERROR: PGI in delivery with picked quantity less than delivery quantity

    Hi Friends!
    I need your help, i have the following situation:
    Outbound Delivery with batch position:
    90001  Mat DD3450 Picked Delivery Quantity=98 and Picked quantity=84
    Overall Pick Status = "B"
    Overall WM Status = "C"
    The outbound delivery was posted completely and the following documents was generated:
    WMS transfer order:  With 84 UN in quantity
    Material document:  With 98 UN in quantity
    Invoice: With 98 UN billed
    The question is how was posible to generated the PGI for the outbound delivery when the picked quantity was less than delivery quantity? is a SAP program error?
    Thanks
    Best regards
    Enrique

    benito,
    Check your Picking Confirmation config. as you are using WM/Lean WM, then your Shipping Point should have a mandatory requirement to confirm all TO's. The confirmation should update the Picking Status and the Overall GI Status to 'C' (with any relevant changes to the picked qty). Give that a go.
    Cheers,
    Paul...

  • Error:An item with no delivery quantity is not permitted.

    Hello,
    We are receiving an error:
    Only 0.00 UNT of material XXXX available.
    An item with no delivery quantity is not permitted. Item will be deleyed.
    This material has the following details:
    Material Group: Asset
    Material Type: VKHM
    Ref. Mat Type: HAWA
    Item Cat Grp: NORM
    Industry Sector: A - Plant engin./ construction
    I believe asset is not quantity based. My questions are:
    1. Why is it when creating delivery, quantityis necessary. However,this was configured as asset?
    2. How can i put/add stock in asset?
    - In Define Attributes for material types, i searched for VKHM, and it was already maintained.
    - Area for quantity/ value updating: both were ticked: By Valuation Area for Quantity and Value Updating.
    - When i go to the folder on the left: Quantity/Value updating; Quantity Updating ang Value Updating were both ticked for Valuation area: 0001, material type: vkhm.
    - i also tried to tick Quantity Updating and Value Updating for valuation area (plant name). Butnothing happens.
    Thanks in advance for all of the help.

    In this case, the reason why the delivery can not be created due to the first error:
    Only 0.00 UNT of material XXXX available.
    This error has number VL150, which means there is no avaiable stock when you create the delivery. To check how many
    avaiblable stock you have, you need to check it in transaction CO09. usually for delivery, you should use check rule B.
    In co09, if the ***. ATP qty is 0 or negative, you will get above error and the delivery can not be created. For more information regarding this error VL150, check note 153355 and 1481133.

  • Error message for over delivery quantity in case of batch split.

    Hi All,
    System is throwing error message if I try to to enter delivery quantity more than target quantity(order quantity) in case of standard process which is ok but in case of batch split when split line created (9000001 for line 10) and if go to item level in line item 900001 and enter delivery quantity more than target quantity system is giving only information message, still line item 10 is giving error message but line 9000001 giving only information message, user want this to be a error massege as well. Delivery item category for all the line items is same and status B is assigned to over delivery in item category. Is there any standard way of achieving this or do we need any modification, if yes then what user exit need to use.  
    I searched alot about this in last three days but found only one thread which is unanswered, please provide your valuable suggestions. If this problem is discussed already and solved please provide me the link to that thread as I could't find any.
    Thanks,
    Davinder

    Hi
    Still line item 10 is giving error message but line 9000001 giving only information message, user want this to be a error massage as well.
    I think it you can possible to change the Information message as Warning message.
    Please  go to SE91 put the Message Class XX (Ex:V1) there And in No. field enter the message number (Ex: If message no V1293 enter the number as 293)
    AND
    go for
    where used in then select only Program >ok then Program will come select the Program > double click, you will l find the message with the Description.
    Now with help of ABAP with just comment on these both the messages. Afterwards you will get the Error message.
    Hope this will helps you
    Dasaradha

Maybe you are looking for

  • Positioning of OAMessagePromptBean

    Hello, i created OADefaultListBean and OAMessagePromptBean, and attached OADefaultListBean to OAMessagePromptBean. i am trying to display the Prompt string on top of the list-bean (OADefaultListBean) not on its left. Does anyone know how to achieve t

  • File format passed to external editor

    I could do with some help understanding how LR4 passes files to an external editor. My files in LR are RAW, and I am using both Photomatix and the Nik SW bundle. In the "External Editing Preferences" dialogue I have set the file format to TIFF. To ac

  • How to remove battery- battery not charging

    my iphone 4 suddenly will not charge. I get a "charging tone" for a second. I see the battery status on the screen...then suddenly it disappears and the battery does not charge at all. Anyone have this problem or think they can help me?

  • Parameters in export function

    Hi, I'd like to use the export function to have a bmp file with 300dpi and windows format. It was found that the function have 3 parameters, 1st - filename to be saved 2nd - AiExportType (Flash,GIF,JPEG,Photoshop,PNG24,PNG8,SVG) 3rd - optional Is the

  • Ipod click wheel broken? Help please.

    I've had this Ipod for years, it sort of stopped working one day I don't remember exactly how/why but I just recently found it again and plugged into my sisters Ipod Dock to see if it would work, and it did charge up and would play songs. So I guess