Updating or changing the outbound delivery

Hi
we have created a outbound delivery in the system, I want to update some of the detials like route, no of packages using a program. is there any FM or BAPI for that. I have tried using the  BAPI_OUTB_DELIVERY_CHANGE to update the route in the delivery. But somehow it is not updating and the BAPI does not give any error message also.
thanks
sankar

you need a program like this example:
REPORT  ZOUT_DELIVPICK.
tables:VBFA, LIKP, LIPS.
DATA : WA_VBKOK LIKE VBKOK.
parameters vbeln like VBFA-vbeln.
*select-options: posnr for VBFA-POSNv.
DATA : I_VBPOK LIKE VBPOK OCCURS 0 WITH HEADER LINE.
DATA : I_PROT LIKE PROTT OCCURS 0 WITH HEADER LINE.
data:begin of it_items occurs 0,
       posnr  like vbfa-posnv,
       PIKMG  like VBPOK-PIKMG,
     end of it_items.
START-OF-SELECTION.
  it_items-posnr = 000010.
  it_items-PIKMG = '1.000'.
  append it_items.
  it_items-posnr = 000020.
  it_items-PIKMG = '2.000'.
  append it_items.
  it_items-posnr = 000040.
  it_items-PIKMG = '3.000'.
  append it_items.
loop at it_items.
  WA_VBKOK-VBELN_VL = vbeln.
  SELECT SINGLE * FROM LIKP WHERE VBELN = VBELN.
  MOVE-CORRESPONDING LIKP TO WA_VBKOK.
  SELECT SINGLE * FROM VBFA WHERE VBELV = vbeln.
  IF SY-SUBRC = 0.
    WA_VBKOK-VBELN = VBFA-VBELN. " Sales and distribution document
  ENDIF.
Fill the item level
  I_VBPOK-VBELN_VL = vbeln.
  I_VBPOK-POSNR_VL = it_items-posnr.
  SELECT SINGLE * FROM LIPS WHERE VBELN = vbeln AND
    POSNR = I_VBPOK-POSNR_VL.
  SELECT SINGLE * FROM VBFA WHERE VBELV = I_VBPOK-VBELN_VL AND
  POSNV  = I_VBPOK-POSNR_VL.
  I_VBPOK-vbtyp_n = 'Q'.
  I_VBPOK-meins = 'EA'.
  I_VBPOK-VRKME = 'EA'.
  I_VBPOK-taqui = 'X'.
  I_VBPOK-orpos = 0.
  MOVE-CORRESPONDING LIPS TO I_VBPOK.
  IF SY-SUBRC = 0.
    I_VBPOK-VBELN = VBFA-VBELn. " Sales and distribution document
    I_VBPOK-POSNN = VBFA-POSNn. " Item of an SD document
    I_VBPOK-VBTYP_N = VBFA-VBTYP_N. " Document category
  ENDIF.
  I_VBPOK-PIKMG = it_items-PIKMG.
  I_VBPOK-LFIMG = it_items-PIKMG.
  I_VBPOK-LGMNG = it_items-PIKMG.
  APPEND I_VBPOK.
endloop.
  CALL FUNCTION 'SD_DELIVERY_UPDATE_PICKING'
    EXPORTING
      VBKOK_WA               = WA_VBKOK
      SYNCHRON               = 'X'
      NO_MESSAGES_UPDATE     = SPACE
     nicht_sperren          = 'X'
     AUFRUFER_T             = 'X'
      IF_ERROR_MESSAGES_SEND = ' '
    TABLES
      VBPOK_TAB              = I_VBPOK
      PROT                   = I_PROT.
  if sy-subrc = 0.
    COMMIT WORK.
    WRITE:/ 'success'.
  else.
    write:/ 'not success'.
  endif.

