Update quantity on OBD

Hi All,
I need to update the quantity on the OBD. I am using the function module WS_DELIVRY_UPDATE_2 however it is not changing the quantity. I am attaching my code, am sort of stuck here so any quick help will be greatly appreciated.
l_vbkok-vbeln_vl = p_vbeln.
l_vbkok-vbeln = p_vbeln.
*wa_vbpok-vbeln_VL = p_vbeln.
*wa_vbpok-posnr_VL = '10'.
wa_vbpok-vbeln = p_vbeln.
wa_vbpok-posnn = '10'.
wa_vbpok-matnr = '100001115'.
wa_vbpok-lfimg = '23.000'.
wa_vbpok-lianp = 'X'.
*wa_vbpok-lgmng = '23.000'.
Append wa_vbpok to it_vbpok.
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
vbkok_wa = l_vbkok
*synchron = 'X'
NO_MESSAGES_UPDATE_1 = ' '
COMMIT = 'X'
delivery = p_vbeln
UPDATE_PICKING = 'X'
NICHT_SPERREN_1 = 'X'
*IF_CONFIRM_CENTRAL = 'X'
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 = v_err
IF_NO_BUFFER_REFRESH = ' '
IT_PARTNER_UPDATE =
IT_SERNR_UPDATE =
IF_NO_REMOTE_CHG_1 = ' '
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 =
EF_ERROR_PARTNER_UPDATE =
EF_ERROR_SERNR_UPDATE =
TABLES
VBPOK_TAB = it_vbpok
PROT =
verko_tab = lt_verko
verpo_tab = it_verpo_tab
VBSUPCON_TAB_1 =
IT_VERPO_SERNR =
IT_PACKING =
IT_PACKING_SERNR =
IT_REPACK =
IT_HANDLING_UNITS_1 = it_hu_rem
IT_OBJECTS =
*et_created_hus = lt_et_created_hus
TVPOD_TAB =
Thanks,
-Anthony.

Can somebody atleast help me with any other function module that can be used?

