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.

Similar Messages

  • How to Update the Country Of Origin In delivery Item

    Hi All,
    Business Requirement at Present: in the idoc we are not passing the country of origin for updating the Delivery Item data .But Business requirement is now in such a way that the country of origin has to update the delivery item from the idoc.  when i look into the Process code function module i found this function Module Z_IDOC_INPUT_DESADV2. the i found one more function Module which will update the PICK/Packing WS_DELIVERY_UPDATE which is inside that. i am unnable to update the country of origin with this FM. so please send me the best soultion.
    way to see the country Of Origin :
    go to Delivery > Double click on the Delivery Item  > chose the Tab "Foreign Trade/Customs" > with in this Tab chose sub tab "Origin / Destination / Business">>  Ctry of origin , Dispatch ctry,Region of Origin                                                 
    with Regards
    Ram

    Country of Origin for a Delivery item is passed during the packing of the delivery before shipping .
    This is a mandatory field keeping the priority high.
    Actually this has to be done from one of your pack programs (A Z pack program i dont know the scenario of ur project )lets say .
    So u can see this Country of origin in the material views ..
    Goto MM03 and in this give the material item and check this.
    Check Sales: general/plant data and the strip as Origin.
    The field will be Marc-Herkl.
    Now u if want this to be populated then u need to write a query or logic to resemble the same in the delivery item.
    Now to get to your query now ..
    So if ur idoc will not be passing the country of origin .. then how was it doing earlier ?
    //But Business requirement is now in such a way that the country of origin has to update the delivery item <b>from the idoc</b>
    In order to do this we need to enhance the idoc with one more feature by picking thcountry of origin field say from MARC-HERKL and then updating the line item into the code of ur Z_idoc_input... or an user exit which can do the same ..
    Just check in ur idoc what are all the fields u r picking ..
    and what is the standard inound idoc you are referring to so that u can find the appropriate Customer exit which will be there to do the same ..
    The logic has to be written in one of the customer function .
    regards,
    VIjay

  • The storage location/batch function * is not defined here - Message no. M7116

    Hi Experts,
    we have a scenario - Project Subcontracting Purchase Order, Item Category - L and Account Assignment - Q.
    Delivery created, one of the component is Batch managed and  with Batch Spli Exists.
    When performing Good Receipt in MB01 t-code for movement type 543 R (Special Stock), batch determination fails for batch split scenarios; we get the following error message:
    The storage location/batch function * is not defined here:
    Message no. M7116
    The batch determination works fine, if the PO is with Item Category - L and Account assignment - Blank, then the movement type will be 543 O
    Steps for Reconstruction
    MB01, Mvt 101, enter SUBCON PO (Item Cat L and Account assignment
    Q), SL
    Delivery should have batch split
    for 101 Mvt, system determine the batch
    543 R Mvt should allow for wildcard search in batch field, the
    wildcard search works for other Mvt like 543 O.
    Note:
    we foresee we have to maintain an entry in OMCG for Movement type 543 and Special Stock R.
    543 o already exists there. But we are unable to Add/Delete any entry there.
    Please advise.
    Thanks and Regards,
    Nagaraja Achar.

    Hello Dennis,
    try the new transaction (MIGO): Use the 'Distribute qty' pushbutton. For all goods receipts (with or without special stock) it is possible to create several batches.
    Regards
    Michael

  • How to create storage locations in a standalone scenario??

    Hello everybody,
       I need some help. I'm working with SRM 5.0. I'm making a standalone scenario. When I created the organizational plan, in the check tab, a error appears. The message is: "Define the attribute LAG". The attribute LAG is the storage location, in the extended attributes tab. I've tried defining this attribute but I couldn't.
    Does anybody know how to create storage locations in a standalone scenario??
    Thanks
    Iván Moreno

    Hi Ivan,
    Look at this thread:
    Creating Plants & Locations - Standalone Scenario
    Storage loc is useless in a standalone scenario.
    The "Check" tab makes a generic check on attributes needed for each business scenario, but does not check the integration scenario.
    So you can get rid of this error message.
    You can even deactivate this check on this particular attribute in table BBPV_APPL (SM30), for Confirmation & SC applications.
    Rgds
    Christophe

  • How to Use BAPI_OUTB_DELIVERY_CHANGE for Batch Split

    Hi Experts, I have the follow delivery:
    Item        Material   Deliv.Qty    Un
    10     739911     2     PQT
    And I want to obtain this:
    Item        Material   Deliv.Qty    Un                            Batch
    10     739911     0     PQT
    900001     739911     1     PQT          ZZ00060
    900002     739911     1     PQT          ZZ00061
    But, after using the Bapi I obtained this:
    Item        Material   Deliv.Qty    Un                            Batch
    10     739911     1,372     PQT
    900001     739911     0,314     PQT          ZZ00060
    900002     739911     0,314     PQT          ZZ00061
    So as you can see the problem is with the "Deliv.Qty". I expected:
    Item        Deliv.Qty
    10            0
    900001     1     
    900002     1     
    But I obtained:
    Item        Deliv.Qty
    10     1,372
    900001     0,314
    900002     0,314
    The parameters that I am using in the Bapi are:
    HEADER_DATA                                   
    DELIV_NUMB = 801174646
    HEADER_CONTROL                                
    DELIV_NUMB = 801174646
    DELIVERY = 801174646
    TECHN_CONTROL
    UPD_IND = U
    ITEM_DATA (three records):   
    DELIV_NUMB = 801174646
    DELIV_ITEM = 000010  
    MATERIAL = 739911  
    FACT_UNIT_NOM = 1   
    FACT_UNIT_DENOM = 1   
    DELIV_NUMB = 801174646  
    DELIV_ITEM = 900001     
    MATERIAL = 739911     
    BATCH = ZZ00060    
    HIERARITEM = 000010     
    USEHIERITM = 1          
    DLV_QTY = 1
    DLV_QTY_IMUNIT = 1
    FACT_UNIT_NOM = 1      
    FACT_UNIT_DENOM = 1      
    DELIV_NUMB = 801174646  
    DELIV_ITEM = 900002     
    MATERIAL = 739911     
    BATCH = ZZ00061    
    HIERARITEM = 000010     
    USEHIERITM = 1          
    DLV_QTY = 1
    DLV_QTY_IMUNIT = 1
    FACT_UNIT_NOM = 1      
    FACT_UNIT_DENOM = 1
    ITEM_CONTROL (three records):
    DELIV_NUMB = 801174646
    DELIV_ITEM = 000010  
    CHG_DELQTY = X
    DELIV_NUMB = 801174646
    DELIV_ITEM = 900001  
    CHG_DELQTY = X
    DELIV_NUMB = 801174646
    DELIV_ITEM = 900002  
    CHG_DELQTY = X
    So I am missing something but I don't know what.
    Can any one help me with this please?
    PD: I have looked the following forums in order to use the Bapi:
    How to Use BAPI_OUTB_DELIVERY_CHANGE for Batch Split
    batch split using BAPI_OUTB_DELIVERY_CHANGE
    Re: Help in BAPI_OUTB_DELIVERY_CHANGE(batch-split)
    BAPI_OUTB_DELIVERY_CHANGE - Batch Splits don't work
    Help for BAPI_OUTB_DELIVERY_CHANGE

    Hey,
    My code is for the inbound delivery but it should work the same.
    Give this a try.
    REPORT  z_delivery_batch_split.
    DATA:header_data  LIKE  bapiibdlvhdrchg,
    header_control  LIKE  bapiibdlvhdrctrlchg,
    delivery  LIKE  bapiibdlvhdrchg-deliv_numb,
    ls_return LIKE bapiret2,
    item_data  TYPE TABLE OF  bapiibdlvitemchg,
    item_control  TYPE TABLE OF bapiibdlvitemctrlchg,
    ls_item_data  LIKE  bapiibdlvitemchg,
    ls_item_control LIKE  bapiibdlvitemctrlchg,
    return TYPE TABLE OF bapiret2 WITH NON-UNIQUE KEY type.
    header_data-deliv_numb = '1800005005'.
    header_control-deliv_numb = '1800005005'.
    delivery = '1800005005'.
    ls_item_data-deliv_numb = '1800005005'.
    ls_item_data-deliv_item = '900001'.
    ls_item_data-material = '000000000020067722'.
    PERFORM create_batch CHANGING ls_item_data-batch.
    ls_item_data-hieraritem = '000010'.
    ls_item_data-usehieritm = '1'.
    ls_item_data-dlv_qty = 80.
    ls_item_data-dlv_qty_imunit = 80.
    ls_item_data-fact_unit_nom = '1'.
    ls_item_data-fact_unit_denom = '1'.
    ls_item_data-sales_unit = 'EA'.
    ls_item_data-base_uom = 'EA'.
    APPEND ls_item_data TO item_data.
    ls_item_data-deliv_numb = '1800005005'.
    ls_item_data-deliv_item = '900002'.
    ls_item_data-material = '000000000020067722'.
    PERFORM create_batch CHANGING ls_item_data-batch.
    ls_item_data-hieraritem = '000010'.
    ls_item_data-usehieritm = '1'.
    ls_item_data-dlv_qty = 60.
    ls_item_data-dlv_qty_imunit = 60.
    ls_item_data-fact_unit_nom = '1'.
    ls_item_data-fact_unit_denom = '1'.
    ls_item_data-sales_unit = 'EA'.
    ls_item_data-base_uom = 'EA'.
    APPEND ls_item_data TO item_data.
    ls_item_control-deliv_numb = '1800005005'.
    ls_item_control-deliv_item = '900001'.
    ls_item_control-chg_delqty = 'X'.
    APPEND ls_item_control TO item_control.
    ls_item_control-deliv_numb = '1800005005'.
    ls_item_control-deliv_item = '900002'.
    ls_item_control-chg_delqty = 'X'.
    APPEND ls_item_control TO item_control.
    break cgavin.
    CALL FUNCTION 'BAPI_INB_DELIVERY_CHANGE'
       EXPORTING
         header_data          = header_data
         header_control       = header_control
         delivery             = delivery
    *   TECHN_CONTROL        = TECHN_CONTROL
       TABLES
    *   HEADER_PARTNER       = HEADER_PARTNER
    *   HEADER_PARTNER_ADDR  = HEADER_PARTNER_ADDR
    *   HEADER_DEADLINES     = HEADER_DEADLINES
         item_data            = item_data
         item_control         = item_control
    *   ITEM_SERIAL_NO       = ITEM_SERIAL_NO
    *   EXTENSION1           = EXTENSION1
    *   EXTENSION2           = EXTENSION2
         return               = return
    *   TOKENREFERENCE       = TOKENREFERENCE
    *   HANDLING_UNIT_HEADER = HANDLING_UNIT_HEADER
    *   HANDLING_UNIT_ITEM   = HANDLING_UNIT_ITEM
    *   PARTIAL_GR_OBJECTS   =          PARTIAL_GR_OBJECTS
    READ TABLE return
    INTO ls_return
    WITH TABLE KEY type = 'E'.
    IF sy-subrc = 0.
       MESSAGE ID ls_return-id TYPE ls_return-type NUMBER ls_return-number WITH ls_return-message_v1 ls_return-message_v2
       ls_return-message_v3 ls_return-message_v4.
    ENDIF.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait          = 'X'.
    break cgavin.
    *&      Form  CREATE_BATCH
    *       text
    *      <--P_LS_ITEM_DATA_BATCH  text
    FORM create_batch  CHANGING p_ls_item_data_batch.
       DATA: ls_bncom TYPE bncom.
       ls_bncom-matnr = ls_item_data-material.
       ls_bncom-werks = 'C333'.
       ls_bncom-lgort = '3000'.
       SELECT SINGLE mtart
         FROM mara
         INTO ls_bncom-mtart
         WHERE matnr = ls_bncom-matnr.
       CALL FUNCTION 'VB_NEXT_BATCH_NUMBER'
         EXPORTING
           matnr                          = ls_bncom-matnr
           werks                          = ls_bncom-werks
           check_batch                    = 'X'
           check_material                 = ''
           message_when_auto              = ' '
           x_bncom                        = ls_bncom
           lock_batch                     = ' '
         IMPORTING
           new_charg                      = p_ls_item_data_batch
         EXCEPTIONS
           no_material                    = 1
           no_plant                       = 2
           material_not_found             = 3
           plant_not_found                = 4
           no_batch_handling              = 5
           batch_exist                    = 6
           no_number                      = 7
           illegal_batch_number           = 8
           interval_not_found             = 9
           object_not_found               = 10
           interval_overflow              = 11
           error_automatic_batch_number   = 12
           cancelled                      = 13
           automatic_batch_num_not_active = 14
           OTHERS                         = 15.
       IF sy-subrc = 0.
         CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
             wait = 'X'.
       ENDIF.
    ENDFORM.                    " CREATE_BATCH

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

  • 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

  • Please guide me how to include storage location to existing material master

    Hi Guru's,
    Please guide me how to include storage location to existing material master....
    please provide step by step process or provide any documentation that would be helpfull to me...
    please let me know of my question is not clear..
    Thanks in advance and will give full points....
    Srinivas...

    Hi
    First :- You can define the storage loctions in the plant under the customization :- SPRO -> Enterprise Structure ->Definition -> Materials Management ->Maintain storage location
    Once defined under the plant, you can create the same storage locations in the material master
    Second :- Under SPRO -> MM -> Inventory -> palnt parameters, for your plant check the field " Create Storage locations Automatically" . This will lead to create new storage locations at the time of GR, even if you have not maintained under step 1.
    Hope it answers your question.
    Regards,

  • Automatic storage location determination based on delivery document type

    Dear All,
    How can automatic storage location will be determined based on sales order type or delivery type.
    Ex: If the business sells the material storage location automatically determined as SL12.
    If the customer returnns the material storage location should be SL01.
    Please suggest for retun process automatic storage location determination.
    Best regards,
    Ramesh

    Dear Guru Lakshmipathy,
    Fine, but we have some picking rules are MALA, RETA and MARE.
    Currently we have onle on plant 1010 and shipping point 1010.
    storage location for outbound deliveries determined based on MALA rule has been assigned to LF.
    can we use RETA or MARE to determine the storage location for returns delivery.  If yes kindly
    explain. And where is storage condtion available in sap.
    Best regards,
    Thanks

  • Item categories are re-determining based on batch split during delivery

    Hello All,
    During delivery item categories of bill of materilas are changing based on batch split.
    Scenerio: item level bill of materials configured.
    Ex: COMPUTER is main item and item category group is LUMP and item category is TAP
    but it is relevent for billing as per client requirement
    key board, cpu and moniter are bills of materilas item category group is NORM and item category is ZZTA
    These above items are relevent for delivery and not relevent for billing
    Problem: During batchsplit in delivery item category determining as "TAN" for item category ZZTA
    That can be shown when we click on batch split button for sub line item (moniter, cpu) category ZZTA
    all batch split line items are copied to billing and getting account determination pricng error because of TAN is relevent for billing
    Could you suggest me to prevent the TAN item category for batch split in  delivery
    Should TAE item category to be maintained for delivery item categories
    currently delivery item categories are configured as shown  below
    del doc type=zlf , item cat. group=lumf, higher level item cat.=tap, No default item catgory
    Thanks & Regards

    Hi
    In the asign item cateogories use usage CHSP (Batch split) for norm and assign default item category as ZZTA.  This will get determined your item category when you use batch split.
    Spro --> Sales --> Sales document Item --> Assign item categories

  • Storage location missing in Inbound delivery

    Hi ,
    When I am getting the ASN or confirmation for my purchase order.
    automatically Inbound delivery is getting created.
    But here the problem is missing the storage location in inbound delivery.
    I maintained the storage location determination (with situation) setup.
    could you please help me.

    The entry in OMB2 indicates that automatic creation of storage location data in the material master record at the time of the <b>first goods receipt</b> is allowed.
    As well the storage location data is only created automatically if the quantity is posted to the "normal" storage location stock. If you have goods movements to special stock (for example, to sales order stock), the data is not created.
    To my knowledge the PO generally does not have storage locations,while creating inbound delivery (manually or automatically) storage locations are copied from the material master. So, also check what S.loc. your material master has for the materials you are creating inbound deliveries.
    Regards,
    PATHIK

  • How to get Storage Location and Vendor details in MD03 automatically

    Hi folks,
        We want to create automatic PR and PO from Planned Order.
    But when PR gets created in MD03, the values for Purchase organization, Storage Location and fixed vendor are blank, even after maintaining source list with fixed vendor .
    How to populate these values automatically ?
    I am also attaching screenshot of MD03 screen

    Hello
    If you are creating the orders using MRP, you should make sure that the field MRP is set to 1 on the source list. The field 'fixed vendor' is not relevant to MRP. When the vendor is selected from the source list, the purchasing organization should be also copied to the purchase requisition.
    The storage location will be copied from the respective field on the material master tab MRP2.
    Also take a look on the following document:
    MRP: Vendor is not selected and general problems on source determination
    BR
    Caetano

  • How to set storage location in iMovie 10?

    iMovie refuses to import my video files and instead gives the following error message: "No storage location set: Cannot start ingest because there is not storage location set. Please set one under Storage in Preferences and try again." However, when I select iMovie Preferences, there are only two possible commands (Clip: Apply slow-motion automatically) and (Theater: Automatically upload content to iCloud [grayed out]) neither of which appear particularly helpful in this context. In any case, when I import single clips these are "automatically" stored in updated projects, so why will this not work more generally? Many thanks

    I've been able to store the contents of my camcorder on the Mac's HD. I've tried importing the clips from there and get the same result, whether I try to import one or several clips at once, it replies with the same error message as to the missing storage location/instructions. Interestingly, it will nonetheless import the first (or only) one of the clips that I highlight on the import screen.
    When you suggest dragging the files, from where do you mean? The clips per se don't appear in the finder, but only on the import page. The finder show only various fragmented files that aren't complete clips (eg. separate video and index, even sound files), which is too much of a pain to deal with...
    It's true that my original iMovie library was created from an upgrade, but I have since deleted the contents and attempted to reload the clips. Are you suggesting deleting the library completely and starting again, or should I just try creating another event and using that? Don't see why that shoudl work better than "updated projects", but perhaps it's worth a try...
    Thanks again

  • How to use BAPI_INB_DELIVERY_CONFIRM_DEC do batch split

    Hi, everyone:
    I want to do batch split in inbound or outbound delivery by function.
    I found BAPI_INB_DELIVERY_CONFIRM_DEC, but our system is not a Decentralized System and I wandered in so many parameters.
    How to use this fuction?
    Thanks.

    Hi Junwen,
    Did you call the BAPI_TRANSACTION_COMMIT afterwards?
    Before this the data is not saved. After that it is saved.
    Regards,
    Rob.

  • How to set storage location in Nokia lumia 820 for...

    Hi,
    I would like to know if and how to define the storage location in my Nokia lumia 820.
    I have recently purchased a micro SD card by Kingston and would like to download and install apps, like games who require more storage then my Nokia 820 supports(8GB).
    I saw that the only available option set is to choose the the storage for music + videos and pictures from settings/phone storage but no option set could be found for the apps or others.
    Please help me with some guidelines or with a proper workaround as I tried unsuccessfully to find the understanding for this in various resources.
    Thank you for considering my request.
    Vlad Zaicescu
    Solved!
    Go to Solution.

    You can't install applications, Games on the SD Card. Only other thing that you may save on the SD Card is the Maps ..but you need THIS application. Need to log-in using the same credentials that you use on this forum to download it ...