Similar Messages

  • UPDATING THE OUTBOUND DELIVERY

    Hi ABAP Gurus,
    I have one urgent requirement as below,
       Outbound delivery gets updated/picked for the quantities as stated in the related inbound delivery via BAPI_OUTB_DELIVERY_CHANGE or WS_LM_GOODS_MOVEMENT , or WS_DELIVERY_UPDATE.
    1.1.1.2.        Outbound delivery gets additional data as described in section .
                    Required fields to be updated into the outbound delivery:
    Source
    Description
    Target
    Description
    Specific
    ZMM_EDI_CONF- ZFWNR
    MAWB/OBOL number
    LIKP-BOLNR
    Bill of lading
    Conf. type ‘1’
    LIKP-TRAID
    Means of Transport ID
    LIKP-TRAID
    Means of Transport ID
    HAWB/FCR number
    ZMM_EDI_CONF- ZCSBR
    Broker reference
    LIKP-LIFEX
    External reference
    Conf. type ‘2’
    ZMM_EDI_CONF- ZCSDO
    D.O. date
    LIKP-TDDAT
    Transportation planning date
    Conf. type ‘2’
    ZMM_EDI_CONF- ZCFTN
    Trailer number
    LIKP-TRMTYP
    T.B.D.
    Conf. type ‘3’
    ZMM_EDI_CONF- ZFWVN
    Vessel name
    Text-ID Z060
    Conf. type ‘1’
    LIPS-LFIMG
    Quantity
    VBFA-RFMNG
    Pick quantity
    Please help me by sending th ecoding to how to update the outbound deliveries.

    Got the solution.
    Thanks.
    Edited by: zamishaik on Jan 24, 2012 6:03 PM

  • GR against the Outbound Delivery

    Hi
    If I MIGO Goods Receipt referencing the PO the Stock account is posted.
    But I MIGO Goods Receipt referencing the Outbound Delivery Order the stock account is not get posted.
    Basically, I am doing GR for the Intercompany STO (using NB P.O type).
    since the GR reference the PO throws error as the Delivery document flow cant be updated, I am exploring into GR ref to OBD.
    Thanks
    regards
    RG

    Hi Sachin
    I am using 643 & 101.
    after GI (shipping plant) - 643 makes a credit posting to shipping plant account and a COGS (Cost of Goods Sold)
    For the Receiving plant- 101 upon goods receipt only the stock inventory should be get Debited. Which is not happening now.
    Infact my sand box works fine, but something strage the test box after 101 the stock account is not posted anything, only the GR/IR and PPV.
    I do compare in OBYC & MMPV account grouping, but could not find anything different.
    any expertise support is appreciated..
    regards
    RG

  • BOM item qty does not change when header qty changes in Outbound Delivery

    Hi,
    We are using sales BOM and exploding it in Sales Order.  ( Item category of components as TAE )
    I am creating a delivery with reference to  a sales oder ( i have maintained copy controls to copy header and item data). Now when i change BOM header quantity in delivery document system is  not redeterming the components quantity , item quantity of the components does not change.
    Please let me how can i control item qunatity when BOM heade quantity changes in outbound delivery document
    Thanks
    Venkata Rama Reddy.K

    Hello Venkata,
    The components item category is TAE, that means the item category for the header item will be TAQ. Also the pricing will be carried out at the header item level only.
    Now for your query:
    The standard item category controls of TAQ will not have any connection between the header & the item level quantities in the delivery. If you change the quantity of the header item in the sales order, the quantity of the compnenets will be automatically adjusted. But this will not happen in the delivery with the normal settings of TAQ.
    Solution:
    Go to transaction code VOV7 - select TAQ - double click - In the Bill of Material/Configuration section , there is a field "Create Delivery Group" - select "X - Form delivery group with one delivery date".
    Save the settings. Now create a new sales order & then create the delivery & try to change the quantity of the header item, the system will automatically change the quantity of the components. (the system may not change the quantity of the components in the delivery of the old sales order - change it manually)
    With best regards,
    Allabaqsh Patil.
    Idhasoft Ltd.

  • BADI/user exit to be used EIPO-TEXT1 field of the outbound delivery line item?

    Hi ABAPERS,
    Need some help on an enhancement with reference to outbound delivery in SCM module.I have a requirement for an enhancement to ensure that the License Check is performed for each Delivery Item based on the Material`s Export Control Parameters and updating the license number identified against each of the line item in the outbound delivery in a predetermined field.
    Basically, Using enhancement, find the appropriate License based on the information fetched from the Delivery Document and check if this is matching with the available License Information. Then the appropriate License fetched should be visible in the License Log of the Delivery Document.
    The valid License No. fetched should be updated at the Delivery Document Item – Foreign Trade – Comments Tab-Description Field 1.(ie. populate the license T606Z-GENNR in EIPO-TEXT1 field of the outbound delivery line item.).
    Could you please advise on the BADI/user exit to be used in this case. Request your inputs.

    I found the solution myself. I was actually not needing a user-exit to do this. I just simply solved it by using function modules READ_TEXT and SAVE_TEXT in a customer program.
    Regards.

  • Stoarage location is not being reflected in the outbound delivery

    Hi
    I have a scenario of creating outbound delivery with respect to sales order, But when i am creating outbound delivery vai  tranaction Vl10H , The system creates outbuond delivery but the stoarge location is not being reflected in the outbound delivery  . Since this storage location is WM managed  hence the WM  status shows that the transfer order is not required .
    When i tried to put manually the storage location  the system  throws an error that this storage location in not maintained in plant R001 .
    Althoght the stoack has been there in the stoarage location with resepct to plant ans also  the matrerial master is also been extended for  this storage  laocation and all the respective views such as WM and Sales hasbeen maintianed .
    Could any one guide me what correction is to be done to incorporate the Storage location in Delivery ?
    Thnaks and Regards
    RAJ K

    Hi,
    did you check if there is a storage location determination maintained for the relevant combination of shipping point, plant and
    stor.conditions (table TVKOL)?
    Please also check if the storage location determination is activated for the relevant delivery item type in customizing (transaction 0vlp - field "Determine storage location" (V_TVLP-BELGO)).
    Regards,
    Ely

  • How to change the default delivery day when i create a shopping cart?

    hi,dear
    i got some trouble when i was creating a shopping cart.
    i want to change the default delivery day when i reference an old template.
    pls see the pictures and take the details.
    it seems that this forum dont support the [img][/img],so pls clike the link to open the picture.
    if you cant see the picture ,pls tell me,thank you
    step1:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111119338649_0.jpg
    step2:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111119432170_0.jpg
    step3:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111119557507_0.jpg
    step4:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111120079773_0.jpg
    Edited by: ming yu on Sep 11, 2009 5:22 AM

    Hello Ming,
    Have a look at following thread concerning BAdI BBP_CHANGE_DEFAULT:
    [Change the delivery date (Required on) of SC|Change the delivery date (Required on) of SC;
    You will have to check in which SC transaction you are in order to distinguish creation from reference to old template.
    Regards.
    Laurent.

  • HU Error-While posting the PGI against the Outbound Delivery

    Hello,
    I am facing the issue,when posting one PGI against the outbound delivery.The error is as below:-
    " Negative stock: 8,000 material: 51238495FA on HU 00233034307019924815"
    The error message detail is :-L9-604"
    Could you please let me know,how we can overcome this issue.
    An earliest response would be appreciable.
    Thanks
    JP

    Have you completed TO and ITs confirmation process for the outbound DElivery ?.If yes then if you are using warehouse managed material then check the stock in LS26  it should be 916 location and then check the handling unit stock.
    Check the Handling unit status is 01 status or  some other status.If it is 01 then definatly sytem will allow you PGI.Check your HU history is your delivery is final document or not .It seems some mismatch with delivery qty and handling qty in your case.

  • Idoc used by CRM to post the outbound delivery in R/3 while saving the sale

    Hi,
    Can any one tell me …which idoc (from the r/3 system) the crm system calls while creating a inbound delivery for the sales order created in crm.
    I am having fields like ‘Transaction Type’, ‘Ext. Reference cust’, ‘Delivery Control’ etc…which are there in the CRM.These fields need to copied to the R/3 in the tables LIKP and LIPS.
    The process of creating the outbound delivery is automatic means when a sales order is created and saved in CRM ,the delivery is created in the R/3 (note: the order is not moved to r/3 ..Only delivery is created).
    I need the idoc which is used by the CRM system to post the outbound delivery and any badi ….so that I can extend the idoc segments and use the badi to populate the data.
    Need your inputs on this.
    Thanks in advance.
    Regards
    Shafath

    Hi All,
    For this requirement IDOC's are not used.Bapi is used.
    The BAPI ‘BAPI_DELIVERYPROCESSING_EXEC’ will be enhanced to add the new fields into the BAPI structure.
    The BADI ‘/SPE/BAPI_DLVEXEC_EX’ and the user exit ‘EXIT_SAPLV50R_CREA_001’ will be used to populate the data into the new fields created in the BAPI structure and the new fields added into the tables LIKP and LIPS.
    Regards
    Shafath

  • Split the outbound delivery .

    HI,
    how can we split the outbound delivery .
    pls. explain in detail.

    Hi Ayaan
    The following are the parameters for delivery split
    -> Ship to party
    -> Route
    ->Shipping pt
    ->Incoterms
    ->Delivery date
    Example :
    Say you have created a sales order with 2 line items ,
    Now in the line item 10 you have entered material with  qty is 50 and line item 2 qty is 100.
    But for the line item 1 the ship to party is 1000 and for the line item 2 the ship to party is 2000. So when you create delivery then delivery split  will take place (because the ship to party is different for both line items) and you have to do two deliveries for the sales order because the sales order has got splitted
    Regards
    Srinath

  • Changing the outbound Mail server?

    Are we able to change the outbound mail server in iphone 3GS? Currently I have Mobileme IMAP on my mac but all the mail is filtered via gmail. On my mac I have the ability to change the outgoing mail so that it looks like I am sending from gmail. On paper it looks like I use gmail, but really iam using Mobileme as a one stop shop. can I do this for my iPhone too?

    you need to check the smtp server in setting mailfor your particular mail accont.
    of course you need to have permission to use another server from the provider,some are free I believe.
    Message was edited by: jamalaya

  • When i am posting the Outbound delivery,here getting Runtime error

    Hello
             When i am posting the Outbound delivery,here getting Runtime error
    This is error analysis report
    Error analysis
        Short text of error message:
        No RFC destination is defined for SAP Global Trade Services
        Long text of error message:
        Technical information about the message:
        Message class....... "/SAPSLL/PLUGINR3"
        Number.............. 002
        Variable 1.......... " "
        Variable 2.......... " "
        Variable 3.......... " "
        Variable 4.......... " "
    Please give me solution for this

    HI,
    Probable some missing customising for SAP Global Trade Services - Plug-In.
    Check with your functional consultant if the configuration is correct.
    Check in SPRO.
    Sales and Distribution>Foreign Trade/Customs>SAP Global Trade Services - Plug-In
    Regards,
    Ankur Parab

  • Lumia Black Update has changed the keyboard layout

    I updated to Lumia Black on my 920, and the keyboard layout changed - most importantly, the space bar is smaller, and the comma moved, which means all of my messages typed now,look,like,this,
    Can you revert the whole update or change the keyboard? It's enough for me to abandon the phone (that and the fact the screen appears to have been heat damaged by the wireless charger)

    This has resolved my issue! Thanks Yas..
    Nokia 5530 Xpress Music
    v11.0.054
    "How We Respond Is Who We Are..."

  • Help required regarding the outbound delivery creation by batch job

    Hi Gurus,
    We are facing one problem in the outbound delivery creation.
    The deliveries will be created automatically (using program RVV50R10C) from the existing open sales orders through the run of a batch program for every 5 minutes.
    The program RVV50R10C is scheduled to run for every 5 minutes, which picks up all the open sales orders and creates outbound deliveries. However, during one run we have found an error.
    The error had message class V50R, message no: 024 and message type : I. The error message reads as follows : u201CAt least one order was blocked and could not be deliveredu201D.
    When we have checked the VBFS table, it showed the sales document line items with the Message type : E, Message no: 24 and message id : V50R.
    Can anybody decipher what could be the reason why this error message is appearing?
    Thanks in advance,
    Krishna

    Hi Friend,
    to clearly identify the issue,
    Goto SE38 and give the program which you are using as Back ground job to create the deliveries and  give the sales order number as mltiple entries and execute the program in back ground.
    In most of the cases we can identify the issue behind the job while doing this.
    please revert me if you need more clarification
    regards,
    santosh

  • How to change the outbound variable?

    Hi..
    we are trying to change the outbound variable tag <http:http-response-code>, we tried with replace activity it was not working as what we expected.
    By default we are getting the following value "<http:http-response-code>200</http:http-response-code>" we are trying to change it from "200" to some other value.
    Thanks.

    Hi..
    Thanks for ur reply..
    Replace node contents of ./ctx:transport/ctx:response/http:http-response-code in inbound variable with "202"
    we tried insert also Insert
    <http:http-response-code>202</http:http-response-code> as last child of ./ctx:transport/ctx:response in inbound variable.
    Its not working
    Thanks

Maybe you are looking for

  • Dunning - ST22- Exception in GET_DUNNING_CUSTOMIZING FM.

    Hi Experts, Issue is, When the user ran the Dunning report on July 16th, (selection criteria is--> July 16th & From customer 1 TO customer 999999999), bcoz of some thing, at CUST_444, the Exception was raised (say, for customers CUST_111, CUST_222, C

  • Background job getting failed every day

    Hi, This background job getting failed every day.But this job was running fine initial periord.Please help me out this issue. SAP_REORG_UPDATERECORDS SAP_WP_CACHE_RELOAD_FULL SLCA_LCK_SYNCHOWNERS Regards Naanas.

  • A question about JTable .setValueAt(...)

    hi, I write some code which use the Table to represent the data fetched from MS-ACCESS. the problem is about the UpdateObject(...) method which is in the implement of the AbstractTableModel method setAtValue(). when transfered OBJECT TYPE is java.lan

  • MacBook - problems with iPhoto slideshow music

    Just got my brand new MacBook today and imported everything from old PowerBook. However now that I am trying to play a slideshow in iPhoto, the music to it will not play. Yet it will play in iTunes app itself, but not within the slideshow in iPhoto?

  • LMS 4.0 syslog problem

    Hi, I am trying to setup syslog server on LMS 4.0. Everything seems to be working fine but I have a lot of stragne logs in my syslog.log file. Every single day I receive logs like : Mar 05 09:31:03 127.0.0.1 100: <30>   dmgt[1136]: 3007(I):Started ap