Deconfirmation of Scheduled Line stock

Hello Experts,
When we create Sales Order,in schedule line we confim some quantity for delivery ,after than we create Delivery note for that material qty.
But if for any reason , customer doesnt want that material, we release that qty by editing Sales order using Tcode VA02.
Now i want to automate this process i.e.,system should check the material in salesorder and than it should check that with in 7 days Delivery Note is created.If delivery note is not available for that particular material,than it automatically deconfirm the qty from sales order.
Is their any standard program available in SAP or if any one can help me in coding this requirement.Please send me help with your suggestions.

Anyway to deconfirm the user would normally delete the schedule line, so i guess deleting the line in your program should not lead to any database inconsistency.
if possible consult your functional consultant on this issue before proceeding.
Check Table VBEP (Sales Document: Schedule Line Data).

Similar Messages

  • Safety stock not covered by schedule lines in planning run

    Hi !
    In our organization we are trying to implement scheduling agreements and automatic creation of delivery schedule lines through MRP. We have MRP type PD and it considers the reservations created by PM orders and Production orders as requirement elements. When I do the planning run, it creates schedule lines for the PM order reservations and purchase requisition for safety stock. I need it to create schedule lines for all scenarios. Kindly help and suggest a solution.
    Regards,
    Satya

    Hi,
    Please refer the below links.
    Schedule Lines not getting created in MRP
    Re: No Scheduling line is generated when RUN MRP
    Hope it helps you.
    Thanks.

  • Schedule lines are not getting confirmed even though stock is there

    HI,
    i want to discuiss one sensitive issues which is a simple one.
    my schedule lines is not getting confirmed even stock is there at sales order.
    there is no delivery block.
    there is no minimum stock level.
    there is no credit check for that.
    there is stock of 2 EA in that plant and storage location, but stock is not getting confirmed at sales order level or transaction level.
    even stock is there it is going to avaliability check overview screen and giving stock confirmation after 12 days.
    even i checked all the dates.............but its of no use.
    what to do ?
    after testing all the possible options i am taking help from
    please help me in this regard,
    regards,
    balajit

    Hi
    you need to check the following.....
    First check the Factory calander of your plant whethear some holidays or not
    Second most importantly you have to check which stretagy group is assigned  in the material . whethear it is make to order or make to stock. change it as make to stock.
    "What happened if material stretagy group is make to order then from sales order system generate requirement of that material against that particular stock, that time system do not consider the unrestricted stock and not confirm schedule line."
    Regards
    Shambhu Sarkar

  • Schedule Line Date Showing in future in Sales Order though the Stock is available in system on same date

    Hello All,
    Good Morning,
    We have received an Incident where in the Sales Order during the ATP Check we do user is getting the future schedule line date in future as enclosed in the screen shot below. User has created the Sales Order on 12052014 for 7 line items. For the Line Item 7 the Stock is available in the system on same day but still after ATP Check the date is shown in future.
    I wan to replicate the scenario in Quality to find the exact bug to fix the Issue but not able to replicate for same customer and material i am getting the current date as confirmed delivery date. please guide me if you can share some inputs so that i can go in right direct and fix the issue.
    Please respond it is critical Issue.
    Thanks,
    Farhan.

    Hello All Experts,
    Many Thanks for all the Inputs you have given.
    Finally we have replicated the Issue in Quality 2 Days Back and Indeed it was great Achievement.
    Finally We have given to Abaper to debug it find the root cause.
    Let me summarise the actual Issue.
    Issue : Sales Order Schedule Line showing future date for the Materials which are having Product Allocation even though the Stock is available and Allocation Qty also available in the PA Master Data we maintained..
    We created one Sales Order for Line Item A and B. Line Item A is having Product Allocation. When we created Sales Order for both Line Item A and B we got Schedule Line Date as 13.06.2014. Then we Schedule the Re-Scheduling Job in V_V2 and check the effect. For Line Item A the Schedule Line Date got changed to 01.07.2014 and Line Item B it was same as before.
    Would like to know is there any config setting at Schedule Line Level we have missed just want to cross check if there is any or something in Product Allocation Configuration.
    Please refer screen shots below for more details of Sales Order before and after effect in Re-Scheduling.
    Please provide your inputs on this.
    Thanks,
    Farhan.

  • Schedule line getting confirmed when Ordered Quanity is greater than stock.

    Hi Sap Gurus,
    We have an issue in one of the sales scenario.
    In one of the sales orders the ordered quanity is purposely maintained greater than the stock at respective storage location(batch managed).
    In this case the schedule line should not get confirmed and it should not allow delivery document creation.
    But in the sales order the schedule lines are geeting confirmed and even the delivery document is getting created with picking request completion.
    Could you please help to understand :
    1.  why the schedule lines are getting confirmed when ordered quantity > Inventory?
    2. How do I stop delivery document creaton in this scenario?
    Looking for a quick response.
    Thanks in advance,
    Bhaskar

    Hello Bhaskar,
    Is Availability Check in your system considering Replenishment Lead time, if yes, then this is possible.
    Check this IMG Link:
    IMG - Sales and Distribution - Basic Functions - Availability Check and Transfer of Requirements - Availability Check with ATP Logic or Against Planning - Carry Out Control For Availability Check
    Here check the RLT settings.
    Also check settings under In/Outward Movements, where things like include Purchase Order can lead to confirmation of stock in Sales Order, despite physical inventory being present.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • 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

  • Schedule line confirmation date for 3rd party sales( non stock item)

    Hi ,
    While creating an sales order i have a stock  item and 4 non stock items . All the non stok items are similar to 3rd party sales as they are services . While created the sales order for the no stock item the confirmed schedule date is given as 12 days in the future or in one case after month .
    Can  someone please help me in understanding how the dates are being calculated . I havent created any PO for the non stock items.
    I would like the confirmed date to be picked as the system date.

    Hi,
    There can be multiple reasons for this.
    You have not mentioned the material type. Anyhow, first check Material Master 
    Purchasing view> GR Processing Time field
    Sales / general Plant > Set up time and processing time field
    If MRP views are maintained
    In MRP2 View > Scheduling.
    In case you do not want availability check to be carried out
    Untick Availbility check and TOR check boxes in VOV6 for the schedule lines determined for these materials.
    Hope this helps.
    Regards,
    Sharan

  • Why the stock actually is enough currently..The Schedule line still..

    Hi,
    I am just in creating an Sales Order and i checked the Stock of the material is enough.
    Then i put the Material Number and Qty. as the first line item input.
    Then i got confused for the next...
    As the System popuped an msg firstly:
    The sum of the confirmed quantity exceeds the sum
    of stock items
    Then take me to the screen of Availability Control...Let me choose the date for complete delivery....
    Why???Coz as i think that even today could delivery all the goods, coz the stock is enough!! why still arrange the Delivery in the future???  And then confimed Qty. in the future date....
    Thanks!

    hi,
    pls check the factory calender you assigned to your sales organisation. in your factory calender you might have assigned sat,sunday as non-working days
    hence the system is showing the schedule lines in future
    pls reward points if the answer is helpful
    Regards,
    Murali

  • Schedule line getting created for material whose stocks are maintained

    Hi Friends,
    I am having an unusual problem of schedule line getting created for material whose stocks are there in the system. I have created an SO for some material, and all the material is having sufficient qty in the system but still the system is generating schedule line.
    Can someone please advice what could be the problem and the solution to it.
    Regards,
    Wasim.

    Hello Wasim,
    - In TCode MM02, Check Scheduling in MRP2 Tab of Material master (if MRP is active.)
    - In Tcode OVZ9 - AvC control, for your Availability check maintain (eg. 02) in material & Checking Rule:A-SD order.
    Whether Check availability without replenishment lead time is unchecked, as this Indicates whether, during the availability check, the system checks the replenishment lead time. So, Items for which the delivery date falls within the replenishment lead time, but for which there is no inventory, are confirmed for delivery after the replenishment lead time. In the case of items for which the delivery date falls after the end of the replenishment lead time, the system assumes that everything can be confirmed.
    Thanks & Regards
    JP

  • Sales Order Stock - Problem with Schedule line

    Hi guru,
    I have a problem with my schedules line.
    We use the Sales order stock ( using MB1B with good movement  412/E) for some specific customers.
    Even if the sales order reservation works well, there is an issue with the schedule line in the order.
    Indeed when i enter the material in the order the schedule line display an availibily in 8 days even if the material is out of stock or available now....
    When i enter the same materila in a standard order(with item category without special stock E) the schedules line are good...
    What is it the most weird is that i have done the customizing by copying the standard item and i have just added the special stock E in the item category.
    If anyone can help me!!
    Thanks a lot

    hello Lakshmipathi,
    Thanks a lot for your reply.
    I tried to change the requierement class in order to put one with special stock E as you explained, but i still have my weird schedule line. When i put the item in the order it is 0 stock for today, but stock find in 12 days either if there is stock or no(unrestricted stock i mean).
    If i change the RDD in more than 12 days the stock is available for the date requested.
    If you have an idea of what could be wrong because on my case i want the schedule line to be at 0 while the sales order reservation has not been processed (via MB1B/412/E) and once the stock movement is done the schedule line has to be find.
    I dont know if im clear enought..
    To be more clear,  i want the schedule line based on the "sales order stock" and not on the "unrestricted stock".
    thanks for your help!
    Guillaume

  • Schedule lines getting created even when material is there in stock

    Hi Friends,
    I have configured a normal material and have sufficient stock also, but when I am creating a sakes order the system is generating schedule line for the material even when I have stocks.
    Can someone please advice what could be the problem and the possible solution.
    Regards,
    Wasim.

    Dear wasimuddin.sayed,
    When you are creating sales order definitely system will create the schedule line for Confirm delivery date and delivery QTY.
    that is the functionality of schedule line.
    now if you don't have stock at plant level on the same date then as per availability configuration system will confirm the another schedule line on which confirm delivery date and  qty will be available.
    if not satisfy the answer request you to elaborate the question in detail.
    Best Regards
    Hanumant

  • Two schedule lines despite sufficient stock

    Hi Gurus,
    My order form shows two schedule lines even after maintaing sufficient quantities in the respective plant location.....another strange happening which I comprehended was if at all I create order with reference to quotation then order form confirms and me the qty....but if I create a seperate order then the qtys are not confirmed....what wud be the reason?..........
    Also to understand the importance of checking rules like individual requirement and daily requirement I tried changing checking rule from individual to daily....but I cud not see any changes...where do I see the changes?.......
    Looking for ur valuable feedbacks on this.................thanks in advance.......................

    Hi,
    The reason for your first query that you get 2 schedule lines even though you have stocks could be due to the fact that delivery and transportation scheduling would be on and the system is adding the pick/pack/load/transit time also. So, if the requested date is for today and you have stocks also, system would still create a 2nd sch. line since it is adding the above mentioned times.
    for your 2nd doubt, do you get the same schedule line category in both the cases?

  • Schedule line getting created even when material is in stock

    Hi Friends,
    I have configured a normal material and have sufficient stock also, but when I am creating a sales order the system is generating schedule line for the material even when I have stocks.
    Can someone please advice what could be the problem and the possible solution.
    Regards,
    Wasim.

    Dear wasimuddin.sayed,
    When you are creating sales order definitely system will create the schedule line for Confirm delivery date and delivery QTY.
    that is the functionality of schedule line.
    now if you don't have stock at plant level on the same date then as per availability configuration system will confirm the another schedule line on which confirm delivery date and  qty will be available.
    if not satisfy the answer request you to elaborate the question in detail.
    Best Regards
    Hanumant

  • MRP - Auto creation of del schedule lines based on planned delivery time

    Hi,
    We have activated MRP (type PD) where Purchase requiesition is auto created by system for requirement quantity. We require to optimize delivery schedule in such a way that entire PR quantity is broken into various delivery schedule based on planned delivery time and requirement.  Scenario can be further explained with following example.
    Material Requirement for a month is say 1,25,000 units
    Closing Stock say 25,000 units
    PR Generated by system for 1,00,000 units. The entire quantity is schdulled with only one delivery schedule line as per planned delivery time. 
    The requirement is to generate multiple delivery schedule lines automatically in Purchase requisition based on planned delivery time so that Purchase orders can be placed with system generated delivery schedule lines.
    How can it be achieved ?
    Regards,
    Nirav Kinkhabwala

    Nirav,
    This subject has been discussed repeatedly in this and other forums.  I must assume that you overlooked the rules of engagement, which state that you should first search the forums and other public sites, before posting questions here.
    Standard SAP MRP cannot be made to generate multiple items in a Purchase requisition.  The functionality you seek is usually achieved when converting purchase reqs to Purchase orders, where many single purchase reqs can be adopted into a single Purchase order.
    You also might want to investigate use of Vendor Scheduling agreements.
    Best Regards,
    DB49

  • MRP Type P1 and late firm schedule lines

    Hello All,
         We are using MRP Type P1 which firms our schedule agreement schedule lines within the planning time fence (as desired).  However, sometimes the supplier is late on delivery and the firm schedule line goes into the past.
         Is it possible to have MRP move the firm schedule line delivery date to today instead of going into the past?
         Thank you,
         Jerry

    Hi ,
    Bring process forward (reschedule in)
    Within this rescheduling horizon, the net requirements calculation checks whether, after a requirement, a firmed receipt exists, which can be used to cover this requirement. Then the system displays a rescheduling date as well as the exception message Bring process forward for this receipt. The net requirements calculation then uses this receipt and the system will only create another procurement proposal if the receipt quantity is not sufficient to cover the complete requirement. Several firmed receipts can be used to cover one requirement.
    It does not take in to account the GR processing time and it is purely based on the stock requirement date , parameters in Procurement and Scheduling in the Material Master
    So it will consume the requirement  backward scheduling and bring the Process forward.
    Kumar which  strategy are you using ?  scheduling agreement is of weekly , daily or monthly bucket ?
    How many days SA bring to Production and How many days SA for forecast you are doing ?
    Are you using any Program to convert these SA in to PIR and upload ( using any program ) .
    Regards,
    Jayavimal
    Edited by: jaya vimal on Jun 16, 2010 1:33 PM

Maybe you are looking for