Updating a delivery

Hi,
We have an outbound delivery in SAP. An external system (haulage system) sends us in a flat file with the forwarding agent and the cost associated with each item on the delivery. Using a proxy we are hoping to be able to update the delivery with the forwarding agent and put a cost condition (statistical) on each item on the delivery.
Does anyone know of a function module / BAPI to update the delivery?
Thanks in advance,
Finbarr

Hi Max,
Thanks for your reply.
The function module does not give the option to update the statistical cost on each item on the delivery. Any idea on this?
Thanks,
Finbarr

Similar Messages

  • Status is not updated from delivery to sales order item.

    Dear Folks,
    One user created sales order with 10 line items and he created delivery and later he deleted line item 30 in that delivery document and with remaining 9 line item he done the PGI & Billing.Here what is the problem is the deleted line item in sales order status showing as completed and delivered quatity showing as 10.Status is not updated from delivery to sales order item.Please let me know how to resolve this?
    Thanks & Regards,
    murali.

    Dear Murali,
    Please go to VTLA transaction then select your delivery and order types after that go in to the details of the item level settings here you check field called Update document flow under Control data tab.
    I hope it will help you,
    Regards,
    Murali.

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

  • Update Outbound Delivery in EDI Process - Urgent

    Hello experts,
    I have to update outbound delivery for picking & PGI in EDI.
    I recognized the standard BAPI - BAPI_OUTB_DELIVERY_CONFIRM_DEC for this process, but it doesn't confirm picking.
    I also recognized the IDOC - IDOC_INPUT_DELVRYwhich doesn't create partner function.
    So now I need to choose any one & enhance with the help of User exit. I found a user exit in IDOC for creating partner function but there is no user exit in BAPI for picking confirmation.
    Please suggest me which is the best to use an IDoc or create a custom BAPI for this scenario with pros & cons.
    Thanks in advance,
    Sangeetha K
    null

    Hi gurus,
    Please help me with the issue.
    Points rewarded........
    Sangeetha

  • Update a delivery with empty HU

    Hai guys,
    My delivery has 1 pallet and 4 hu's with 1 material each in them.
    I need to update this delivery with 4 more empty HU's.(it is manadatory  for each pallet to have 8 hus)
    i am creating everything programticaly...
    now i created hus with fm  CALL FUNCTION 'HU_CREATE_ONE_HU'.
    how can i update delievery with this HU mainting the hierrachy as
    pallet(0)
    hu(1)
      mat(2)
    hu(1)
    mat(2).
    hu(1)
    mat(2)
    hu(1)
    mat(2)
    hu(1)
    hu(1)
    hu(1)
    hu(1).
    i dont want BDC.

    Thanks for the response....The FM WS_UPDATE_DELIVERY doesn't update the date events of delivery. I already used this FM to update the picking information & PGI, which also updates the delivery header data.
    Help me with this..
    Gita

  • Updating Outbound Delivery Bill-to Using SD_PARTNER_UPDATE

    Hi everyone,
    I have a requirement to update the outbound delivery partners, specifically Bill-to and Payer.
    The customer system version is 4.6c, so the BAPI to update the delivery found in 4.7 onwards is out of the question for now.
    I found a function module SD_PARTNER_UPDATE, however I am having difficulty in making it work, even with the COMMIT statement.
    Does anyone have any experience in using the function module, and can you provide at least an idea on how to populate and properly use it?
    Thanks in advance.

    A better option would be to use a break point on this FM while creating a sales order. That way you will know how standard uses this FM.
    Thanks,
    Vikram.M

  • Updating the delivery document once the picking is done :

    Hi Iam designing a custom screen,
    Here i have a icon for automatic picking, should be a check box for that, if it is once checked all the lines items in the transaction should be automatically picked as of the delivery quantity.(The delivery quantity should be copied automatically in picking column if auto Picking is selected).
         Once the picking is done, and hit SAVE, then the data should be updated automatically to delivery document, all the picking quantities should be copied to delivery document for those concerned line item. The picking quantity should update field LIPSD-PIKMG, in delivery picking tab.
    Please advice how we can achieve this.
    Edited by: vinay raj on Jun 19, 2009 12:52 PM

    yes iam using the same function module.
    But for some reasons this function module is not updating the delivery document.
    Any suggestions.
    iam writing the code like this :
    LOOP AT IT_PICK.
        hvbpok-vbeln_vl = it_pick-vbeln.----
    delivery number
        hvbpok-posnr_vl = it_pick-posnr.----
    delivery item
        hvbpok-posnn = it_pick-posnr.----
    i have doubt here
        hvbpok-vbeln = it_pick-vgbel.----
    doubt here.
        hvbpok-vbtyp_n = 'Q'.
        hvbpok-ndifm = 0.
        hvbpok-taqui = ' '.
        hvbpok-charg = it_pick-charg.
        hvbpok-matnr = it_pick-matnr.
        hvbpok-lfimg = it_pick-lfimg.
        hvbpok-pikmg = it_pick-PICQTY.----
    picking quantity
        hvbpok-brgew = it_pick-brgew.
        hvbpok-gewei = tvblkp-gewei.
        hvbpok-volum = tvblkp-volum.
        hvbpok-voleh = tvblkp-voleh.
        hvbpok-orpos = 0.
        APPEND hvbpok.
      ENDLOOP.
      VBKOK-KZLSP = 'X'.
    *insert default value for test
      VBKOK-VBELN_VL = l_vbeln.----
    Delivery number.
    BREAK SKUMAR.
      CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'
        EXPORTING
          VBKOK_WA                     = vbkok
          NICHT_SPERREN                = 'X'
          AUFRUFER_T                   = 'X'
        TABLES
          VBPOK_TAB                    = hvbpok.
      IF SY-SUBRC EQ 0.
        COMMIT WORK.
    Edited by: vinay raj on Jun 23, 2009 6:58 AM

  • Using BAPI_SALESORDER_CHANGE to update the delivery date

    Hi All-
    I am using BAPI_SALESORDER_CHANGE, to update the delivery date on the schedule lines...If I have 2 lines of schedule, needs to be updated the second one ETENR '0002'...
    Bapi returns message that successfully processed, when I go back and look at Sales order, I don't se any changes on schedule line..
    I am pssing into BAPI, sales doc and schedule line with the delivery date and the flag 'U'..and also I am using BAPI commit...
    But, let me know if I am missing something and also let me know is it possible to change schedule delivery date or not?
    Thanks,
    Sony
    Please try to use a meaningful subject.
    Edited by: Rob Burbank on Feb 25, 2009 2:08 PM

    give a meaningful title to ur thread, so that, people get u back quickly. Just tip that, try to do ur requirement online, then Observe How the system is behaving....thanq

  • Sales Order Update during Delivery Creation

    Hi,
      I have a requirement to update one of the customer specific sales order header table field during the creation of delivery.I'm trying to do this through the delivery user exit USEREXIT_SAVE_DOCUMENT program MV50AFZ1.
    I have a structure CVBAK available, but if i update customer specific the field in the CVBAK it's not changing the sales order.I won't be able to use BAPI or BDC to update SO from the exit, because during this delivery process the current sales order is being used, so system doesn't allow me to acces the sales order.
    Please give me the solution for my problem.
    Thanks

    Hi
    Probably the table VBAK is not updated by delivery transaction, so u can try to update that field (if it's custom field) by yourself.
    U can create a you function module for updating and call it in USEREXIT_SAVE_DOCUMENT:
    FORM USEREXIT_SAVE_DOCUMENT.
    CALL FUNCTION 'Z_VBAK_UPDATE'
          IN UPDATE TASK
          EXPORTING
               VBAK = VBAK.
    ENDFORM.
    In 'Z_VBAK_UPDATE' insert the code to update VBAK, you can also try to call the BAPI here, perhaps (the fm is called in update tusk) in this moment all blocks are released.
    Max

  • What is the best way to update the delivery time?

    Hi All,
    One of the tasks I have in my job is to updste purchase orders with information found in the orderconfirmation we receive. In the order screen, ME22N, you can change the date in the item, where you have all positions listed. But you can also change it in the tab classifications.
    What is the best way to update the delivery time?
    Best Regards
    Praveen

    Hi
    It may userfull to you
    If you change the delivery date after you have send the PO, then the statistical delivery date is still containing the old delivery date., as long the order is not send this date is changed together with the delivery date.
    Vendor evaluation is performed based on statistical delivery date.
    So if you are responsible for a date change, then you change both dates, that the vendor does not get bad points. but if the vendor cannot deliver at the wished dates, then you change the delivery date only, that all people in your company and MRP run can rely on the new delivery date, but your vendor is evaluated against the old date, because of his fault.
    regards
    Madhu

  • SIS- Updating- Open Orders value and quantity not updated after delivery

    Dear Guru's
    in the SIS transaction MCTA
    when i create the sales order the values in the fields
    incoming sales ,sales,credit memo,open orders ,open orders etc
    are getting updated correctly
    but after creating the delivery,pgi and billing these values are not getting updated .like the reduce in the open order,open oerder qty they same as earlier afer creating sales order.
    if i cancel the order then the values are again updated accordingly
    can you please suggest me a solution for this problem,why this is happening of not geting updated after doing delivery and pgi
    waiting for the reply
    thanks in advance
    ramana

    Hi,
    Your query revolve's around LIS reporting. For any reporting, SAP recommended solution is SAP BI
    FYI SAP is not going to continue Support for LIS Based reporting.Developement on LIS based reporting is already stopped.
    Companies still use this tool to manage their reporting.
    Not all the key figures are updated by default. In your case you will have to carry out the enhancement.
    Please go through the following path:
    SPRO - Logistics General - Logistics Information System --- Check Help on Data Enhancement.
    Rgds

  • BADI/User Exit for custom table update from Delivery

    Hi
    Our requirement is to update a custom table with the delivery number and other related details when the picking status is changed to "C". Kindly suggest BADI/User exit for this requirement .
    Thanks in Advance for your immediate help .

    Hi Joseph,
    See SAP Note 415716 - User exits in delivery processing. It says when you have the document number available, what is permitted, what not, ....
    I hope this helps you
    Regards
    Eduardo

  • PO item change is not updated after Delivery completion

    Dear All,
    PO item change is not updated in the PO at the completion of the delivery.for a particular line item. In our QA system, its updated but client is facing an issue with the production system. Pls check the attached screen which I got from QA. There is no such log in the production system. Kindly help me to have a solution for this.
    Regards
    Sujith

    Hi Dev,
    After we post the GR for a PO line item, PO history is updated (line) and at the same time that particular change log is available under PO line item. But in production system, said log is not updated after GR is completed fully.
    Rgs
    Sujith

  • XABLN not getting updated in delivery during PGI by IDoc

    Hi Experts,
    Please help with scenario below
    I am posting an IDoc with XABLN (GR/GI Slip number) in the EDL20 segment
    The IDoc posts successfully and performs GI too (the delivery is an utbound delivery and am doing a PGI using this inbound IDOc from customer)
    But the GR/GI field is not getting updated in the Outbound delivery (this is for Italy, so GR/GI is required by business)
    any inputs will be greatly appreciated,
    Thanks very much
    Usman
    Edited by: Usman Basha on Jul 30, 2009 11:16 PM

    Found this by my ABAPer (myself ).
    I thought there must be a functinal solution for this one
    but got to change some code to make it happen.
    if anyone else is looking for the same:
    go to user exit  ZXTRKU03 and export the XABLN number to a memory id, will need this in the "USER exit save"
    then go to SD user exit MV50AFZ1 and retreive it and update XLIKP-XABLN and read the XABLN number from memory and modify this internal table.
    Thanks
    Usman

  • How system updating the delivery dates in sale order schedule line

    Hello
    i created a sales order with 2 line items. For the first line item the confirmed delivery date in the schedule line is 06.02.2012 and for the second line item the confirmed delivery date in the schedule line is 14.02.2012 . Both the line items are third party items and the PR created against the line items in the sales order .
    We created the PO with reference to the PR of the SO and we find there are different delivery dates coming in the PO document for the 2 line items . For the first line item the delivery date is coming as 14.11.2011 and for the second line item in the PO , the delivery date coming as 11.11.2011 . Firstly we are not understanding from where the delivery dates are picking in the PO.
    Secondly , once we saved the Purchase order and once we come back to the sales order , the schedule line dates are getting changed automatically in the sales order . For the first line item in the sales order the delivery date is changing to 22.11.2011 and for the second line item in the sales order the delivery date is changing to 22.11.2011.
    Now my question , is from where the delivery dates are updating in the Purchase order and once we save the purchase order how the delivery dates in the schedule line are getting changed .

    Now my question , is from where the delivery dates are updating in the Purchase order and once we save the purchase order how the delivery dates in the schedule line are getting changed .
    For third party processing, the delivery dates are updated in the purchase order based on the settings in the field Planned delivery time in the MRP2 view of the material master(defined in purchase info record in t.code ME11/ME12) and purchasing processing time defined in t.code OMEW. This means, since the date of PO created, it will take the days mentioned in the planned delivery time field and purchasing processing times to determine the delivery date, which will be copied into the sales order as delivery date. In your case, the purchase order delivery date is not copied into the sales order, hence you may need to check OSS note. How the PO is handled? Any confirmation control functionality is used?
    Regards,

Maybe you are looking for

  • ME80FN-For Open PO's Only

    Hi All, I need the report ME80FN to be displyed only for Open GR's, i  know this can be reported from ME2N/ME2L with WE101.However,i would like to see the same in ME80FN please tell me what selection i need to use. Thanks, John

  • Unable to install Weblogic server 64 bit 10.3.0

    I am trying to install Weblogic server 64 bit 10.3.0. Downloaded the generic net installer zip file of 64 bit. And installing using the jar file installer.jar by pre-installed 64 bit JDK version 1.6.0_22. During installation, while installing the fil

  • How to create text box with multiple lines in selection screen.

    Hi, i need to create a text box to capture comment with 300 characters. i want to achive this without using module pool,is there any posibilities to that regards raja

  • Failed to allocate port(s) in the specified range(s) for the following....

    Hi, I'm attempting to install oracle 10.2.0 on Solaris 10. When I create a database i get the error: Failed to allocate port(s) in the specified range(s) for the following process(es): ..... So I look at the logs and there looks like to be some confi

  • My computer crashed, erased my iTunes.

    Everything on my computer is erased. I have about 1500 songs on my iPod. How do I get it so I can redownload iTunes and have it so they don't get erased? I really don't want to redownload all those songs.