Maybe you are looking for

  • FI/MM report help!

    I want to run a report as per the selection parameters highlighted below! No of POs raised for Feb 2006 to 2007 Average time it took to have the goods received after PO was cut Average time it took for payment to be made to vendor I wanted to create

  • When home sharing songs are transferring at an extremely low speed. why is this happening??

    Hi I shared my library with my Husband's library using the same apple id. I then tried to copy songs from that library to mine. But the songs are transferring at a ridiculously low speed. When he copied the songs from my library it did not take as mu

  • FaceTime won't connect with a friend that it's worked with before.

    I am unable to connect to FaceTime with my friend who has an IPhone4 and I have an iPad2. It worked April 13 but it hasn't worked since.  What do we need to do to solve this?

  • How do I delete a corrupted audiobook file on my iTouch?

    I purchased and downloaded my second audiobook last weekend but after 4 hours into the first part, the audio stopped and then it skipped to part 2.  I could not find a way to redownload my purchase again for audiobooks.  I emailed support and they pu

  • Will a 30-pin charger fit an Apple iPad 1st generation tablet

    I have a reconditioned Apple iPad 16 GB WiFi iso ist generation tablet.  The charget that came with it worked for a little while but now it says it is not the correct charger.  I am wondering if the charger is no longer working or if it really is the