Assign batch and quantity to items of delivery (VL02n)

Hi ppl,
I have a file which has the delivery document number, item number, quantity abd batch details.
I need open VL02n programatically, assign the corresponding quantity and batch number for each item as mentioned in the file.
Please let me know how I can achieve this programatically.
If I use BDC, then how will I do the recording for each item...the number of items can vary for each document.
Please help.
Regards,
David.

Hi, try function module: WS_DELIVERY_UPDATE.

Similar Messages

  • Assigning batch and handling unit  tio an delivery

    Hello friends,
    Is there any FM/BAPI to update handling unit and batches to the delivery line item. for tcode VL02n
    Thanks

    unfortunaltey to archive boms you have to archive alle predecessing documents before you can start this one.
    go to transaction SARA for object MM_SPSTOCK and click the button for 'Network Graphic'. it will tell you very colourfull what you have to do before attempting to archive boms.
    same goes for handling units, object LE_HU. Check in SARA.

  • Assigning batches and HU to the delivery

    Hello,
    I had a outbound  delivery  and i want to update the batches and handling unit to the delivery. Is there any function module / BAPI  for BATCH split and assigning handling unit to the delivery.
    Thanks,

    Hi,
    Try with PROCESS_HU_INBOUND_DLVRY, WS_DELIVERY_UPDATE, SD_DELIVERY_UPDATE_PACKING
    Thanks,
    Abhijit

  • BOM item and Serial number item in Delivery through DI

    Hi Guys,
    When I create a delivery with one ore more sales-bom items and one ore more serial number items and I add one ore more sales-bom items before one of the serial number items the creation of the delivery goes wrong with the following error: "You should use existing serial/batch numbers for this document type   [الرسالة 29-51]"
    when I add all the seriail number items before the sales-bom items the delivery is created perfectly.
    Has anyone seen this error?
    It happens at least from SBO 9 PL08 and higher.
    Thanks
    Ad Kerremans

    Hi Ad!
    Thank you for your reply.
    Did you try a BOM item which components need serial numbers?
    I opened a ticket SAP B1: How to create a delivery with BOM items and serials numbers
    Would you mind to take a look and give me some advice?
    Billy

  • How to assign batch to BOM line item when creating PO

    Hi Experts,
                  Programmatically i am creating PO using BAPI_PO_CREATE, for the line item  material of PO their is BOM, i am able to get the BOM for each material, but  struggling to find where can i assign Batch to the BOM line item material.
    Thanks in advance
    Thanks,
    Nitesh

    Even though the ORDCHG message contains all three line items, it should also contain qualifiers that tell you Supplier whether the line is new, changed, deleted etc. If your Supplier has SAP, it should just work.
    Cheers, Paul.

  • Batch and Quantity display during goods issue to Production order

    Hi
    Most of our raw materials used in production order are batch managed.While issuing goods to production order(TC MIGO).
    While issuing goods ,when we issue we can see batch number only in the F4 help.At times the displayed batches may have ZERO stock.To prevent the wrong batch entry ,the end user is forced to open another screen in MMBE or MB52.
    Is there any way ,where in both Batch and the quantity is also displayed in F4 help.
    Thanks in Advance. 
    Surya

    Hi All
    my client have same problem. is it possible guide me how can prevent from to show Batch that has not Qty. when we do goods issue?
    Regards
    R.Tr

  • 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

  • Table associated for Batch and PO line item

    Hi All,
    I am looking for a table,where I can see the batches associated with the Purchase Orders.
    Thanks,
    Seshadri

    Hi
    If you are referring to the Batch field in PO line item then you will get the details in tale EKET.
    Regards
    Prasad

  • Assign batch to delivery items

    Hi,
    I need to assign batch to the delivery items through a program.
    I tried using the FM 'WS_DELIVERY_UPDATE", but, it does not seem to be useful.
    Please let me know if there is any other way to achieve this functionality.
    Thanks,
    Dawood.

    Check link:[http://wiki.sdn.sap.com/wiki/display/ABAP/Toapplybatchsplitinanoutbound+delivery]

  • Need to determine plant and storaeg location for item in delivery

    Hello All,
    I have an inbound IDOC which changes the quantity of items in a delivery and also adds new items if necessary. I need to do a auto PGI also if required.
    Am using BDC to update the delivery. Now the problem is when I add a new item to the delivery. I add the material, quantity and Unit recieved from the IDOC. I need to determine the plant and storage location and fill that too in the delivery.
    Kindly let me know how I can determine these two values. Which table holds this data?
    Please note that I am changing only the delivery. The document preceding the delivery wont be changed.
    Thanks for your help.
    Regards,
    Johnson

    normally the plant is determined on this basis:
    customer inforecord (table KNMT)
    customer master (KNVV)
    material (MVKE)
    The storage location is determined in table TVKOL based on:
    shipping point (you have it in delivery header LIKP-VSTEL)
    plant (see above)
    storage conditions (material master MARA-RAUBE)
    regards
    Roberto

  • Bridge CS6: How do you write a script to assign a shortcut to "Batch" and "Image Processor"?

    Many times a day I need to access "Batch" and "Image Processor" in Bridge.
    There is no shortcut, so I have to go the Tools-Photoshop-Batch and Tools-Photoshop-Image Processor menu - the items I need are locked into a second level menu.
    Which is impractical.
    I remember, when I started out with Photoshop many years ago, I downloaded "Deke Keyes" from Deke McClelland, which included keystrokes for "Batch" and "Image Processor".
    From the Bridge forum I learned that you cannot assign shortcuts in Bridge CS6.
    So the general opinon was that a script was used to assign the shortcuts.
    Could you please tell me how to do that?
    Thanks!
    PS: I tried to assign shortcuts via the Mac OS X Mountain Lion keyboard preferences (applications), but it did not work.

    Hi,
    in the exit:Event of the 1st date field add this FormCalc script:
    DateField2 = Num2Date(Date2Num($.formattedValue, "DD.MM.YYYY") + 21, "DD.MM.YYYY")
    You may have to change th date pattern  "DD.MM.YYYY" in the way you need it.

  • Update delivery with material and quantity.

    hai abap gurus,
          My requirement is to create a sales order and create a delivery with sales order reference.
          I done both.But now i want to  update my delivery with material and quantity.
          Is there is any bapi or function module.
          can any one help for my request.
                                                             with regards,
                                                                  mallik

    Hi,
    You're on good way while using FM SERNR_ADD_TO_LS and SERIAL_LISTE_POST_LS .
    In the second function module you don't need to pass anything.
    Don't forget to make a commit work to avoid database error during synchronisation.
    I had also one case of updating the serial to the document. It was the Sales order. I have worked with the function module SERNR_ADD_TO_AU which is internally using the function module SERNR_ADD_TO_DOCUMENT. The following is the sample code for it:
      CALL FUNCTION 'SERNR_ADD_TO_AU'
        EXPORTING
          sernr                 = w_sernr
          profile               = c_zd01
          material              = w_matnr
          quantity              = '1'
          document              = w_vbeln
          item                  = '00010'
          debitor               = fs_header-sap_ship_to
          vbtyp                 = 'C'
          sd_auart              = w_doc_type
          sd_postyp             = w_item_cat
        IMPORTING
          anzsn                 = w_anzsn
          zeilen_id             = w_zeile
          serial_commit         = w_serial_commit
        EXCEPTIONS
          konfigurations_error  = 1
          serialnumber_errors   = 2
          serialnumber_warnings = 3
          no_profile_operation  = 4
          OTHERS                = 5.
      IF sy-subrc eq 0.
        CALL FUNCTION 'SERIAL_LISTE_POST_AU'.
        COMMIT WORK.
      ENDIF.
    And one more thing, don't forget to have the call to the function module 'SERIAL_LISTE_POST_AU' amd commit work if the return code is 0. This is also mandatory.
    regards
    Satish

  • Linking Delivery Items with Delivery Items having batch

    Hello Fellow ABAPers,
    Does any one of you know how SAP links items in Delivery table (LIPS) without batches with their respective items having batch.
    For e.g. in Delivery Item we have delivery no. , item and batch. Assume we have delivery no 801xx and item 10 for this record there is batch with delivery no. 801xxx and item 90001. Likewise for delivery no 801xx and item 20 there is batch with delivery no. 801xxx and item 90002.
    How does SAP link line item 10 to 90001 and line item 20 to 90002. Batch no. could be different. If there are multiple batches for the same line item, how can we identify them programmatically?
    Is there any separate table in SAP or is it maintained in LIPS only?
    If you any of you have worked on this please let me know.
    Thanks and Regards,
    Huzefa Vasi

    Hi,
    In LIPS table itself, there is a field called UECHA. (Higher-level item of batch split item)
    This field contains the higher level item number
    for eg. consided line item 10 in 2 batches called 90001 and 90002
    VBELN             POSNR              UECHA
    801xx                 00010                   0000
    801xx                 90001                   0010
    801xx                 90002                   0010
    801xx                 00020                   0000
    if UECHA is 0, then it is the higher level item
    Hope this will be useful

  • Quality certficates for batch split items in delivery

    Hi Masters
       How to make the output determination for outgoing quality certificates to select the output type LQCB
    for batch split items in Delivery.
    What is the routine to be selected in the output determination to map this scenario?
    Regards
    Mohan

    Hi Masters
            My problem is When i create a delivery for the items with batch split, the output type LQCB is not determined ie., not automatically get assigned in the delivery item.Hence the delivery items are not listed while executing T code QC20/
    What am I missing?
    -mohan

  • Allow negative quantity for items manage by batch

    Hi All,
    I am having this issue where all items are required to be managed by batch and yet stock is allow to go negative (with the Block negative quantity unchecked) due to customer requirement.
    E.g. there are no batch to select when the item hits negative quantity.
    Any idea if this is possible in SAP B1 and possible workaround.
    Thank you in advance.
    Lip Sin

    Hi Lip Sin,
    You need to discuss and ask the same to your customer.
    Your customer has to make choice between one of this two, because when there is possibility of negative stock, just imagine how the software can keep the integrity with batch nos. ?
    You need to clearly ask your customer to choose any of this and still the customer insist, you can think to handle it using UDF for batch no, but then your customer will loose the control by batch.
    BR
    Samir Gandhi

Maybe you are looking for

  • [SOLVED] Losing network connection after suspend

    Lately I'm having this peculiar problem.  When resuming after suspend (specifically, pm-suspend), I have no network connection.  I first noticed this on March 31st.  The only thing that changed was that I upgraded these packages: openssl-1.0.1-2-x86_

  • No thumbnails in PP Media Browser

    Hello, I am working on MacOS X with Adobe CS4 Production Premium. Our footage is either Sony XDCAM EX or AVCHD. The XDCAM files are copied via Sony's Clip Browser, i.e. with the complete BPAV structure. The AVCHD files are transfered via iMovie, resu

  • Profile Picture question

    Ok sorry this is a noob question but for some reason I cannot remember how to enable this. When making a phone call I used to have my background as the wallpaper and the a small profile picture of the person I am calling on the upper right corner. Ho

  • Unable to cancel busines completion

    Hi Guus    Order is closed, Status is CLSD, Iam unable to cancel this status , When I go to function--> cancel the business completion system throws an error as Technically complete not allowed. I know its not possible , is thier any way to cancel th

  • Asynchrono​us call

    Hello all,                          Suddenly i encountered one strange problem in asynchronous call to rentrant VI, I have a reentrant VI which will read the data from TCP & write to the database,Now i have two method to implement this. #1. Using pro