Change delivery block in order schedule line

I use badi "BADI_SD_SALES" method "SAVE_DOCUMENT_PREPARE" to change delivery block in schedule line. I change field fxvbep-lifsp and I change table fxvbep the I add or I change line in table fyvbep. It work fine when I create the order but not when I make a change. May be I have to use another exit.
Help required,

Hi Daniel,
In change mode.. (Mean when you change the sale order).. Just do the changes in FXVBEP table only.
As per my knowledge, The FX*** and FY*** are used to find the delta changes in the document and these changes will get updated in change document history and the same will be updated in database.
In the change mode, when you do the changes to both the tables, the delta will not be there and may be the delivery block not updated.
Try doing change in FX table only.
Regards,
Sai

Similar Messages

  • Delivery block in the schedule lines.

    Hi,
    Mine is a MTO scenario. I am using planning strategy 50. So a planned order ---> production order will be created against MRP run  against each sales order.
    When i am placing a delivery block at the header the system is working fine. Its deleting the planned order(converted production order).
    when I am placing a delivery block at the schedulle line its not working fine. its not deleting the underlined planned order or production order.
    what configuration should I do to make this work.......

    Hi,
    Look at the help (press F1) on  the field confirmation block at SPRO-> Sales and Distribution ->Basic functions ->Availability check and Transfer of Requirements ->Tranfer of Requirements -> Block quantity confirmation in delivery blocks ->Reasons for and Scope of Delivery Blocks: Transfer of Req. blocks.
    It looks applying delivery block at schdule line level will not delete the passed requirements. This is standard SAP behavior. If you want to change this nature, then you may need to use an User-exit.
    Following is description given for the field confirmation block;
    Confirmation block
    Indicates whether the system, in addition to blocking delivery, also blocks the confirmation of order quantities after an availability check during sales order processing.
    Example
    You may want to block confirmation of sales orders where the creditworthiness of the customer is in question. In this case, you set the confirmation block for the delivery block that relates to credit problems. During sales order entry, when you enter a delivery block because of credit problems, the system, after you save the order, does not confirm any quantities for delivery. In this way, the goods remain available for other customers.
    Note
    If, before you save a sales order, you look at the schedule line overview, you can see what the system would confirm, if the block were not set. However, as soon as you save the sales order, the confirmed quantities are automatically reset to zero.
    Dependencies
    If you enter the delivery block at header level, the system transfers the desired delivery quantity for all schedule lines in the requirement. The confirmed quantity is deleted. This function is not available when you enter the delivery block at schedule line level.
    Regards

  • Link between Delivery and Sales Order Schedule Line

    Hi Gurus,
    I have a requirement in which i need to display quantity and amount at schedule line level and also the delivery and delivery item for each schedule line.
    For example, if there is a sales order O1 and item 10 for which we have 3 schedule lines and 3 deliveries as well say D1, D2 and D3.
    Report should be something like this
    Sales Order    Item   Schedule Line    Delivery    Del Item   Confirmed Order Qty
    O1                 10      1                       D1           10            5
    O1                 10       2                      D2            10            5
    O1                 10       3                      D3            10            4
    How can i determine that a particular delivery corresponds to which schedule line of that saler order-item?
    We have the link between delivery and sales order but is there any way that we can get the link of delivery at schedule line level?
    Please help.
    Regards,
    Gaurav

    Hi,
    I suppose you must check with SD functional consultant and the post should also be in the logistics SD forum and not BI. But I suppose there is know specific link between the schedule line of SO to the Delivery. It is more like a bucket flow for ex.
    Sale order   Item    Schedule line  qty
    SO1            Item1     Sch1            10
    SO2            Item1      Sch2           10
    Delivery Item QTy
    DO1       IT1   15
    DO2       IT1    5
    In this case qty 15 is distributed over both SO1 and SO2, and SO2 ITem1 Sch2 has link to both the DOs
    So I am not sure if you can establish a one to one link, please check with your SD consultants.
    Regards,
    Ashwin G

  • VL02N Change Delivery blocked - Sales Order is currently being processed

    Hi Experts,
    We have a problem with only 2 deliveries. We try to reverse goods movement in VL09, and the error Text Text * ID * language  not found. Text Determination is ruled out because the rest of the deliveries can be reversed without this error.
    Here are some more findings:
    - When we tried to change the Delivery, error will show 'Sales Order XXX is currently being processed by user'. This is odd because it doesnt say the user name.
    - Sales Document Flow is correct, but when I checked VBFA (table for Document Flow), no entry for Sales Order as preceding document for the delivery, In fact, Sales Order cannot be found as preceding document.
    - When I checked LIPS, the Update Indicator for Delivery Document Flow is blank. Requirement Type and Planning Type also blank.
    - We were able to delete Sales Order even if Delivery is not yet complete. Document flow was then changed where the preceding document of the delivery is a billing document.
    It's getting weirder as it goes, any idea is really welcome. Thank you so much.

    Hi Sridhar,
    Thank you very much for your answer, that is certainly the case. Some tables werent updated with the preceding document.
    These tables/fields are:
    VBFA - Sales Ord missing as preceding document
    LIPS - VGTYP field (indicator of what type is the preceding document) is blank, as well as many other indicator fields. Actually, what were filled was just the preceding document number and item number in LIPS.
    Additional detail is that we can see the SO in the Document flow of the delivery, but under the delivery item's Preceding Documents tab, it will say that there's no preceding document.
    However, the delivery is already GI'd (hence we want to reverse it), and we cannot reverse because of this problem.I found an OSS note that will force update the VBFA table, but still doesnt work, until I added some codes that will also force update the value LIPS-VGTYP = 'C'. However, I dont want to do this because this is a force update...
    Any advice will be a great help. Thanks.
    Joyreen

  • How to change  delivery  block for all item in the schedule lines via va32

    dear sap expert:
    i onle can  change delivery block for one  sales order item in the schedule line  every times via va32,it will take so many time because there are hundreds of item  in a sceduling agrrement. how to change all the item  one times.
    please give me a way to resovle the problem.
    best regards.

    dear:
      the fast change function cann't resovle the problem,i first double click the item of schedule agreement  ,then select the schedule lines option, finally in the delivery block input the reason of bolck.
    best regards.

  • Blocking RdA creation from Sales Order Schedule Line

    Hi Gurus,
    please do you know if there is a way to block the RdA creation from Sales Order schedule line, for TAS item category? I tried with Header Delivery block without quantity confirmation but even if quantity on schedule lines are not confirmed, RdA is created anyway.
    Thank you very much
    Kind Regards
    Andrea

    thank you

  • In V_V2 the role of Sort Item by date of creation and Sort by delivery date of earliest schedule line for the Sales Orders when Material is out of Stock.

    Hi All,
    Good Morning,
    I am working on once Incident for Re-Scheduling Program V_V2 where the user has requested us to change the criteria for determining the priority of Sales Document based on Sort Item by date of creation. Currently they are using the Sort by delivery date of earliest schedule line in the Variant.
    I would like to know the role these both options play in the Re-Scheduling program V_V2. I would like to know the impact of both of them and the kind of testing I need to perform to study the behaviour of Sales Orders especially when the material is out of stock?
    Please explain with help of examples.
    Thanks
    Farhan.

    This is not that simple that an example would explain how this transaction works but I'll give you some examples.
    Material A has SO1 and SO2 of 10KG each, stock is 20KG so both quantities are confirmed at today. A stock recount determines a reduction to 5KG. This program would change confirmed quantity of SO1 to 5KG and SO2 to 0KG if:
    Creation date of SO1 is older then SO2 in strategy 1
    1st delivery date of SO1 is smaller then SO2 in strategy 2
    Material B has SO1 and SO2 with 10KG each but no quantity confirmed, stock is 0KG. A prodution adds 15KG to stock. The program would change confirmed quantities of SO1 to 10KG and SO2 to 5KG if:
    Creation date of SO1 is older then SO2 in strategy 1
    1st delivery date of SO1 is smaller then SO2 in strategy 2
    I'm assuming a specific configuration, there are many other scenarios possible.
    regards,
    Edgar

  • How system updating the delivery dates in sale order schedule line

    Hello
    i created a sales order with 2 line items. For the first line item the confirmed delivery date in the schedule line is 06.02.2012 and for the second line item the confirmed delivery date in the schedule line is 14.02.2012 . Both the line items are third party items and the PR created against the line items in the sales order .
    We created the PO with reference to the PR of the SO and we find there are different delivery dates coming in the PO document for the 2 line items . For the first line item the delivery date is coming as 14.11.2011 and for the second line item in the PO , the delivery date coming as 11.11.2011 . Firstly we are not understanding from where the delivery dates are picking in the PO.
    Secondly , once we saved the Purchase order and once we come back to the sales order , the schedule line dates are getting changed automatically in the sales order . For the first line item in the sales order the delivery date is changing to 22.11.2011 and for the second line item in the sales order the delivery date is changing to 22.11.2011.
    Now my question , is from where the delivery dates are updating in the Purchase order and once we save the purchase order how the delivery dates in the schedule line are getting changed .

    Now my question , is from where the delivery dates are updating in the Purchase order and once we save the purchase order how the delivery dates in the schedule line are getting changed .
    For third party processing, the delivery dates are updated in the purchase order based on the settings in the field Planned delivery time in the MRP2 view of the material master(defined in purchase info record in t.code ME11/ME12) and purchasing processing time defined in t.code OMEW. This means, since the date of PO created, it will take the days mentioned in the planned delivery time field and purchasing processing times to determine the delivery date, which will be copied into the sales order as delivery date. In your case, the purchase order delivery date is not copied into the sales order, hence you may need to check OSS note. How the PO is handled? Any confirmation control functionality is used?
    Regards,

  • Mapping between Sales Order-Schedule-Line and Delivery-item

    Hi together,
    I want to extend the Datasource 2LIS_12_VCITM (Delivery-number, -item, Order-number,-item is available) by Sales Order Schedule Line.
    Could not find any ERP table (VBEP and LIPS allow a mapping only on item level) for the mapping between Sales Order Schedule Line and Delivery item yet. The use of the extractor 2LIS_12_VCSCL for the extention (e.g. infoset) afterwards is no option.
    Thanks for your help in advance!!
    Assign full points!!
    Sven

    Hi Reddy,
    thanks for your answer.
    I know that I have to add this field.. but the problem is, how to fill this field. I don't know how to map the delivery-item with the schedule line-item.

  • How to produce different outbound delivery based on different schedule line

    Hi,
    I want to create different outbound delivery based on different schedule line time,but system automatically create a combining delivery document with a sum number.
    For example,
    schedule line
    date               goods issue time   qty
    2011.08.24     08:00:00                1
    2011.08.24     10:00:00                1
    when I create the outbound delivery, system create only one document with quantity 2.
    But I need two documents with quantity 1 in every document.
    How to solve this requirement?
    Thanks.

    Hi,
    I viewed the item requirement in VOFM, found that they are status check for the copy control, not the split control.
    Could you please give me a example?
    In the copy control--header--conditions----order requirement ( or combination requirement )
    They are like this :
    (001)
      bp_subrc = 0.
    Check that reference document is an order (if not, issue error)
      if cvbak-vbtyp cn vbtyp_auft.        "Auftrag?
        perform message_handling in program (programmname)
                                           using cvbap-posnr
                                             '003'
                                             'E'
                                             'VL'
                                             cvbak-vbeln
                                             space
                                             space
                                             space.
        bp_subrc = 1.
        check 1 = 2.
      endif.
    Check the status of the Fonds-Management
      IF CVBUK-FMSTK EQ 'A'.
        PERFORM MESSAGE_HANDLING IN PROGRAM (PROGRAMMNAME)
                                           USING CVBAP-POSNR
                                             '889'
                                             'E'
                                             'VL'
                                             CVBAK-VBELN
                                             SPACE
                                             SPACE
                                             SPACE.
        BP_SUBRC = 1.
        CHECK 1 = 2.
      ENDIF.
    Check that order is not blocked by the automatic credit check
      if cvbuk-cmgst ca 'B' and
         cvbuk-abstk ne 'C'.
    Credit check is irrelevant for correction deliveries
        if v50agl-sofauftrag eq charx       and
           tvak-lisof       eq space       and
           likp-lfart       eq tvak-korli.
        else.
          perform message_handling in program (programmname)
                                             using cvbap-posnr
                                               '060'
                                               'E'
                                               'VL'
                                               cvbak-vbeln
                                               space
                                               space
                                               space.
          bp_subrc = 1.
          check 1 = 2.
        endif.
      endif.
    Check the user status from the order header
      if not cvbak-objnr eq space.
        call function 'SD_STATUS_VBAK_CHECK_INTERN'
          exporting
            i_objnr              = cvbak-objnr
            i_vrgng              = vrgng_sddn
          exceptions
            allowed_with_warning = 01
            not_allowed          = 02
            object_not_found     = 03
            others               = 99.
        if sy-subrc ne 0.
    Fehler nicht bei MODKZ = '2' (Erlaubt mit Warnung)
          if sy-subrc gt 1.
            bp_subrc = 7.
    Else ist nötig, da Routine mit "changing sy-subrc" gerufen wird
          elseif sy-subrc eq 1.
            bp_subrc = 0.
          endif.
    Check Global delivery flags
    line deleted: "n_911988
            perform message_handling in program (programmname)
                                               using cvbap-posnr
                                                     sy-msgno
                                                     sy-msgty
                                                     sy-msgid
                                                     sy-msgv1
                                                     sy-msgv2
                                                     space
                                                     space.
    Bei Fehler: Bedingung verlassen
          check bp_subrc ne 7.
        endif.
      endif.

  • Sales Order Schedule Lines getting updated

    Hi,
    In my system when I am changing the delivery date of  'AB' confirmation in the Purchase order Item level confirmations, the corresponding  Sales Order' schedule line is also getting updated with the delivery date.
    So, my question is is this a standard SAP functionality or this fuctionality has been implemented through BADI, Exits etc.
    Regards,
    Rachit

    Rachit,
    This is standard SAP behavior. In 3rd party sale process, the changes done to PO (qty, dates) are updated automatically in the sales order.
    TW

  • Manually Enter the Sales Order Schedule Line

    Dear All,
    I have a requirement where Sales Order will be created by Customer Service with Quantity and customer requested delivery date.  Subsequently Planning department will go to the sales order schedule lines and enter manually the delivery date and confirmed quantity (multiple schedule lines) based on the stock/availability.  They also need to do some changes in the shedule line if required.  But when I try, the manually entered schedule lines are disappeared.  Could any one advice how to set this up?
    Thanks,
    Regards,
    Venkat

    Hi Venkat
    A schedule line gets grade out because this has been determined . through schedule line determination. . Now in the shipping data tab you can change the schedule line tab if you want .  manually you can change the request delivery date also. 
    But it is not advisable to change the schedule line because again the affect of availability check will vary.
    But can we know for what purpose you want to change the schedule line when you create the sales order. Any reason .For what purpose you are going for that customization ?For what purpose?
    Regards
    Srinath

  • How to control not to confirm quantity in sales order schedule line

    Hi,
    We have a problem with confirmed quantity in sales order schedule line.
    When I reject a position in a sales order, confirmed quantity still remains with quantity ( diferent to 0).
    I need in some cases that system not to confirm quantity in schedule line at item level.
    I've tried to do this with a new routine in OVB8 transaction, but it didn't work.
    Could you help me? How can I avoid the system to confirm quantity in a sales order item?
    Thanks in advance....

    Hi Lakshmipathi,
    I'm sorry. The rejection was a bad example.
    I need, in some cases, that the system doesn't confirm quantity in sales orden item. We have a custom field in sales order item and we need to confirm with 0 quantity , when that field has a specific value.
    Due to that field is a custom field, I need an exit, or rutine, or .. i don't know...to inform a standard field too ( delivery block, rejection...) something to get confirmed quantity to 0.
    I've tried with rutine in OVB8. But It didn`t work
    I've tried with delivery block, but with this all items in sales order, confirms with 0. I need at item level.
    Thanks

  • Interesting and an  imporatant issue at sales order schedule line.

    hi all,
    interesting and an  imporatant issue at sales order schedule line.
    i created a sales order with 10 qty.and the system proposed a two schedule lines.
    let's say to order created date is 27.11.2008.and the requested delivery date is 27.11.2008.
    but the stock is not available today then the system proposed two more schedule lines apart from the 27.11.2008.so now there are three schedule lines like below.
    schedule line date                      Material availabilyt date   delivery date                   
    27.10.2008 with zero quantity.     
    28.10.2008 with 5 qty.                28.10.2008                     29.10.2008
    02.10.2008 with 5 qty.                02.10.2008                     03.10.2008
    now the delivery and pgi already for the schedule line 28.10.2008.
    then when i run the availability check on 01.11.2008 system is over writing the material vailability date as today at the scheduleline number two.
    now i can able to view only two schedule lines only.
    schedule line date                      Material availabilyt date   delivery date                   
    28.10.2008 with 5 qty.                01.11.2008                     29.10.2008
    02.10.2008 with 5 qty.                01.11.2008                     02.11.2008
    now my concern when we reschedule the avalability check it should notchange the Material availability date of the schedule line which i already delivered.
    Regards,
    sheshukumar

    can any one repsond for this.....

  • Delivery date in PO schedule lines not equal to delivery date in PO confirm

    Hello expert.,
    I use PO with account assignment E for sales order purchasing coming from a TAB sales order category.  In the PO I have schedule lines define according to the lead time from the materila masetr of the info records.  The schedule lines in the PO update automatically the schedule lnes in the sales order and therefore the planning on the sales and delivery side is done according to the delivery date indiacte in the schedule lines of the PO (table EKET).
    I use also inbound deliveries to indicate when the goods arrive.  At that time, I can realize that the lead time / the quantity delivered by the vendor does not correspond to what was palnned in the schedule lines of the PO.  When I save the inbound delivery, the confirmation is indicated in the PO in the PO confirmation tab with the delivery date equal to today (table EKES).
    The issue I have is that the schedule lines of the PO is not in line with what is in the confirmation tab for both the quantity and the date.  Therefore, even though I have goods arrived that could be delivered to the final customer earlier, the system doesn't recognize it because the schedule lines in the PO remain with the original planned date and quantity and as a consequence also in the sales order schedule line.
    Does anybody can give me a way, a trick or a mechanism to align the delivery date and the qauntity in the PO between the schedules lines tab and the confirmation tab?
    Thanks a lot for your support.
    ALJ
    Edited by: Andre Louis Jadot on Nov 26, 2010 8:15 AM

    Dear,
    This is very intersting.
    Delivery date is come in purchase order from plant delivery time (MRP2) in material master.
    Exa:
    If you enter plant delevery time as 10 days in MRP2 of material master.
    So system calculate delivery date as under.
    Plant delivery time : 10 days.
    PO creation date : 08.05.08.
    System consider delivery date 21.05.08
    System add 3 days in your plant delivery time.
    So 3+10 = 13, Delivery data:- 08.05.08 + 13 = 21.05.08.
    Please check it in your quality client, If it is useful for you please revert back with points.
    Regards,
    Mahesh Wagh.

Maybe you are looking for

  • Message struck in adapter engine with status Hold

    Hi, In intergaration engine all messages are processed, I have checked SMQ1, SMQ2 (no message is struck in queue) where as messages struck in adapter engine with status Hold, I have checked this in RWB. How to resolve this? Regards, Krishna

  • Interrogating modules in ear file

    Hello, Is there a way I can find information about an (undeployed) .ear files modules, perhaps by interrogating the application.xml file within it??? Thanks, Adam

  • Partitioning a Hardware RAID

    OK, I have already searched the net to no avail, im hoping someone here will be able to help me. I currently have an external 300gb HD with 2 partitions, one is a bootable backup and the other is storage. I have recently realized that if this drive w

  • Extra hard drive for mac pro 2009

    I have bought an extra 2.5 inch solid state drive for my mac pro (2009). I have tried it in all 3 spare slots and its not being seen at all. Where am I going wrong?

  • CUA Initial Load failed - Missing global Scripts

    After our installation of the IdM 7.1 Patch 4 I used the Job Wizzard to create the Job for the Intial Load from our CUA System.I faced with some warnings and errors: <br> <br> <br> Warnings during the Pass ReadABAPRoles:<br> Warning Missing global sc