SD_SCHEDULING

how to initializing thedeliveryheader dates in the delivery using function module SD_SCHEDULING?

You can use a VOFM routine to call SD_SCHEDULING, force forward scheduling and pass today's date / time as the material availability date.

Similar Messages

  • Function module SD_SCHEDULING: delivery date calculation factory calendar

    Hi,
    When I create or change a sales order, system calculates the delivery time and date (ETDAT) using transit duration and factory calendar. Currently factory calendar says that transportation leaves every Monday, Wednesday and Friday. Unfortunately, function module SD_SCHEDULING calculates the delivery date using factory calendar dates, i.e. <b>NOT</b> using working dates.
    Function module reads the factory calendar from table TVRO (Routes) and field SPFBK (Factory calendar key) in subroutine GET_CUSTOMIZING, and saves factory calendar id in CS_SCHEDDU-TRANSIT_FC. The calculation itself is done later in function module DATE_CONVERT_TO_FACTORYDATE.
    For example, if transit duration is 3 working days, function module calculates the delivery date using Monday (first day), Wednesday (second day) and Friday (third day). Thus, the result is Friday, which is wrong. Result should be of course Wednesday (Monday first day, Tuesday second day and Wednesday third day).
    I'd like to use working days instead of calendar days. I am planning to recalculate the delivery date in some user exit, but before I start coding, I'd like to hear your opinion: <i>Is it possible to use working days instead of calendar days when calculating delivery date?</i> (I believe it must be, since my case is very normal). If it is, I assume that this can be achieved with IMG, but how and where?
    I am using SAP R/3 Enterprise.
    Regards,
    Jarmo Tuominen

    Hi jarmo,
    1. DATE_CHECK_WORKINGDAY
       Probably this FM may be useful to u.
    2.
    CALL FUNCTION 'DATE_CHECK_WORKINGDAY'
            EXPORTING
              date                       = d
              factory_calendar_id        = '01'
              message_type               = 'I'
            EXCEPTIONS
              date_after_range           = 1
              date_before_range          = 2
              date_invalid               = 3
              date_no_workingday         = 4
              factory_calendar_not_found = 5
              message_type_invalid       = 6
              OTHERS                     = 7.
    regards,
    amit m.

  • Error while processing sales order as factory calendar missing.

    "factory calendar missing or error in factory calendar".iam getting this error while processing sales order even though i have assigned it to shipping point and plant and sales org.

    Hi Malik, How are you? I'm sorry to trouble you,
                   Let me introduce, I'm Daniel, and I saw your fantastic asnwer in
    the topic "How to update Factory Calendar in SRM", and might I have the same
    problem. It's with the "factory calendar".
    In transaction va02 when I choose a Delivery Date, and I sent it to process, as
    a result in the "shipping tab" it calculated to the first item one date, and to
    the rest one date different.  I don't know What it happen?
    I debugged the program and I saw that to the first item use to calculate the
    date is the function  'APO_SCHEDULING', and to the rest item use
    'SD_SCHEDULING', and until here I come.
    How can I do to what the dates calculated are the same? or What would be the
    problem?
    I need the dates calculated are equal.
    I looked at it's using two "factory calendar" which are "J4" and "C2". Is this
    correct?
    Thanks In Advance,
    My best regards,

  • To Change Delivery Schedule Dates coming from Purchase Order

    Hi Gurus,
    My requirement is i need to change the Delivery dates( Picking date, Transp Planning date, Loading date and Planned GI date ) . The delivery is being made by the Purchase Order through transaction VL10B .The source dates are the dates from the PO. The dates are to be copied for the condition that the order should be of ZDL type and delivery ZXN1. Now there is a routine 301 for this condition .
    I tried to change the dates in this routine but these dates are overwritten by a function module SD_SCHEDULING .
    So is there any other method or exit or any other routine for this.
    I would like to have a  copy of the following dates :
    u2022     Mat. Staging(PO) = Picking
    u2022     Transp. Planning(PO) = Transp. Planning
    u2022     Loading(PO) = Loading
    u2022     Goods Issue(PO) = Planned GI
    u2022     GR End(PO) = Delivery
    Please advise.

    Hi,
    Following are the Exits for VB10B
    V02V0001            Sales area determination for stock transport order
    V02V0002            User exit for storage location determination
    V02V0003            User exit for gate + matl staging area determination (headr)
    V02V0004            User Exit for Staging Area Determination (Item)
    V50PSTAT     Delivery: Item Status Calculation
    V50Q0001            Delivery Monitor: User Exits for Filling Display Fields
    V50R0001            Collective processing for delivery creation
    V50R0002       Collective processing for delivery creation
    V50R0004      Calculation of Stock for POs for Shipping Due Date List
    V50S0001      User Exits for Delivery Processing
    V53C0001      Rough workload calculation in time per item
    V53C0002      W&S: RWE enhancement - shipping material type/time slot
    V53W0001     User exits for creating picking waves
    VMDE0001     Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002     Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003     Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004     Shipping Interface: Message SDPACK (Packing, Inbound)

  • Where-Used List: Modifying SAP standard function module

    Hi,
    We have decided to modify SAP standard function module SD_SCHEDULING. But before that, we need to understand what impact this modification will have in the system. We will also estimate the risks with this modification.
    Therefore, I have taken Where-Used List for this function module. We are aware that this list is not comprehensive.
    Do you know any other way we could use to understand better what impacts this kind of modification may have? My colleagues say that this is the only way.
    Thanks in advance for your help.
    Regards,
    Jarmo Tuominen

    Hi Jarmo,
    Try this
    1). Goto Se16 and check the contents of table 'CROSS'.
    2). Enter 'F' in the first selection screen field
    3). In the NAME field enter the Function module SD_SCHEDULING and execute.
    4). The list will give you where all the FM has been used.
    Kindly note this is almost the same as doing a where used list. The where used list will only work correctly if the 'Update Navigation Index' works correctly in your system. So just to ensure the result of your where used list you can follow the above steps. This does not require the Update Navigation Index.
    Hope this helps
    Cheers
    VJ

  • Posting a confirmed delivery date to web

    Dear All.
    We'd like to be able to promise a customer confirmed delivery date to the web based on SAP ATP.  This should take in to account current ATP, and the customer's delivery service.  
    We've been reviewing bapi_material_availability.  This seems to be promising based on availability very well.
    However, what I'm not seeing is any transit times from the route, pick/pack time, etc.... taken in to account.  
    Does anyone know, should this bapi provide this and possibly we are using it incorrectly?
    Or is this bapi limited to only providing ATP info only?  Do we need to call SD_SCHEDULING as well.
    Is there an easier way to provide a confirmed delivery date to the web?
    PS - there's also bapi_salesorder_simulate.  But it's more complex for the developers to use, and performance is not as good.  But maybe this is the only alternative.

    Material availability BAPI provides only ATP (same as CO09 pretty much). To my knowledge, there is no function that would provide ATP + transit time, etc. You would need to use ATP plus something else (perhaps your own code, based on the specific business requirements), shouldn't be too difficult IMHO.
    There could be an Enterprise Service that provides this functionality, but it might require additional work to implement.
    In any case, ATP + estimated transit time hardly seems a "confirmed" date to me. Many web sites provide "in stock availability" and transit times separately. E.g. maybe the customer would want to pay extra for faster delivery, who knows.

  • InterCompany STO Delivery Date

    I have one Intercompany STO with four line items. Two deliveries are getting created. Transportation Group, receiving plant are same. Delivery date in shipping tab is also same. Delivery date in OBDs are  different. Kindly help.
    Regards,
    Ram.

    Hi,
    When you create the ourbound the delivery, the system checks the existing schedule line under "delviery schedule" tab.  and SD scheduling will recalcualte all date in function SD_SCHEDULING.
    Please check your "delviery schedule" tab, also, please check document http://service.sap.com/sap/support/notes/1469092
    BR

  • Delivery date in inbound delivery

    Hi
    WE have the following scenario
    WE create a inter-company STO.  Outbound delivery is created against STO and then we do PGI.
    Suppose planned delivery dt of OBD is 10-jan-2011 and actual PGI is done on 18-jan-2011.
    After PGI we create inbuound delivery in receiving plant.  In inbound delivery, we are getting delivery date as planned delivery date of outbound delivery i.e. 10-jan-2011.  But we want actual PGI date i.e. 18-jan-2011 in delivery date of inbound delivery.
    is it possible?  Please suggest how can we do this?

    Hi,
    I think the issue is not related to inbound delivery. Because you probably would not only have delivery date at inbound delivery equal to PGI date. Instead it should be PGI+transit time. Hence, I believe what you should focus is to get planned delivery date corrected at your outbound delivery during PGI.
    I do not think standard config supports rescheduling of planned dates at delivery during PGI (even if you setup rescheduling type 'A' at your delivery type). But you can always call SD_SCHEDULING FMs to get new delivery dates and get those posted from outbound to inbound deliveries.
    Regards,
    Dominik Modrzejewski

  • SO Delivery date change when item category is modified

    Hi expert,
    When i change the item category on my SO, the delivery date change.
    Can you please give me the configuration, or exit to check how the delivery date is calculated?
    Regards.

    - Set a breakpoint at function module SD_SCHEDULING
    - Change your item category
    - This should trigger your breakpoint (if SD_SCHEDULING is changing the delivery date)
    - Post screenshot of call stack back here.
    Looking at the call stack will give us an idea of why a new scheduling is triggered.
    If SD_SCHEDULING is not called, then I assume it must be a user exit causing the issue - check your coding in the SD user exits of include MV45AFZZ.

  • 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.

  • MDVEX table in order creation (VA01)

    Hi,
    Can anybody let me know , where does the table "mdvex" gets populated from during order creation (VA01) ?
    I tried debugging , but cudn't figure out.
    Thanks!
    -Faria

    Hi Faria,
    Delivery date is calculated by scheduling. FM sd_scheduling is the one that calculated delivery date LFDAT. Requested Delivery date is set to this FM then based on .The system calculates the material availability date by working backwards from the customer's requested delivery date, taking into account how much time is needed for delivery-related procedures, such as picking, packing, loading, and transportation. All these times are defined in the routes and factory calendar. Per the settings you have in the customising , a new delivery date is set. After this FM, FM availability_check_controller is called. If the stock is available on the delivery date MDVEX will be filled.If the stock is confirmed on late date then scheduling is called again and new delivery date is set based on the parameters.
    Hope this information helps
    Thanks
    Amber

  • How to update Factory Calendar in SRM

    Do we need to have Factory Calendar updated in SRM as currently it shows valid to 2010?
    My understanding is that this is only for ECC. What is Factory Calendar used for in SRM? How do I update/ extend it?

    Hi Jagdish, How are you? I'm sorry to trouble you,
                   Let me introduce, I'm Daniel, and I saw your fantastic asnwer in
    the topic "How to update Factory Calendar in SRM", and might I have the same
    problem. It's with the "factory calendar".
    In transaction va02 when I choose a Delivery Date, and I sent it to process, as
    a result in the "shipping tab" it calculated to the first item one date, and to
    the rest one date different.  I don't know What it happen?
    I debugged the program and I saw that to the first item use to calculate the
    date is the function  'APO_SCHEDULING', and to the rest item use
    'SD_SCHEDULING', and until here I come.
    How can I do to what the dates calculated are the same? or What would be the problem?
    I need the dates calculated are equal.
    I looked at it's using two "factory calendar" which are "J4" and "C2". Is this
    correct?
    Thanks In Advance,
    My best regards,

Maybe you are looking for

  • Master warranty

    Dear sir, pls give the usage and functions of Master warranty in equipment , and counter in the creation of  T code of BGM1 Thanks & Regards SM Charles ediwn

  • Cannot install Windows XP on HP Probook 450 G1

    Everytime i try to install windows XP i get a blue screen. Having gone through other forums it seems that  i have to change the Hard disk SATA device mode (AHIC) but cannot change in Bios Advanced. Can anybody help who had the same problem? Thanks in

  • Nokia N8 with Belle : where is the scroll menu to ...

    It may sound like a dumb question but after the troublesome update to Belle ( it deleted many apps from my phone, and also my phonebook and mixed up things here and there), I am not able anymore to find the scroll menu where you can see the open apps

  • Adding iTunes playlist as separate file in iDVD

    I am creating a DVD using video created in iMovie. In addition to the movie, I would like to include a separate file of the music (something like a soundtrack in the form of an iTunes playlist) that can be accessed through the main menu. I have not b

  • Standby DB recovery in case of block corruption

    Hi all, I have a question,can we recover the physical standby database if we take rman backup of rpimary db and restore it to the standby db.Please suggest me...