Backward scheduling in sales order

Hi all,
I have 2 routes maintained which should be determined by different shipping conditions.  Let's name them as Route A with transit time 4 days and Route B with transit time 2 days.
When creating sales order, the backward scheduling takes place.  To my understanding, in case the material available date is calculated as in the past, forward scheduling will take place.
My question is - I have 2 routes with different transit time.  Is it possible to make the backward scheduling checking all available routes (in my case, ignoring the shipping condition) before start the forward scheduling?
Thanks in advance.
Cheers, Kenneth

This is how the system works:
the route is determines in FM SD_ROUTE_DETERMINATION. this is reached via the following call stack:
SAPL0VRF FUNCTION SD_ROUTE_DETERMINATION
SAPFV45P FORM VBAP-ROUTE_ERMITTELN
SAPFV45P FORM VBAP-VSTEL_ERMITTELN
SAPFV45P FORM VBAP_FUELLEN
SAPMV45A MODULE (PAI) VBAP_FUELLEN
As you know, shipping conditions are used as a criteria to find a route.
So lets say:
Shipping Conditions A (Air) ---> Route 1 will be determined
Shipping Conditions T (Truck) ---> Route 2 will be determined
Route 2 gets determined. Later, Function SD_SCHEDULING will be called. The following call stack reflects this:
SAPLV03C FUNCTION SD_SCHEDULING
SAPFV45V FORM VERSANDTERMINIERUNG_NEU
SAPFV45V FORM MVERF_AUFBAUEN_WMENG
SAPFV45V FORM MVERF_AUFBAUEN
SAPFV45V FORM VERFUEGBARKEIT_PRUEFEN
SAPFV45V FORM BESTAND_BEDARF_ABGLEICHEN
SAPFV45P FORM VBAP_BEARBEITEN_ENDE_VERFUEGB
SAPFV45P FORM VBAP_BEARBEITEN_ENDE
SAPMV45A MODULE (PAI) VBAP_BEARBEITEN_ENDE
The call of function SD_SCHEDULING looks like this:
call function 'SD_SCHEDULING'
   EXPORTING
     if_schedule_direction   = v03c_backwards
     if_schedule_shipping    = us_vstrm
     if_schedule_transport   = us_trtrm
     if_shipping_point       = us_vstel
     if_weight_group         = us_grulg
     if_loading_group        = us_ladgr
     if_transport_route      = us_route  <<<<<<<<<<<<<<<
