Delivery to Batch Link

Dear experts,
I have a some small issue, I have created a UDF in the batch table i.e. OBTN called delivery note number (U_DnoteNo), when i add the delivery i want to have a formatted search on this field on the batch table to pick the specific document number and put it on the udf field. Your assistance is highly appreciated.
Regds
Antony

Hi,
May I for What purpose you are trying to achieve this. I don't think this field is required. Because already SAP is doing this in back end in its child table.
You Inner Join the table like OIBT, IBT1, OBTN, OINM.
Also while adding the document, we(system) won't add the DC No Automatically by only using FMS.
You have to do Query or update Command in SP_Post Transaction Notice Procedure.
But that is not the Best Practice.
But Using FMS, User Manually / Auto Refreshly can add the DC Note Number

Similar Messages

  • Enhance delivery  item  batch

    Hi Experts,
    I would like to add  new fields to inbound delivery>item>Batch Split screen. My rek is not to add additional tab but to add fields to "Batch Split Items"  table on the screen..I found a badi but with that badi  we can only add a new tab ..If anyone has any valuable suggestions..Please let me know
    Thanks in advance

    Hi,
    Please check this  link.
    http://wiki.sdn.sap.com/wiki/display/ERPSCM/BatchDeterminationandBatchSplitinDelivery

  • Update Inbound Delivery with batch

    Hi All,
         My requirement is that, if for an Inbound delivery, the batch(CHARG) field is found to be empty, then a batch need to be created and the batch number should be updated in the Delivery. The batch can be created using the BAPI 'BAPI_BATCH_CREATE'. After obtaining the batch number from the BAPI, I tried using the FM 'WS_DELIVERY_UPDATE_2' but was not successful (because I didn't know how to use the FM). I have filled up the Delivery number in the 'delivery' parameter of the FM. Also, I'm passing the structure ls_vbkok and the table lt_vbpok with values as given below in the code. The field 'Batch (CHARG)' was found to be in the VBPOK structure and I have updated the same in that table. Also there are a bunch of other parameters namely SYNCHRON, NO_MESSAGES_UPDATE_1, COMMIT and NICHT_SPERREN_1 which were all used in a example program I was referring and I am completely ignorant of their significance. When I tried executing the below code, the CHARG field did not get updated in the LIPS table. Could anyone guide me on how to use this FM fro my particular purpose.
    DATA: ls_vbkok TYPE vbkok,
              ls_vbpok TYPE vbpok,
              lt_vbpok TYPE STANDARD TABLE OF vbpok.
    CONSTANTS :lc_del TYPE vbeln_vl VALUE '0080000110',
                          lc_pos TYPE posnr_vl VALUE '000010',
                          lc_batch TYPE charg_d VALUE '124234'.
    ls_vbkok-vbeln_vl = lc_del.
    ls_vbpok-vbeln_vl = lc_del.
    ls_vbpok-posnr_vl = lc_pos.
    ls_vbpok-charg = lc_batch.
    APPEND ls_vbpok TO lt_vbpok.
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
       EXPORTING
         vbkok_wa                           = ls_vbkok
         synchron                           = 'X'
         no_messages_update_1               = 'X'
         commit                             = 'X'
         delivery                           = lc_del
    *   UPDATE_PICKING                     = ' '
         nicht_sperren_1                    = 'X'
    *   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               = ' '
    *   IT_PARTNER_UPDATE                  =
    *   IT_SERNR_UPDATE                    =
    *   IF_NO_REMOTE_CHG_1                 = ' '
    *   IF_NO_MES_UPD_PACK                 = ' '
    *   IF_LATE_DELIVERY_UPD               = ' '
    *   IF_TXT_REINITIALIZE                =
    *   IF_BOR_INIT                        = ' '
    *   SPE_MES_NO_SEND_NODIAL             =
    *   IT_LECOMP_1                        =
    * 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            =
    *   EF_ERROR_PARTNER_UPDATE            =
    *   EF_ERROR_SERNR_UPDATE              =
      TABLES
        vbpok_tab                          = lt_vbpok
    *   PROT                               =
    *   VERKO_TAB                          =
    *   VERPO_TAB                          =
    *   VBSUPCON_TAB_1                     =
    *   IT_VERPO_SERNR                     =
    *   IT_PACKING                         =
    *   IT_PACKING_SERNR                   =
    *   IT_REPACK                          =
    *   IT_HANDLING_UNITS_1                =
    *   IT_OBJECTS                         =
    *   ET_CREATED_HUS                     =
    *   TVPOD_TAB                          =
    *   IT_TEXTH                           =
    *   IT_TEXTL                           =
    *   IT_TMSTMP                          =
    *   IT_OBJ_QUAN_CHG                    =
    *   IT_VBPOK_SPLIT                     =
    *   IT_BAPIADDR1                       =
    *   IT_HU_HEADER_EPC                   =
    *   IT_HU_ITEMS_EPC                    =
    *   IT_AAC_ITEM_BLOCK                  =
    IF sy-subrc = 0.
       COMMIT WORK.
    ENDIF.

    Hi,
    You also have to create a segment with following data as well (for batches).
    E1EDL19-QUALF = "QUA".
    Cheers,

  • STO Auto delivery Creation - Batch Job

    Hi Friends,
    I am facing issue related to auto delivery creation through batch Job for STO.
    I created a variant for auto Creation of delivery for batch Job using T code VL10BATCH, using the parrameter Shipping Point and Deliv. Creation date. The Batch Job is running fine, but my Client wants the delivery shoud be created from Delivery Date instead  of Deliv. Creation date.
        I tried to change the varriant , but could not find the delivery date as a parmeter to be selected.
    Is there any possible way to use delivery date for creation of Auto delivery instead of Deliv. Creation date.
    If not please tell why only deliv. creation date is given in varriant creation ,
    Regards,
    Kunal

    Hi,
    GO to VL04 there u just fill required fields and then go to menu bar program - execute in back ground then it will show u output parameters popup screen then enter. There u just give start data and time and then clikc on periodic values button there u select daily. Finally save. This will be run in back ground every day on specified time..
    Regards
    Sankar

  • How to make query base delivery monthly report  link with delivery return

    Hi,
    I have facing some problem in Sales delivery report monthly. Problem is:
    1) When i make Monthly query delivery report without any delivery return and AR Credit memo, it is Fine.
    2) When i make Monthly query delivery report with any delivery return and AR Credit memo, it is not showing proper. Its showing in report including return quantity or AR Credit memo quantity.
    So, How to make query base delivery monthly report  link with delivery return and AR Credit Memo?
    Please help me regarding this.
    Mizan
    Edited by: mizan700 on Dec 18, 2010 2:50 PM
    Edited by: mizan700 on Dec 18, 2010 2:50 PM

    Hi,
    try this.
    SELECT DISTINCt T1.CARDCODE, T1.CARDNAME , T1.DOCNUM DELIVERY#,T1.DocStatus 'DELIVERY STATUS', T1.DOCDATE 'DELIVERY Date', T1.DocTotal 'DELIVERY Total', T3.DOCNUM Return#,T3.DocStatus 'Return Status', T3.DOCDATE 'Return Date', T3.DocTotal 'Return Total',T5.DOCNUM Invoice#,T5.DocStatus 'Invoice Status', T5.DOCDATE 'Invoice Date', (T5.DocTotal-T5.VatSum-T5.TotalExpns-T5.DiscSum) 'Total Before Discount', T5.VatSum 'Tax', T5.TotalExpns 'Freight', (T5.DocTotal - T5.PaidToDate) 'Total Payment Due', T7.DOCNUM AS 'CREDIT MEMO#', T7.DOCDATE
    FROM DBO.DLN1 T0
    INNER JOIN DBO.ODLN T1 ON T1.DOCENTRY = T0.DOCENTRY
    LEFT JOIN DBO.RDN1 T2 ON T2.BASEENTRY = T1.DOCENTRY
    LEFT JOIN DBO.ORDN T3 ON T2.DOCENTRY = T3.DOCENTRY
    LEFT JOIN DBO.INV1 T4 ON T4.BASEENTRY = T1.DOCENTRY
    LEFT JOIN DBO.OINV T5 ON T5.DOCENTRY = T4.DOCENTRY
    LEFT JOIN DBO.RIN1 T6 ON T6.BASEENTRY = T5.DOCENTRY
    LEFT JOIN DBO.ORIN T7 ON T7.DOCENTRY = T6.DOCENTRY
    WHERE  T1.DOCDATE >= [%0] AND  T1.DOCDATE <= [%1]
    Thanks,
    Joseph

  • Delivery with batch

    dear all,
    can anybody  explain me the delivery with batch in details .
    thanks  in advance

    Dear
    If you are doing delivery of those materials of which batch management is on in material master data then you have to deliver these materials with batches. If batch management is not activated for any material than batch field will be in display mode but if batch management is activated than you have to enter batches. If there is only 1 quantity than you can enter batch on main screen of delivery document in VL01N or in Sale order VA01. If there is quantity more than one than you have to enter batches in delivery document in batch split screen. Select the line item and click batch split button and enter the batches. System will tell you open quantity and confirm quantity in batch split screen.
    Devilry with batches is maintained to have record of sold materials for warranty claim and tracking of materials in future.

  • STO- How to control Over delivery with batch split?

    Dear All,
    In STO Scenario, how to control the over delivery?
    I created a PO for the Intra Company stock transfer & Delivery created in the Background with the T Code VL10B. When I am doing picking using T code VL02N, the system is allowing to add  more than PO Quantity in batches and system displaying the warning message (Specified quantity is greater than the open quantity/Message no. VL287) & allowing to save the deliver document..
    Hence plz suggest how to restrict the same.
    Hope it is clear.
    Thanks & Regards
    varun

    I am also in the same boat.
    I searched the forum and got the link STO - How to control Over delivery ?
    I checked OSS notes 548914, 386340,215488 but to no avail.
    I suggested user exit USEREXIT_SAVE_DOCUMENT_PREPARE  in include MV50AFZ1 to my technical team for finding the resolution. So far it is still on hold.
    If you come across any other solution, you can update the forum so that it would be helpful for many others.
    Regards,

  • Packing handling units to outbound delivery with batch management

    Hello all,
    I am packing an outbound delivery with a material that has batch management active. The packing is from a storage location that manages handling units (HU-managed sloc).
    My problem is u2013 before entering the HUs to the delivery u2013 the system asks me to enter the batches (in the batch split function). Only then I am allowed to enter the HUs in the packing function.
    What could be the reason for this preliminary batch entries ?
    How can I set the system not to do that, i.e., I would like to be able to enter the HUs directly without entering the batchs separately.
    Thanks,
    Isaac

    Dear Isaac,
    this system behaviour can not be changed in standard and is also not recommended to change it via a modification. The reason for this system behaviour is to avoid inconsistencies in the system. The HU that you assign to the delivery, should exactly fit to the delivery. In case if the material is batch managed, you should specify the batch first, and then add the fitting HU with exactly that batch.
    I suppose you checked the longtext for HUDIALOG102, that you get in the described case, but I copy it for you, in case if you did not read it:
    "Diagnosis
    There are items to be handled in batches which have not yet been
    assigned to a batch.
    Batches must be recognized for items with HU-managed storage location
    For items at a storage location that is not HU-managed, the item type
    determines if packing will take place at cumulated item quantity level
    (meaning that the batch is not recognized at any point in the handling
    unit) or if packing must take place at batch level.
    System Response
    If an item requires batch identification, that item will not be
    suggested for packing as long as the batch is not recognized.
    Procedure
    Go to the maintenance of the delivery item and assign at least one batch
    to the item."
    Regards,
    Ely

  • GR for a STO with SD delivery and Batches with split valuation X

    Hello,
    We have a problem with the Goods Receipts for Stock Transfer Orders between plants for materials subject to batch split and split valuation with valuation type X.
    The scenario is very similar to the one explained on this thread: STO:problem with batch valuated material
    When creating the the STO, it automatically sets a valuation type that is not be the appropriate one, we cannot use only one valuation type per position because we can use more than one batch (and valuation type). The outbound delivery has the correct valuation types for each batch and material but when doing the GR at the receiving plant, it only takes into account the valuation type indicated in the STO with no chance to change it.
    I have seen the Note 212532 but we are not working with active ingredients.
    Does anybody know a useful EP to use?
    Thanks in advance for your help.
    Regards,
    Javier.

    Well, we can change the valuation type before Posting the goods issue of the delivery, but in most cases we need more than one batch (each batch has a different valuation type) for each item (material) in the purchase order.
    We can do this at delivery level but the GR only takes into account the valuation type of the purchase order.
    Thanks.

  • Delivery creation - Batch Job

    Hello,
    I need to create a batch job that has to pick up the sales order numbers from delivery deue list and create deliveries automatically.
    Could some one let me know the program that takes the orders from delivery due list and creates the delivries.
    Ponits are rewarded.
    Regards,
    Krishna

    Hi,
    GO to VL04 there u just fill required fields and then go to menu bar program - execute in back ground then it will show u output parameters popup screen then enter. There u just give start data and time and then clikc on periodic values button there u select daily. Finally save. This will be run in back ground every day on specified time..
    Regards
    Sankar

  • Delivery Split - Batch Management Stock

    Dear Friends,
    I have problem in my company :-
    For a item in Scheduling Agreement if I create a Outbound delivery in Background Delivery gets split due to no Batch Management in FIFO style.
    I don't want that split if the price of the batch are same.
    What should be done ?
    I tried one case on material - 9430.033.210-079  . On SA - 30018392 I tried creating a delivery of 1700 pc. The deliveries got splited in to 2.
    DO No.          Batch                        Qty
    1080000025     200704          1640 pc     
    1080000026     200711          60 pc                    
    As Stock for
    200704                     was 1640 pc
    200711                     was 400 cp
    Rate for these two Batches is same.
    What could be done in this issue ?
    Regards,
    Nikhil

    Hi NIkhil
    As per my understanding your asking abt Batch Split beacuse u r showing here batchsplit
    you are saying that if the price is same why batch is splitting that is u question?
    But here the stock is not available in single batch As per FIFO system picking material from 1st batch 1640 after that it is picking remainning stock.
    if u dont want to do batch split try this put 1640 stock in first line reduce the stock
    and enter new line with remaining stock in second line.
    In this Batch split is not there 2 line items are available .
    if it is not happening in delivary try this in order and come to delivery with 2 line items..for that u need to delete existing delivery do the neccessary things in order and create delivery..
    Rewards if it is solve u r problem
    Regards
    Durga Prasad

  • Production date in inbound delivery in batch split

    Hi,
         I have a issue with production date update in inbound delivery.
    I have created a inbound delivery for 10 PC. The inbound delivery has only one line item and there are no batch details on it. As soon as the inbound delivery is created a message is sent to the 3PL . Once the 3PL receives the goods from vendor he send us a message with the batch details. Say the 3PL has received multiple batches from the vendor. So he send us back an SHPCON message with multiple batch details. That  is batch A with QTY 6 and batch B with QTY 4. He also send us the production date for each batch via the shpcon idoc. say batch A has production date as 10.02.2011 and batch B has production date as 21.03.2011.
    The IDOC is created successfully in our system and the inbound delivery is also updated correctly with the batch split details with correct QTY. That is line item 10 has batch split line items 900001 with batch as A and QTY as 6 and line item 900002 with batch as B and QTY as 4. The issue is only with updation of date of production for each of the above batch. Both batch A & B are updated with date of production as 21.03.2011. Instead of batch A being updated with date of production as 10.02.2011 it is updated with the batch B date of production. I checked in the idoc. In the idoc each batch has correct production date. only when updating the inbound delivery it has updated wrongly..   Has any one come across similar kind of situation. ? How did u manage it?
    Ram

    I found out the issue and the approriate changes has been made in the message handling

  • Delivery order Batch split

    Hi all,
    I am using a smartform to print the Delivery order in VL03n. it is printing fine if there is no batch split.
    The quantity, amount for the delivery items  is  appearing as zero in the print if BATCH SPLIT is there.
      I have 2 items in delivery order like 10 & 20. After batch split, i find one new item 90010 is created under 10 &
    another item  90020 is created  under 20.
      i checked LIPS table where i find all 4 items. But i want to print only 2 main  like 10 & 20 . but the quantity, amount is present
      in batch split items.
      Please suggest how i need to handle batch split in my smartform printing .
    Thanks
    pabi

    Pabhi,
    In LIPS table, you'll find a field UECHA . For batch split item, it will point to parent item and for parent item it will be initial.
    e.g.  For item 90010 it will be  10 & for item 90020 it will be 20. 
    You can loop around the lips table using this relationship and sum the batch split quantities and then transfer that value to parent item. After loop processing you can delete the entries,which have UECHA not initial .

  • Update picking quantity in delivery for batch split items

    Hi,
    I'm trying to use the function module WS_DELIVERY_UPDATE to update the existing deliveries. I'm able to do batch split for the items in delivery using the same FM. I have also requirement to delete these items (batch split items).
    To delete these items first we have to make quantities to zero. So I'm able to make delivery quantity of these items to zero but not picking quantity.
    If we do not make picking quantity also zero it will not allow to delete these items
    and gives an error message saying "item is already made available for transfer order".
    Could some one let me kow how to make picking quantity also zero for batch spit items using FM.
    Thanks

    Hi Vikram
    To nullify the Picking Quantity, we can use FM: <b>SD_DELIVERY_UPDATE_PICKING</b>.
    Parameters to be passed:
    VBKOK_WA
    -- VBELN_VL - Delivery Number
    -- VBELN - Sales Document Number
    SYNCHRON - 'X'
    VBPOK_TAB
    -- VBELN_VL - Delivery Number
    -- POSNR_VL - Delivery Item Number
    -- VBELN -- Sales Document Number
    -- POSNN -- Sales Document Item Number
    -- MATNR -- Material Number
    -- LFIMG -- '0.000'.
    Have tried this in both cases whereby we have partial picking done and full picking done and worked for both cases.
    Please try on your end too...
    Hope this helps.
    Regards
    Eswar

  • Batch determination in delivery proposes batch already scheduled

    For one specific plant, when batch determination is done in the delivery, batches already scheduled for delivery are being proposed as still available.  What can be causing this?

    Hello,
    I finally solved this issue, here are the steps I did to find the solution:
    1. In transaction SPRO
    ->Logistics-General->Batch Management->Batch Determination and Batch Check->Strategy Types->Define Sales and Distribution Strategy Types
    Check the condition Type (In my case SD01), the Field Class contains the selection class with the logic to determine stock (In my case Z_MM_FERT)
    Chek the Sort Sequence (In my case SEQUENCIA)
    2. Go to transaction CU72 with the Sort Sequence (SEQUENCIA), in characteristic must have the following values:
    LOBM_VFDAT Expiration date, shelf life   Ascending (Checked)
    3.  Go to transaction CL02 with the class founded in the previous step (Z_MM_FERT),  in the characteristics TAB must have the following values:
    LOBM_VFDAT Expiration date, shelf life
    LOBM_ZUSTD Status of Batch
    LOBM_QNDAT Next Insp. Date for Batch
    LOBM_LVORM Deletion Ind. for Batches
    4. Go to transaction MM03 with the material that you have in Delivery, chek the TAB Classification, Option Batch 022, the material must be associated to the selection Class (Z_MM_FERT), but it must be associated trought transaction MM01
    5. In transaction OVZ9,  double click in the row with  the column Availability check  = CH Batches  and Checking Rule = B SD Delivery
    Option Include Deliveries, must be Checked.
    6. Material that you have in Delivery, must be created in transaction VCH1 with the according Strategy Type (SD01)
    Best regards,
    Alejandro Lopez

Maybe you are looking for

  • Problem with safari and wallpaper etc

    I have a problem with safari and dashboard wallpaper... After rebot i loose history and topsites from safari. My deskboard wallpaper swiched back to this http://fc08.deviantart.net/fs28/f/2008/097/f/8/MacbookPro_Wallpaper_by_desingsblp.jpg Whats is w

  • Global temp table usage obstructed by FND SRWINIT

    Hi Friends, I am using a Global temporary table in one of my Oracle reports which is being populated in After-Param-Form trigger. But the problem I am facing is if I use the SRW.USER_EXIT('FND SRWINIT') in the Before-Report trigger, the records in Gl

  • I have a duplicated photo album in my pictures and i need to get rid of it.

    I recently backed my iphone up and synced it, and it duplicated my cameral roll album. someone please help me get rid of it. PLEASE!

  • P0000-STAT1 (Customer Specific Status) field on Infotype 0000

    Hi All, I have a requirement on Customer specific status field on infotype 0000,  Where I should be able to maintain that field through PA40. As this field is standardly delivered as output field only through SAP I am unable to force that field as in

  • Increase help window text size

    Hi all, i have a situation here ,the text font size of my flex help window is coming say of 4  is there a way via which i can increase it..it is very less compared to the other windows text