Similar Messages

  • BAPI_PO_CHANGE is not updating Quantity and Delivary Date

    HI All,
    I am trying to update quantity and delivery date of PO by using BAPI_PO_CHANGE,
    by Passing below parameters.
    As per the documentation:
    Parameter: PURCHASEORDER 4500003477
    Parameter: POHEADER
    PMNTTRMS = 0002
    PUR_GROUP = 002
    Parameter: POHEADERX
    PMNTTRMS = X
    PUR_GROUP = X
    Parameter: POITEM
    PO_ITEM = 00001
    CONF_CTRL = 0001
    Parameter: POITEMX
    PO_ITEM = 00001
    PO_ITEMX = X
    CONF_CTRL =  X
    Parameter: POSCHEDULE
    PO_ITEM = 00001
    SCHED_LINE = 0001
    QUANTITY = 10.000
    Parameter: POSCHEDULEX
    PO_ITEM =  00001
    SCHED_LINE =  0001
    PO_ITEMX =  X
    SCHED_LINEX =  X
    QUANTITY =  X
    Parameter: POACCOUNT
    PO_ITEM = 00001
    SERIAL_NO = 01
    GL_ACCOUNT = 0000400020
    Parameter: POACCOUNTX
    PO_ITEM = 00001
    SERIAL_NO = 01
    PO_ITEMX = X
    SERIAL_NOX = X
    GL_ACCOUNT = X
    and executed bapi_transaction_commit FM immediate, i am getting below message
    Purchase Orders 4500003477 changed
    Error transferring ExtensionIn data for enhancement CI_COBL
    No message generated for output of purchasing document
    but quantity and delivery date was not  changed..
    why this quantity and delivery date is not changing?
    <removed by moderator>
    REgards,
    Suresh.D
    Edited by: Thomas Zloch on Feb 27, 2012

    Hi ,
    Are you trying to pass the non char fields in CI_COBL. Please look at the link below .
    [http://forums.sdn.sap.com/thread.jspa?threadID=1137795] .
    Also serach for the similar threads when and notes while transferring currency and quantity field in different custom includes of the EKPO ...
    Thanks,
    Anjaneya .

  • RCV transaction processor not updating quantity delivered for requisitions

    We are converting PO receiving transactions using PO details for each transaction. Each PO is having requisition(s) attached to it. Open interface program is not updating quantity delivered for requisitions attached to it but transactions get created successfully.
    However, from iprocurement if we receive the items for requisitions it is updating the quantity delivered column.
    Are we missing something??

    Hi,
    If you enter the receipt manually in Forms (not in iProcurement) referencing the Purchase Order, is it than behaving the same as the converted receipts?
    Regards,
    Marcel

  • Script to update quantity in sub inv

    Can anybody send the script for the api to update quanitiy in the subinventory.This will be helpfull .Pls send as soon as possible.
    Regards
    Kumar.

    936453 wrote:
    Hi All,
    Is there any Api to subinv transfer and update quantity in sub inv.I am waiting for reply.
    Regards
    KumarPlease do not post duplicats -- Api to update recipt quantity in PO

  • Update Quantity in Subinventory

    Hi All,
    I have a requierment.When goods receive into HOLD subinventory,i want to send the quality passed goods into ACTIVE Subinventory and i want to update quantity in subinventory.Please guide me.Is there any api to update quantity in subinventories.
    Thanks
    Kumar.

    if you are using R12, you can perform Inventory Subinventory Transfer transaction using 'Inventory Transactions Interface' by populating records in MTL_TRANSACTIONS_INTERFACE table.
    if the items are lot controlled, then you need to populate the lots data in MTL_TRANSACTION_LOTS_INTERFACE table.
    Thanks,
    Hrishikesh

  • Where can I update quantity in material master ?

    I was working on STO (Stock Tranport Orders) scenarios
    Bascially stock tranport orders can be done in three ways
    1. Stock Transport via stock transport procedure using 1 step procedure
    2. Stock Tranport via stock tranport posting using 2 step procedure
    3. Stock Tranport using a STO ( in Tcode me21n, where we select STO)
    Now, when I entered MIGO and selected Transfer posting and movement type 301
    (Transfer posting from plant to plant) and maintained the material details
    It is throwing up a message "Shortfall of stock level"
    I went to material master of the respective material for both the plants and updated the base quantity in the sales view ( base quantity field , under the shipping data ( times of day) block)
    Yet, it did not fix my problem and I am not sure where else I can maintain <b>quantity in the material master for the material</b>Any inputs into the above will be helful
    Thanks for your time

    Hi,
    If The material has no BOM then it mustbe a ROH material.
    What u can do is :\
    Goto Transaction MIGO do movement type 101 - goods receipt with purchase order.
    If u dont have a purchase order than go with goods receipt with option as "others" and enter the material,Quantity,plant and storage location and post the goods movement.
    After that if u check MMBE then the stock will be available.Then go for STO it should be fine.
    So material master does not come into picture.
    Check the same and come back if u have any doubt.
    Prakash

  • BAPI_SALESORDER_CREATEFROMDAT2 ...not updating quantity of all line items

    Hi All,
    I'm using BAPI_SALESORDER_CREATEFROMDAT2  to create a sales order where order type is having multiple line items.
    All the fields are being updated in SAP correctly . But quantity field is updated only for first line item. For all other items, all fields are being updated except quantity. I checked in Debugging and all the values for all line items are coming correct.
    Pls suggest me.
    Thanks in advance..
    Rudresh
    Mumbai

    Hi Rudresh
      Please check if you are passing Schedule lines for the same.
      Itz better if you pass item number for ORDER_ITEMS_IN. Use the same as reference for ORDER_ITEMS_INX, ORDER_SCHEDULES_IN, ORDER_SCHEDULES_INX, ORDER_CONDITIONS_IN, ORDER_CONDITIONS_INX.
    Kind Regards
    Eswar

  • How to update Quantity and Value in Licences for Deemed Export

    Dear All,
    Could you please let me know where I have to update the Quantity and Value of Licence in case of Deemed export.
    I am not aware much about Deemed export. I hope CT3 is the licence, against which we have to maintain the Value or Quantity.
    While creating ARE3 documet, Quantity or Value will be reduced from the Licence.
    Kindly update me regarding this.
    Regards,
    Mullairaja

    Hi,
    First of all you need to mainataiin Number ranges for T.code:SNRO
    1.Licence :J_1ILIC
    2.Are3 :J_1IARE3 
    3.Create License In T.code : J1ILIC01
    4.Create ARE 3  T.code: J!IA301.
    4. Enter the license details in the item tab of ARE Create document.
    on Posting  the ARE 3 document Quantity and Value will reduces from the Licence. you can check again in
    Regards
    Shekar

  • Is there any api to update quantity in sub inventory

    Hi All,
    I want to transfer quantity from one sub inv to another sub inv and also i need to update the sub inv quantity.Please help me.
    Regards
    Kumar.

    Hi;
    All APIs are listed in Oracle Integration Repository
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    "12: How To Access API References via the Oracle Integration Repository" [ ID 462586.1]
    "Oracle Integration Repository Documentation Resources Release 12" [ ID 396116.1]
    Pelase also check below:
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Oracle Common Application Components API Reference Guide
    download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
    List of APIs and open interface R12
    Re: List of APIs and open interface R12
    Regard
    Helios

  • Update quantity in sales order by 'BAPI_SALESORDER_CHANGE'

    I am trying to use the 'BAPI_SALESORDER_CHANGE' to change a sales order. I have to add a line item for empties in the sales order. the line gets sucessfully added but the quantity is not gettign updated.
    I have tried all the fields of table ITEM_IN (target_qty COMP_QUANT RNDDLV_QTY) and set the flag for the corresponding in item_in as 'X' but still the order quantity field in sales order remains empty. How can I add the value in order quantity.

    Hi,
    Have you tried using the BAPI table SCHEDULE_LINES? This should work. Just add one line to this table for the required quantity.
    Hope this helps,
    Sumant.

  • Do not updated quantity in transit field in DELINS JIT

    Hi,
    I have EDI defect in hand which states that Quantity field in transit for DELINS JIT has to be not updated. What exactly this means?
    Can any one let me know what needs to be done?
    Raghuram.

    Dear Raghu
    I am not very clear about your problem.  However, DELINS is nothing but  Message Type system shows which is an enhanced EDI Interface.
    If I am correct, while you are trying to create outbound delivery, the said error shows.  Am I right??
    If so, enter the quantity you want to delivery and save.
    Thanks
    G. Lakshmipathi

  • Problem in updating Quantity using 'BAPI_SALESORDER_CHANGE'

    Hi,
    I am using Bapi_salesorder_change to update item quantity and reason for rejection.My code is as below.
           MOVE c_u TO e_orderheader_inx-updateflag.
            FREE i_orderitem_in.
            MOVE newitem-posnr_ref TO e_orderitem_in-itm_number.
            MOVE c_rej TO e_orderitem_in-reason_rej.
            MOVE c_qt TO e_orderitem_in-target_qty.
            APPEND e_orderitem_in TO i_orderitem_in.
            FREE i_orderitem_inx.
            MOVE newitem-posnr_ref TO e_orderitem_inx-itm_number .
            MOVE c_u TO e_orderitem_inx-updateflag.
            MOVE c_x TO e_orderitem_inx-reason_rej.
            MOVE c_x TO e_orderitem_inx-target_qty .
            APPEND e_orderitem_inx TO i_orderitem_inx.
            FREE i_return.
            CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
              EXPORTING
                salesdocument              = xvbak-vbeln
                ORDER_HEADER_IN            =
                order_header_inx           = e_orderheader_inx
              TABLES
               return                      =  i_zbapiret2
               order_item_in               =  i_orderitem_in
               order_item_inx              =  i_orderitem_inx.
    But in 'i_zbapiret2' iam getting the below errors.
    1)Storage location BH in plant is not defined .
    2) Error in ITEM_IN 000020
    3) sales documnet 000078965 was not changed.
    PLease help me to solve this problem.
    Thanks in advance,
    Sravanthi.

    Hi,
      From the error message it seems that you dont have the storage location for the plant as you have passed to the BAPI check table 'T001L' to see if that storage location is there for the plant. If not then we need to maintain that.
    Regards,
    Himanshu

  • Updating Quantity and delivery date from bapi_po_change.

    Hi Guru's.
    i had a question which is regarding PO updation through bapi-po_change.
    my requirment is to update PO from PR.
    i can able to update a po from PR for multiple line items.
    i am facing the problem with single line items.
    problem :
    when i create single line item and change existing line item, which is performing two actions at a time
    i can able to create a new line time from PR to Po , even i can able to change the existing line time partially that is it is updating only quantity but not delivery date, it is updating the delivery date which is created for new line item.
    please help me out how to resolve this,
    plz guide me what are the parameters which i supposed to pass.
    every thing is working fine for multiple line items but not single line item.
    Regards,
    Raj.

    Hi,
    No response , please any one can provide the resolution for this.
    Regards,
    Nagaraju.

  • Update quantity

    Hi All
    SC has been tranfered into backend, PO has been created,
    confirmation for Goods Receipt is done and the invoice has
    also been created. And now one item must be updated since
    the creator has received only 5 instead of 9.
    How can the quatity be adapted now. Which steps are necessary to achieve
    this requirement.
    Finally did never receive the 4 pieces.
    thx
    marco

    Hello Marco,
    You have a few options there:
    1)Delete both confirmation and invoice, and expedit new documents
    2)Create a Credit memo, reducing the quantity of invoice, create a Return Delivery to lower the quantity of confirmation
    Regards
    Thiago Salvador

  • Update quantity in planned receipt in RO

    How to update the Planned receipt quantity in Replenshinment order. Is there any BADI for this.
    We have some cutom logic to calculate the quantity and we need to change this Planned receipt quantity with this new value.

    Hi Lekha,
    What is the scenario you have ?
    Supplier can manually update planned receipt in SNC WebUI or using SMI planned receipt file download/upload functionality.
    If it is EDI supplier then you can ProductActivityNotification_In towards SNC from PI.
    Regards,
    Nikhil

Maybe you are looking for