us_route contains the route that is determined in FM SD_ROUTE_DETERMINATION.
So only 1 route will be passed to SD_SCHEDULING. In this example, use_route = "2" (Route 2).
My understanding of your issue is that you may have a requested delivery date = 10th April (for example)
10th - 4 days = 6th, a date in the past so system must do a forwards scheduling, and then we inevitably have a later confirmed delivery date. However, before you have the system do a forwards scheduling, you want the system to see if the requested delivery date of April 10th can
be reached with route 1.
10th - 2 days = 8th, so there is no need to execute the forwards scheduling as the customers requested delivery date can be met
It sounds like a reasonable request to me (Route 2 could be cheaper and meet customer's delivery date but if it cant be reached, then use route 1 as you will get goods to customer on time even if it is more expensive), but I do not think it is easily achieveable. The ECC system is just not as clever as that. Maybe the APO scheduling offers some more flexibility regarding this? The ECC system simply uses the route (i.e. transit time of route) as part of the initial backwards scheduling. If dates in the past, it will switch to forwards scheduling.
There is no method by which it will not switch to forwards scheduling if there is another route available. It cannot do this because as far as FM SD_SCHEDULING is concerned, there is only 1 relevant route.
I am not even sure if this is possible via a user exit. The problem is preventing the forwards scheduling in the case of route 2 resulting in past dates. There is definitely no user exit to do this within SD_SCHEDULING. And then there is the possibility of route 1 determining past dates. In the case of both routes determining past dates, which route should be used. So I do not think there is any possibility to so this from within the scheduling function.
Maybe you could implement your own "rough" scheduling logic in EXIT_SAPL0VRF_001. This exit is called in FM SD_ROUTE_DETERMINATION and allows you to determine your own route. And then this route will later be passed to the standard scheduling function. This would be a fairly significant development effort though.

Similar Messages

  • How to disable forward scheduling in Sales order

    Hi SD Experts,
    Can you please provide the solutions for the below requirements.
    Requirement details are below:
    How to disable forward scheduling in sales orders....
    For My sales order type i already configured in customizing that delivery scheduling should only carry out backward scheduling.
    The results is tht no forward scheduling in carried out when material is i stock .. this is ok...
    But when there is no stock and ATP indiates an expected inward movemnt, the system ignores the indicator and carries out forward scheduling anyway.
    Is there any possibility to change this behaviour?
    Appreciate any help....
    Regards
    Sudheer

    Hi
    If you do not want the system to switch to forward scheduling automatically, you can specify per plant in Customizing for MRP, in the IMG activity Parameters for determining the basic dates that the system is to continue the backward scheduling calculation even if the resulting start date lies in the past.
    Thanks & Regards
    Bhaskar

  • MRP-Delivery Schedule for Sales order is not updating in Production order

    Dear Experts,
    I have created Sales order and maintained delivery scheduling, Then Run MRP through MD50,
    We received Planned order then through this we have converted to Prodcution order.
    When we observe the delivery schedule for sales order under assignment Tab in Produciton order which is showing zero instead showing line item of Delivery schedule.
    I am able to see Sales order and Line item but i am not abel to get any delivery schedule line item.
    Please suggest where settings are missing.
    Thanks in advance
    Regards
    Don

    Dear Experts,
    Please provide me solution.
    after Running MD50 transaction against Sales order.
    If I maintained different Scheduling Line Item for First Line item of Sales order.
    The Respective Scheduling Lines should update against Each Production order which has converted from Planned order.
    Thanks in advance.
    Regards
    DON

  • Expected PO Receipts and scheduled out sales orders

    Hi Guys:
    in MRP Net requirements Calculation,
    for Example  If want Consider Schedule out Sales orders( requested Delivery Date 02/02/2012) which is determined by planning horizon( 6 months 06/30/2012) , Since this sales order is within Planning Horizon it will consider for MRP Planning.
    Is it the Same case with PO i.e Based upon the planning horizon PO will be included/excluded in planning?
    Also if for example my PO is due from the Vendor one PO is due in 03/02/2012 and other PO is 09/15/2012?
    Thanks
    Kodali

    Hi Venkat:
    Expected PO receipts that fall within the planning horizon will be excluded or Included in the calculation?
    I think it should be included otherwise you might be placing additional PO's to the vendor?
    Thanks
    Kodali

  • What happens in the back ground when you schedule a Sales Order?

    Gurus,
    What happens in the back ground when you schedule a Sales Order?
    Assemble to Order scenario.
    Edited by: 792050 on May 17, 2011 3:24 AM
    Edited by: 792050 on May 17, 2011 3:24 AM

    If I merge libraries and then back the merged libraries up onto an external drive or DVD, do I just back up the libraries themselves, or do I also back up the original files?
    If you're running a Managed Library, then backing up the Library also backs up the original files.
    I ask because my HDD is getting pretty full. I want to reduce the amount of stuff on it, and the iPhoto libraries are the biggest single consumer of space at the moment (Nearly 100GB).
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD
    P.s. If you're running a Managed library, then it's the default setting, and iPhoto copies files into the iPhoto Library when Importing
    If you're running a Referenced Library, then you made a change at iPhoto -> Preferences -> Advanced and iPhoto is NOT copying the files into the iPhoto Library when importing.

  • Fix Date & Qty Field in Schedule Lines Sales Order

    Dear Friends,
    I want to understand the need and use of the Fix Date & Qty field check in the sales order -> Item -> Schedule Lines.
    Can anybody explain me the need of the same.
    Regards,
    Harsh

    If the availability check for an item determines that the item cannot be delivered fully on the requested delivery date, and, as a result one or more schedule lines have to be created for later delivery dates, the customer can decide whether to accept these delivery dates and quantities.
    You can record the customer's decision either by setting an indicator in the Fixed date and qty field or by leaving this field blank. The field is displayed both on the schedule line overview screen and on the availability screen.
    <b>Customer Accepts the Schedule Line Proposal</b>
    If the customer accepts the schedule lines which are proposed by the system, mark the Fixed date and qty field. The system then transfers the requirements for the schedule lines to material requirements planning.
    <b>Customer Requires Goods Earlier</b>
    If the customer requires the goods earlier than the date that the system can confirm after the availability check, leave the Fixed date and qty field blank. The system then only passes on the requirements for the requested delivery date and does not take the quantities and dates confirmed by the system after the availability check into account. In this case, it is assumed that the requested delivery date can be kept to because, for example, additional production capacity may become free. The system only confirms the sales order once the entire order quantity can be delivered on the requested delivery date. In the subsequent delivery processing, the sales order is only considered to be completed when the entire order quantity has been delivered or when all partial delivery agreements have been fulfilled.
    A fixed item is considered to be completed once the entire confirmed quantity (which can be smaller than the originally requested order quantity)has been delivered. Therefore, it does not make sense to fix the confirmed quantity to 0 as the item is considered to be completed from the start.
    During rescheduling, the fixed quantities and dates are no longer taken into account.
    The same info u can get easily from help.sap.com
    Message was edited by:
            sam masker

  • Post Goods Issue - Tracing backward to update Sales Order & Delivery Docs

    I have a requirement as follows. I need to do a Sales Document change and a delivery document change prior to  goods Issue being done. The situation is to prevent SAP's normal back order processing from kicking off. I am quite confused about which method to use to achieve this. Wether BAPI &/or BDC &/or User Exit ???
    Please help you will be rewarded with points....

    Hello Srinivas
    The business requires that like order line items be consolidated to one line item prior to the order going to the warehouse for picking. this will aid in picking at the warehouse as well as result in the customer invoice not reflecting more than one line item for the same material. In the case where the customer has truly ordered more than a case, i.e. 1 case 2 eaches. The documents in SAP should still reflect 2 line items.
    The business also states that there be a 1 to 1 relationship between sales order and delv note. This means any unconfirmed line items must be closed out after del. note is created for the sales order. The closing out of the sales order will stop SAP from automatically creating a backorder once the unconfirmed line items become available in inventory.
    The business also requires that all partial line items in the delv. due to stock not available at the time of picking (those line items need to be updated) with the pick qty. And the line items which were not picked need to be automatically cancelled out. In addition the order line item must be rejected with a reason code for the line item which were not picked.
    We have a daily IDOC interface which creates shipments and updates delivery qty.
    I hope that clarifies the business. Pls let me know.
    Regards

  • Link between Prod Order and Sale Order schedule line

    Dear all,
    Ours is a MTO (81).
    In Scheduling Agreement / Sale Order , there are multiple schedule lines for a single item .
    Production Orders are generated for every schedule line of the Item.
    The client wants to know (for a custom developed report) , against which schedule line of the Sched Agreement/ Sale Order, the Production Order is generated ?
    This Information can be seen in MD04.But  I am not able to fetch from the tables .
    The schedule line field (KDEIN ) is not updated in AFPO table & the order no (AUFNR) is not updated in VBEP table .
    Say,
    Sale Doc No : 42000506
    Schedule line/Dely date            Order qty          Prod Order No
    06.10.09                                    500kg               100170
    15.10.09                                    300kg               100171
    Pls give your valuable inputs.
    Regards,
    Sheik

    Hi,
    Only Sales Order No & Sales Order Item No is updated in the table.
    Whereas , I want to know the Sales Order Schedule Line no.
    Regards,
    Sheiki

  • Scheduling agreement creation against Sales Order

    Hi All,
    Can we create a Scheduling agreement automatically against a Sales order in Standard SAP? Whenever Sales order is generated, system will be creating a Scheduling agreement automatically in the background for further processing -- is the requirement.
    Or if there is any user exit available please let me know.
    Satisfactory answers will be rewarded.
    Thanks & regards,
    Indrashish

    Hi
    This requirement can be handled with user exit.This can be done by developing customized program.For customized program you need to define a variant for back ground job scheduling or u can use a exit to trigger the customized program.
    you have to pass the details like Materials,Quantity,Delivery schedules from sales order top scheduling agreement creation program.
    Normally, we will use scheduling agreement to generate automatic schedule linesby running MRP for Sales orders or Planned independent requirements.I think u can use this std functionality to map your requirements.
    Regards
    Ramakrishna

  • SALES ORDER SCHEDULING IN APO

    Hello everybody there,
    I am doing availability check in APO (SCM 5.0)
    Sales Order creation date : 20.01.08 
    Requested Delivery date :28.01.08
    Transportation Lead (LEAD condition type in scheduling- APO ) time maintained : 3 days
    MBDAT : 25.01.08
    On 26.01.08, if customer change the RDD to 27.01.08, system pushed the delivery date by 3 days i.e 29.01.08 ( 26.01.08+ 3 days)
    Although there is sufficient receipt available for the material , system is not giving Delivery date 27.01.08 , it gives 29.01.08.
    As the order was booked on 20.01.08 , client has already planned for transportation ( i.e arranging truck and forward agent etc.) but system is again chaNging the delivery date based on the transportation planning date ( LEAD) assuming that user will take 3 days for transportation planning.
    Assumption : No chk Horizon maintained
              No Transit time
    In the above scenario , is it possible to get the Delivery date 27.01.08 or the original one 28.01.08 with any setting in R/3 or APO ? In my case after changing the date , system triggers the ATP automatically ( expected also) and schedule the sales order from the begining i.e changing MBDAT / GI date /Delivery date all.
    Is it possible to retain the original delivery date or the pre-poned delivery date?
    Thanks in advance.

    Hi
    Look for the type of scheduling the system is using.
    The system first tries back scheduling and if in back scheduling it calculates one of the entry point dates( like transportation planning date or MADAT) the system automatically puts this date to current date and shift the scheduling direction to forward scheduling automatically.
    This can lead to moving the other dates in to future.
    Check if its calculating any such dates to lie in the past.
    I guess your transport planning date/MADAT falls in the past. So its moving that particular date  to current date and starts forward scheduling again. Thats the reason why your delivery date is moving to future date further by 2 days.
    Regards
    Mohan V R Chunchu
    Edited by: Mohan V R Chunchu on Jan 31, 2008 8:54 PM

  • Quantity is not getting conformed in sales order

    HI SD Gurus,
    i have one issue we are not able to solve i need your help, it is very urgent,
    My issue:we created sales order but quantity was not getting conformed is sales order even though we have enough stock
    but it was consumed the stock in MD04,
    we ran the SDRQCR21 program but issue is still exist,
    1. we checked all the ATP configuration  every thing is fine,
    2.we replicated the scenario in  quality it is working fine
    3.we try simulated in production but not conformed the stock
    4. total stock is in unrestricted only
    5. no block in sales order
    6. same material working fine with different plant
    7. in same plant different materials working fine
    available stock level in MMBE and MD04 is 330 qty unrestricted
    sales order created for 165
    then stock reduced in MD04 to 165,and sales order displayed in MD04 with quantity 165
    but it was not conforming the schedules in sales order(with any dates)
    I am requesting you to reply ASAP if any one faced the same scenario
    BR,
    CS

    Hi CS,
    Please check the stock availability in CO09. If CO09 shows available quantity as zero then the sales order quantity cannot be confirmed.
    Please review SAP Note Number 89362 - No confirmation despite available quantity/stock for further information on this transaction.
    You will also find further information in this document:
    http://scn.sap.com/docs/DOC-58040
    I hope this helps.
    Kind regards,
    Catherine

  • How to split Sales Order line as per partial availability of stocks?

    During scheduling of Sales Order line, if ATP window shows onhand stocks less then required quantity and balance quantity is promised as per CTP on dates falling outside request dates.
    1) Is there a functionality to split SO lines Automatically basis On Hand Availability?
    2) Can we write a rule to split a line so that staggered shipments can be scheduled in future for quantities promised as per CTP ? (i.e rather than promising 1 date, if capacities permit line quantity is split to start shipments at the earliest).
    Will appreciate for direct fitment or any workaround solution to resolve above issues.
    Thanks

    Hi,
    Try this out. Go to Logistics Execution-Warehouse Management-Activities-Transfers-Processing Performance Data / TO Split
    Step1:
    Define Profiles-Sort profile for TO splitting
    Here, create a new entry of sort profile for your warehouse with field "POSNR" as 1st sort field.
    Step2:
    Define Profiles-Profile for Transfer Order Splitting
    Here, create a new entry of  Profile for TO split for your warehouse & sort profile of step1.
    Step3:
    Control for Performance Data Processing / Define TO Split-Performance data control
    Assign Profile for TO split of step2 to your warehouse, MVT, Source & Destn st. types.

  • Availability check - sales order

    Hi experts,                              
    I've gone through the relevant info, but still hit the issue below. Pls help. Thx.                                                       
    Issue: How to include the created order (not delivered ) when running availability check?                                                       
    Example:                              
    Stock (storage location C) - 1pc                              
    sales order A - 1pc (confirmed in schedule line)                         
    sales order B - 2pcs (1pc confirmed, 1pc unconfirmed)                                                       
    Those two orders are created agaisnt storage location C. No other stocks against storage location C are available, such as on-order stock.                              
    In my understanding, order B cannot be confirmed as order A has been created firstly.                                    
    Background: As the customer just sells the purchased product, he places PO firstly, then sales order following. Thus, he requests new sales order creation to be based on the stock qty, created sales order qty, PO qty to be received & delivered sales order qty.                                                       
    For this sales scenario, availability check with ATP is activated, but not against product allocation. And the check boxes "incl.purchase orders", "include sales reqmts", "include deliveries" are checked in OVZ9 only.                              
    ps. "Check sales requirements" has been checked in Availability check control while "No storage location inspection" has not been checked.

    Dear Cathy
    Can you please reconfirm that the combination of availability check and checking rule in OVZ9 in which, you have selected the box "Include sales reqmts"  is the same value what you have maintained in material master MRP3 view for availability check ??
    If the availability check is same in both the cases, then try to create a fresh order and post the outcome.
    thanks
    G. Lakshmipathi

  • Rescheduling of sale order

    We have following scenario in scheduling of sale order
    1. When sale order is created for the first time , it runs the avl check & the Goods Issue date is determined based on the cAvl control paremeters set in OVZ9 . At that point of time , we don't have any stock & planned receipts .Hence order gets scheduled based on TRLT set in material master
    2. When a planned receipt is created later in system , its date is generally scheduled beyond TRLT of the material .e.g. TRLT of material is 7 days & the planned receipt may be expected to arrive adter 21 days
    3. In such cases , we have to change the Goods Issue date in sale order by running the avl check again .
    Problem : When we run the avl check in sale order again , it takes the TRLT into account & doesn't change the date as per planned receipt date , which is a more confirmed element than TRLT
    How we can achieve this

    Normally the TRLT is longer than any other supply element; this is the basic idea behind it.
    In your example, I don't think hat regular ATP will be enough. You may ned to employ a user exit or use APO/GATP engine.
    Alternatively, use the normal TRLT logic, and make it longer; anyway, how does it look for the customer when you confirm delivery in a week based on TRLT, and a couple of days later you call him to reschedule to 21 days!!!
    Isn't it better to schedule for a month in the first place (TRLT), and then call the customer to anounce that you managed to shorten it to 21 days?

  • Internal Sales Order imported with Line status "Booked".

    Hi Guys,
    Expecting a status of "Awaiting Shipment" in the line status but getting the status of "Booked".
    checked the following metalink notes but did not help
    Scheduling Internal Sales Orders Results in Error - One of the Group Elements or Mandatory Components Failed [ID 368187.1]
    Internal Sales Order Gets Created In "Booked" Status [ID 1357172.1]
    Any Thoughts???

    Guys,
    Issue is resolved.
    Earlier in 11i in ASCP, instance Org defintion is setup for only the required Inv org.
    But in R12 we need to define for all the available Inv organisations.
    Later after running the complete collections and running the ASCP plan resolved the issue.
    Thanks
    Radha.

Maybe you are looking for

  • Weblogic 10.3.2 EJB3 Local Interface in POJO/Helper classes

    Hi, I have a jar file containing all EJB's in application & some Helper classes. I want to access Local interfaces of EJBs in those helper classes. Is there any way I can do it? I've gone through Maxence Button & Jay SenSharma 's blogs about accessin

  • Heating issue

    My macbook seems to be getting extremely hot, at first I thought it was because it would be resting in my lap or on my bed however today in class it began to get really hot again and the fans were extremely loud while I was in a lecture hall. My comp

  • Struggling to find the right setting!

    Hi I use a web based portal for work, and am unable to click on links within as it brings up a message - Are you sure you want to resend the page? Yes/Cancel When I use the portal on a desktop clicking on the links bring up a new page. I know it is p

  • PersistantItems wont go away.

    I'm unchecking persist Items and retracting all nodes from my chat. but there are still items that keep showing up in my app. also have user and sesson dependent items turned off the items are not in the room manager but they show up in my app. i can

  • Get wrong number of credits redeeming iTunes songs

    I have received two different codes that entitle me to free downloads. The first one was for 20 songs, which I entered and then purchased 5 songs, leaving me with 15. When I entered the second code number (which was for 5 songs), the box indicated th