BAPI or FM to Update storage location in outbound delivery with many items

Hello!
I have an urgent problem.
Storage location determination didn't work and were  created thousands of deliveries without storage location.
We want to run LSMW using BAPI.
Which BAPI can update storage location (for many items in delivery. We saw an option to update the first item' but not all of them)
PLZ try to help
thank You

Hi,
check this FM:
RV_DELIVERY_PICK_UPDATE
SD_DELIVERY_UPDATE_PICKING

Similar Messages

  • Update Storage Location in Delivery during Picking

    Hello Experts,
    I am implementing "picking" using a custom function module that ultimately calls SD_DELIVERY_UPDATE_PICKING to perform picking.
    Frequently the third party application changes and sends a new storage location for a given delivery. The requirement is to update storage location in delivery while doing picking.
    Thanks for your precious inputs.
    Regards,
    Hitesh

    Use BAPI 'BAPI_OUTB_DELIVERY_CHANGE'. There is a parameter ITEM_DATA_SPL where you can put the storage location in.
    Regards,
    Michael
    DATA: ls_header  TYPE bapiobdlvhdrchg,
          ls_control TYPE bapiobdlvhdrctrlchg,
          lt_return  TYPE TABLE OF bapiret2,
          ls_item    TYPE /spe/bapiobdlvitemchg,
          lt_item    TYPE TABLE OF /spe/bapiobdlvitemchg.
    ls_header-deliv_numb = ls_control-deliv_numb = '0080000542'.
    ls_item-deliv_numb   = '0080000542'.
    ls_item-deliv_item   = '000010'.
    ls_item-stge_loc     = 'AA02'.
    APPEND ls_item TO lt_item.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
      EXPORTING
        header_data                   = ls_header
        header_control                = ls_control
        delivery                      = '0080000542'
      TECHN_CONTROL                 =
      HEADER_DATA_SPL               =
      HEADER_CONTROL_SPL            =
      SENDER_SYSTEM                 =
      TABLES
      HEADER_PARTNER                =
      HEADER_PARTNER_ADDR           =
      HEADER_DEADLINES              =
      ITEM_DATA                     =
      ITEM_CONTROL                  =
      ITEM_SERIAL_NO                =
      SUPPLIER_CONS_DATA            =
      EXTENSION1                    =
      EXTENSION2                    =
        return                        = lt_return
      TOKENREFERENCE                =
        item_data_spl                 = lt_item
      COLLECTIVE_CHANGE_ITEMS       =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =

  • How to update storage location & batch split on delivery items?

    Any idea how to perform the following using a BAPI or function call with regards to updating a Delivery (VL02/VL02N)?
    1) Enter or update a storage location on a delivery item?
    2) Batch split a delivery item to give multiple batch    numbers. For example if delivery item is '101' then    after batch split additional delivery items with batch number assigned will appear as '900001', '900002', '900003', etc Entering a single batch number is straight forward and can be done using WS_DELIVERY_UPDATE/_2
    Do not wish to use BDC or call transaction. Any help appreciated.

    hi sailatha..
    im doing BDC for VL01N transaction.. how can i pass multiple storage locations for picking quantity..  my requirement is  if the material is not there in the specified storage location it should search in the other storage locations for delivery.
    how can i solve this issue bcoz in the VL01N screen i can pass only one storage location.
    this is urgent requirement..
    kindly revert me back if u can help.
    thankx
    helpful answer will be rewarded.

  • SHIPPING POINT AND STORAGE LOCATION DETERMINATION IN DELIVERY

    i made configuration setting for shipping point and storage location determination during delivery process. still system is not proposing this data during delivery.
      due to this reason lot of time is consuming during delivery creation.
    plz suggest the complete configuration flow for this determination.

    Dear Ram,
    Can you please specify the configuration that you have made? And which storage location determination rule are you using for your Delivery Type?
    Regards,
    Amitabha

  • BAPi to create Outbound delivery with PGI

    Hi all,
    What BAPi , we can use to create Outbound delivery with PGI.
    Please help me in this regards.
    Deekshitha.

    Hi,
    Use the BAPI BAPI_GOODSMVT_CREATE
      check this link.... u will get all help from this code..
    http://sap4.com/wiki/index.php?title=BAPI_GOODSMVT_CREATE&printable=yes
    <b>rEWARD POINTS</b>
    rEGARDS

  • BAPI_REQUISITION_CREATE is updating storage location address (global one)

    Hello Colleagues,
    We have a LN application for PR creation and is integrated with SAP. Process is PR gets transferred from LN to SAP and then PO would be created manually in SAP. Obseved couple of times that storage location address gets updated with delivery address in PR. Any pointers in this regard? Could you give me some insight about REQUISITION_ADDRDELIVERY parameter for BAPI, specially ADDR_NO.
    Thanks and Regards,
    Prasanth

    Simple rule is storage location address should not be changed from transaction data. In case item delivery address differs from storage location, it should made as local to PO. But here storage location got updated with new delivery address. Result is many POs are going to effet with this change in SLoc address. This problem found few months ago and now.

  • Storage Location level ATP check with CRM

    Hi:
    I am on an implemenation where the integration is between CRM, EWM and GATP. So, consider the situation where the sales order check is done through CRM and a call to GATP is made.
    Some background on supply
    EWM would like to receive the goods into storage location ROD (Received On Dock) and then do a movement type to move it to storage location AFS (Available For Sale). The sales orders should consider only the supply from storage location AFS and not ROD.
    First question is, is it possible to do a storage location level determination in CRM? I don't think so but wanted to confirm. The reason is because even a plant determination is not possible in CRM when you integrate with GATP (the plant is determined through Rules).
    Now, suppose that we have determined the storage location called AFS (in gATP through enhancement) and will do an ATP only at that level in GATP. Suppose that the first plant that will be checked is Plant A and then based on the location determination procedure, the next plant that will be checked is Plant B. When the system checks supply at Plant B, then the question is this: will it still check only at storage location AFS in Plant B or will it check at the plant level? The requirement will be to check at the same storage location level (which means that whatever process we used to determine the storage location at Plant A has to be followed for Plant B also).
    One option that can be considered is to check at the Storage Location MRP Area level (there seems to be better support for RBA and Storage Location MRP Area than just storage location). See SAP Note 412314. But this is also complicated.
    Another option is to not check at the storage location level but represent the various stocks with stock types (stock type ROD and stock type AFS) and only the stock type AFS will be used in the list of ATP categories.
    Please share any experience that you may have in this.
    Thanks,

    Hi Satish,
    In my project also we had this requirement to determine the correct Storage location after plant has been determined by using rules.
    What we did is as follows:
    - We created a Z table which had entries for all plants and preferred storage locations for those plant (only one entry per plant) in your case it will be like:
    Plant A - AFC
    Plant B - AFC
    Plant C - AFC
    - We used a ATP user exit in APO to get the storage location of source plant ( which was determined in APO via rules) from the Z table.
    I hope this helps.
    Please let me know if you have any questions.
    Thanks,
    Anupam
    Edited by: Anupam Sengar on Dec 20, 2011 12:03 AM

  • Storage location determination in delivery

    Hi,
        In sales order for each line Item (Material) I have only one quantity.
    Which is store into the one plant (e.g. CJ01) at any one of the storage location (e.g. suppose there is JL01, JL02, JL03 storage location & my material store into one of the storage location at a time).
    But my requirement is that When I am creating Delivery that time appropriate Storage location in which material stored comes automatically into the picking .
    Can  it is possible?
    If yes then What setting I have to configure to do that?
    Please help me
    thank you

    Thank you
    Actually for my one Plant there is several storage location .
    E.g. STL1
           STL2
           STL3
    & In this Scenario For each material only one quantity.
    So
    at a time only one storage location it is available.
    My requirement is that when I am creating delivery s/m should pick up right storage location (in which material available) automatically in picking tab   .
    please help me

  • Storage location Locked in Delivery

    Friends,
    I have a requirement where Sloc should be protected in a delivery. What I mean by protected is that you cannot create deliveries from any other storage location but the one/two I specify? Does anybody know the whereabouts of doing this? Any advice would be appreciated. Do we need a user exit? I know that the it cannot be done by an authorization object.
    Thanks

    I am trying to use 'V02V0002' user exit. Will this satisfy my requirement?

  • How to change the storage location while create delivery?

    Hi all:
       I have to question to trouble you,when I create a delivery with reference to a sales order,however every time it set storage location 'FG10' to the delivery automatically.I can modify it, but how to modify this default value?the sales order haven't information about storage location.
       thanks.
    Best regards
    lance

    Hi Lance
    Please try this:
    In SPRO, go to Logistics Execution - Shipping - Picking- Determine Picking location - assign picking locations
    here, for the reqmt plant and shipping point and storage conditions, define the applicable storage location. If you are not assigning any storage conditions in you material master, you may leave it blank. Storage conditions can be defined in the Material master in General Plant Data / Storage view.
    After maintaining this, try creating a delivery and see if the delivery gets created in the required storage location.
    Please reward points if this helps you
    Rgds
    Nageshwar

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

  • 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

  • Bapi to be used  for delivering data of outbound delivery to LDL

    Hi,
    I am new to ABAP development and I need to do some enhancements for standard bapi BAPI_OUTB_DELIVERY_SAVEREPLICA .
    I have to use bapi for delivering data of outbound delivery to LDL.
    I have created segments with additional fields for order header and item header in we31.
    The additional fields should be implemented in created segments.After creating segments the additional fields data should be assigned to Idoc structure OBDLV.
    This is the requirement I need to deliver  by tomorrow.Please help me by providing step by step procedure and how to do?
    Thanks in advance
    Raj

    Dear Venkat,
    for cancelling GI/GR you may use BAPI_GOODSMVT_CREATE with GM_Code 06
    for cancelling confirmations you may use BAPI_PRODORDCONF_CANCEL
    Regards, Andreas

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

  • Problem in updating LIPS table in outbound delivery user exit

    Hi,
    I wrote a code in outbound delivery user exit (save document userexit) to update LIPS table.
    for example
    XLIPS-LGORT = '0657'.
    XLIPS-PIMNG = I_LIPS-LFMING
    (PICKing QUANTITY =  DELIVERY QUANTITY)
    MODIFY XLIPS TRANSPORTING LGORT PIMNG.
    After outbound delivery created i couldn't found my entries in lips table. it shows me as blank.
    Can anybody tell me what went wrong?
    Thanks and Regards,
    Suresh.

    Hi Suresh,
    If you want to change any delivery data, like LIKP or LIPS you should use the USEREXIT_SAVE_DOCUMENT_PREPARE exit. The exit you are using is called after all delivery data is passed to the update task.
    Regards,
    John.

Maybe you are looking for

  • Using 2 web services data sources in the same report

    I've been trying unsuccesffuly to use 2 web services data sources in a report. The main report accesses the first web service to get job summary information. 3 fields are are passed as parameters to a sub-report and used as parameters for the sub-rep

  • MD01- PR not getting generated

    Hi, When i am running MRP in MD01,it is showing me : No materials were planned Statistics Materials planned Materials with new exceptions Materials with terminated MRP list Parameters Scope of Planning Plnt                                            

  • Query tuning - oracle 11g

    Hi all, Query executes for more 1.5 hours. fetches the data from a remote database. more than million records. any suggestions to tune the query? Explain Plan CREATE TABLE STATEMENT  ALL_ROWSCost: 3,777  Bytes: 1,161,660  Cardinality: 15,285         

  • Photo order in album gets mixed up after sorting photos

    I have created albums from a recent trip, which I am using to make slideshows.  To get the photos in the desired order, I first sorted the album by date, then rearranged various photos to put them the way I wanted them.  I created one slideshow from

  • Tunneling result not OK,

    Hi, What can you tell me about the following exception that I get trying to call a bean on Weblogic 6.1. My program tries to take the connection for several minutes and then java console shows the exception below. The problem doesn't occur when I tak