How to calculate Goods issue date based on the time of delivery

Hi SAP Gurus,
I seek your help/suggestion for the given scenario.
The user requires calculating the GI date based on time of delivery.
Based on the delivery priority (like Priority 1= Day 1, Priority 2= Day 2) maintained in customer master, the need is something like below-
1st case= If Retail Customeru2019s delivery orders received before midday (Noon cut off) require to be dispatched on same working day (Day 1)
Wholesaler customer delivery orders received before midday require to be dispatched by the next
Working day (Day 2 Including day of receipt)
2nd case= Retail customeru2019s delivery orders received after midday require to be dispatched by the next working day
Wholesaler customer delivery orders received after midday require to be dispatched by on day 3
Kindly suggest , how to proceed in this. I am new to SAP world so need ur help to tackle this.
Thanks a lot in advance for the valuable inputs.

What I proposed to do was,
a. Create routes like 0 day route, 1 Day route, 2 day route etc.
b. Route determination is based on the Shipping condition of the customer. Put in the shipping condition for the customer as 00 - immediate delivery. 01 - By Truck, 02 - By Rail, 03 - Ship etc
c. Now, put in your route determination in such a way that routes change in the sales order with shipping condition (SC). Like, if the shipping condition is set to 00, then 0 day route comes up. Meaning immediate delivery, if SC is 01, then your normal route by truck picks up. etc.
When the sales order is manually created, you know the time of creation. As route is one of the criteria, the material confirmation happens based on number of days you put in the route to reach the destination. Now that you have the material available for today's delivery, the delivery program can be run to create it, or it can be manually created.
Now, when you configure the route you have to specify 'Transit duration in calendar days'.
When you have the sales order created electronically (say thru EDI), then, you may have to ask them to send in shipping condition. Else, you have to modify the function module Idoc_input_orders in such a way that if the sales order creation time is < 12 PM, then put shipping condition as 00, else copy what ever is there in the customer.
If you do not want to check the time manually when the user creates the sales order, then you may have to use the user exit MV45AFZZ (and I think you can use Save_order_prepare) to check the time and change the shipping condition. By this you will avoid extra coding in Idoc_input_orders and also need not bother if the user changed the route or not.
Hope my explanation helps.
Regards,
Mukund S

Similar Messages

  • Goods issue dates are different in sales order & delivery

    Hi,
    We have a situation where in sales order schedule line tab goods issue date is 21.30.2011
    but in delivery the planned GI date is 28.03.2011.
    There are two line item in the sales order & in both the line items all the dates are same.
    Same route is there in sales order & delivery.
    In delivery Item category avalability check Off is Y(Do not check avail. when reporting results of pick.request)
    All the dates(delivery,loading,Transportation planning) are different .
    waiting for responce.
    Thanks In advence
    Susrikant

    goods issue date is 21.30.2011
    What was the Actual GI date in delivery??  This should be the same as schedule line date.
    thanks
    G. Lakshmipathi

  • How to search xml file data based on the given keyword from html form

    hi,
    i'm new to XML. I have this problem regarding searching within a XML file.
    the
    idea is that my search will be based on the keyword entered
    in
    by the user from a HTML form. the keyword is then used to search all
    the
    question nodes and the choice nodes within a XML file. once the match
    is
    found, i will have to display the results.
    But i don't know how to do so - especially the part of searching xml file.
    Can
    anyone help me in this? Your help is much appreciated.
    Edited by: Moti_Lal.D on Apr 4, 2008 7:28 AM

    yeah.. what i was trying to do is
    i have one xml fine. then i have to read all the tag values say
    <book>
    <title>Java</title>
    <author>agarwal</author>
    <price>200</price>
    </book>
    <book>
    <title>Xml</title>
    <author>saxmann</author>
    <price>300</price>
    </book>
    i can read the tag values like this
    File file = new File("dom.xml");
    try {
    DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    Document doc = builder.parse(file);
    NodeList nodes = doc.getElementsByTagName"book");
    for (int i = 0; i < nodes.getLength(); i++) {
    Element element = (Element) nodes.item(i);
    NodeList title = element.getElementsByTagName("title");
    Element line = (Element) title.item(0);
    what i want is i may give any xml file
    like File file = new File("xxx.xml");
    (it may be one level/two level/3level tagged one)
    then the i should read all the tag values and store them in some array. Then when i enter some character from keyboard (say "a") then it has to show all the tag values starts with "a" and display them.
    i guess u understand my problem.

  • How can I safe my data back from the Time capsule to iphone and macbook?

    Hi,
    last weekend we were robbed while being on vacation and iphones and macbook air got stolen. Good thing was that at home we had a time capsule and our normal macbook. As soon as we get the new iphones and the new airbook we want to get our itunes and apps and datas back to the iphones and airbook ... can somebody tell us how to re-safe or back-safe stuff from the time capsule back to the equipment?
    Thank you ... I feel so "naked" without my phone :-(
    Virtualkate

    Sorry about your loss. Follow the directions here to use Time Capsule to restore your new Air to the state your old Air was in when stolen. When you first connect your new phones, you'll be given the option of restoring from the backup of your old phones or setting up as new. Restore from your previous backups, followed by syncing your content back to your phones. You should be good to go. Maintaining current backups makes this a piece of cake.
    http://support.apple.com/kb/HT1177

  • Planning Good Issue date and loading date

    Hi All,
    How I can get the planning Good issue date? I found that the loading date is the same as the planned Good issue date, what's the loading time?
    As what I understanding, loading date + loading time = Good issue date,  But I am not sure how to calculate the planned Good issue date.
    thanks,

    Hello Friend,
    It is determined in Shipping Point configuration.The path is as follows SPRO--> Enterprise Structure >Definition>Logistics Execution-->Define, copy, delete, check shipping point and go in detail the concerned shipping point.

  • Billing date(fkdat) in sales order item is not copied from Goods Issue Date

    Hi All
    we are facing problem at item level billing date field.This field should be filled with the GI Date in schedule lines shipping tab.
    but, it(billing date) is not being filled with goods issue date but, with the required deliver date at sales order header.
    Please give me a solution and the root cause. This is urgent as business is halted.
    Thanks
    Kumar

    Lakshmipati
    This is from SAP Screen
    "If invoice dates are defined for the customer, the system proposes the billing date from the invoice date calendar. If no invoice dates are agreed, then the actual goods issue date is formed on the basis of delivery related billing. In order related billing, the billing date of the order forms the basis of the billing date."
    earlier it is happening as desired.i.e., billing date=GI Date.
    but, as of now it is taken from the required delivery date.
    Please give me solution
    Kumar

  • New planned goods issue date during delivery creation due to changed route

    Hello All,
    I have defined 2 routes with different values for transit time and transporation lead times. I have configured routes such that in order creation - route A is determined and while delivery creation due to weight group - delivery B is determined.
    Now for Route A i have maintained transit time of 3 days and Transportation lead time of 4 days and for Route B it is 1 day each.
    Delivery scheduling is active for the order type.
    Now when i create the order with a delivery date of say 05/24/2010 then (route A with transit time of 3 days) is determined and the planned goods issue date of 05/21/2010 is in the order.
    Now while creating delivery (Route B which has transit time 1 day) is determined due to the weight group. But the planned goods issue date is still the same 05/21/2010 as in order.
    I am assuming that since the route B has a route of 1 day so the planned goods issue date should be re-determined to 05/23/2010? IS there no scheduling done during delivery creation even though route and subsequently transit time has changed?
    Please let me know the answer to this...
    Thanks
    Shobhit

    Hi ,
    You can use TA - MASS . Enter object type - BUS2032(for sales orders) on initial screen and select sales item data.
    Next screen enter selection fields like sales order no and items. After giving order no and item range , execute and enter all new values for any item data fields. After pressing button "carry out mass change", don't forget to press save button.

  • Deliveries and goods issue date

    Hi,
    can any one tell me here the name of the table which can show the details of the deliveries against the goods issue date along with the sales order?
    Thanks,
    Ravi

    You can get these details in LIKP/LIPS and VBFA.

  • How to fetch post goods issue date and sales order creation date

    Hi All,
    How to find out the difference between SD Sales Order Item Creation Date and final Post goods issue Date. I would like to know how to fetch those dates and what is the relationship between the tables from which i will get the dates.
    Please let me know the solution .
    Thanks in advance.

    Hi,
    Sales order creation date is when u raise a sales order in favor of the customer using VA01.......using ATP logic system purposes the material availability date....
    after saving ur sales order...when u raise the Delivery using VL01n  w.r.t to OR...than u have to perform picking ....In the picking Tab...specify the amount to be picked than press Post Good Issue....means the goods left the company premises ..
    You can the fetch the values using tables-  Use T code   SE12  or SE16
    Vbak-----order header
    Vbap-----order item
    Vbek-----order schedule line
    Likp-----Delivery header
    Lips----Delivery item

  • VA01: Align Good issue dates existing on Schedule line table.

    Hi Experts,
         I will exemplify my question in order to make easier to understand it. I have a sales order with two lines. Both lines will have different routes determination due to those products have different classification (the first is non-dangerous and second on is dangerous). Dangerous items will have more transit time to get the customer than non-dangerous items. When we have different routes per line items in the sales order, the system will calculate schedule line dates (good issue date, material availability date) differently. However, what the Business wants is to deliver the goods at the same good issue date (VBEP-WADAT). So to get this approach we will have to:
    - Check field “complete delivery indicator).
    - Set the route for non-dangerous good as same as dangerous good.
    Both changes described above, it would be performed via USEREXIT. However, my problem is: When the non-dangerous item is the first item of the sales order, the system does not trigger again the calculation of the schedule line dates based on the new route (XVBAP[1]-ROUTE).
    I have found out the routine that changes the schedule line dates, but I do not know how to use it. Do you have any other solution?
                PERFORM VERSANDTERMINIERUNG_NEU
                  USING DA_MBDAT    DA_MBUHR
                        DA_TDDAT    DA_TDUHR
                        DA_LDDAT    DA_LDUHR
                        DA_WADAT    DA_WAUHR
                        DA_EDATU    DA_EZEIT
                        TVAK-TRTRM  TVAK-VSTRM
                                    TVAK-TENUR
                        DA_BRGEW    XVBAP-GEWEI
                        DA_GRULG    MAEPV-LADGR
                        XVBAP-VSTEL XVBAP-ROUTE
                        XVBAP-LPRIO
                     XVBAP-POSNR XVBEP-ABART             "DELETE HP_322509
                      XVBAP-POSNR                          "INSERT HP_322509
                      XVBAP-VBELN                          "INSERT HP_322509
                      XVBEP-ABART                          "INSERT HP_322509
                       XVBEP-BDART XVBEP-PLART                  "P40K039864
                        DA_SUBRC
                        VBAK-VSBED
                        MAEPV-TRAGR
                        TVAK-RFPA_SW
                      XVBAP-MATNR                          "INSERT HP_322509
                      XVBAP-WERKS                          "INSERT HP_322509
                        XVBAP-SOBKZ
                      LF_MENGE                             "INSERT HP_322509
                        XVBAP-LOGSYS
                  CHANGING DA_AULWE.

    Hi Marcelo,
    You can try with User Exit MV45AFZZ (USEREXIT_SAVE_DOCUMENT_PREPARE).
    Try with XVBEP. Loop at this table and copy the WADAT into EDATU.
    Thanks,
    Mandar

  • Collective Invoice - Actual Goods Issue date

    Hi Friends,
    Collective invoice topic has been discussed many times but I didn't find exact solution to solve my issue.
    From sap help and few other threads it is learnt that Billing type, Billing date, Payer, Billing unit, Terms of payment, Incoterms, Letter of credit should be same to have collective invoice. During my tests it is understood that apart from those Actual Goods Issue date (Post Goods Issue) date should be same to have collective invoice for different sales orders/deliveries. In my tests SAP didn't consider Billing date but it did consider Actual GI date. In other words, even the billing date and other requirements are same invoice split happend due to different Actual GI date. However collective invoice created even though the billing date is different but Actual GI date is same.
    My user creates one sales order and one delivery for a customer once in a week (so 4 orders/deliveries in a month) and creates Invoice by end of the month with collective invoice. So based on the above tests I can ask the user to create sales orders, deliveries every week but perform Post Goods Issue month end and then create invoice so that collective invoice can be done. But the issue is they want to do the Post Goods Issue every week because the stock levels should reduce on weekly basis. So how can we create collective invoice even though the Post Goods Issue is done weekly (so Actual GI date will be different)
    Any idea? Please let me know if further information required.
    Thank you

    Hi,
    You may consider writing a routine under copying requirements so that invoice is not split even if the Actual GI date is different.
    Consider the following [thread|Collective billing; for more info.
    Regards,
    Amit

  • Change goods Issue date and delivery date

    while crating Sales document through VA01
    i want  to replace goods issue date (VBEP-WADAT ) with my Z calender date.
    so that delivery date(ETDAT) aslo should chaged automatically ( bcz iof the change in goods isuue date ).
    how to achive this ?
    i tryied in  Program    program of MV45AFZZ/ MV45AFZB in the User Exists mentioned below:
    1.     Form Userexit_Check_VBEP
    2.     Form userexit_move_field_to_vbep
    i was able to change goods issue date (VBEP-WADAT )  but  not refleting in output screen,..
    regards,
    ramesh

    Hi Venkat,
      Even it did not update in my user exit when I update from VBEP-WADAT.  So, I did back calculation (considering route lead time) and updated Delivery date field VBEP-EDATU.  It is simple.  I have given the sample code as below.
       if lines( xvbap[] ) = 1 and VBEP-ETENR = '0001' and            "Calculate RDD while the first line item entered
         vbap-route <> space and <<your GI date>> is not initial.    "Only when header RSD is filled
          select single TRAZTD into ws_traztd from tvro
                where route = vbap-route.
          ws_days = ws_traztd / 24 / 10000.
          if ws_days <> 0.    "Only when Transp. Lead time is maintained ( So, will not affect other entities )
             select single FABKL into ws_fabkl from T001W
                where WERKS = vbap-werks.
             CALL FUNCTION 'WDKAL_DATE_ADD_FKDAYS'       "Calculate as per Factory calender
                 EXPORTING
                   i_date        = <<your GI date>>
                   i_fkday       = ws_days
                   i_fabkl       = ws_fabkl
                 IMPORTING
                   E_DATE        = ws_date
                  E_FKDAY       =
                 EXCEPTIONS
                    ERROR         = 1
                    OTHERS        = 2
             IF sy-subrc = 0.
                VBEP-EDATU = vbak-vdatu.   "copy to the first line item
             ENDIF.
          endif.
        endif.    "Route days

  • Different Request Delivery Date & Goods Issue Date

    Hi SD Experts,
    Please find my queries as below:
    1. How do i configure the system to propose delivery date as today's date? Currently the system now always propose tomorrow's date but i want it to be today's date. Assuming today is 21st December but the system is always giving 22nd December. Anything that can be done inside SPRO? Inside VOV8 i just tick 'Propose Delivery Date' but i left the box empty for 'Lead time in days'
    2. Assuming today is 21st December, and i created a SO. The goods issue date is always tomorrow's date as well which is 22nd December. I want the goods issue date to follow 'Request Delivery Date'
    3. In conclusion, why is 'Request Delivery Date' is always tomorrow's date?
    Anything that can be done? Please help
    Thanks!
    Regards,
    LEE
    Edited by: YEOW LENG LEE on Dec 21, 2008 12:10 PM

    Hi lee
    A request delivery date comes if you maintain the lead time in days in VOV8 , GR time , In-house production time RLT in days in MMR , based on that the you will get the requested  delivery date If you keep the fields blank  then you will get the request delivery date as todays date only but if you have assigned factory calendar in shipping point and if you create sales order on Saturday (19/12/2008) then the delivery date will be on Monday i.e., 22/12/2008.
    Now if you want the goods issue date as different date then the delivery date should be different ,if you fill any one feild and check then you will get the different goods issue date
    Coming finally you are getting a request delivery date as tomorrow's date because of the factory calendar you have assigned to shipping point and to the CMR
    Regards
    Srinath

  • Last Goods Issue Date & Last Goods Receipt Date

    Hi ,
    I would like to know in which table (and fields) I can find the "<b>Last Goods Issue Date</b> " & "<b>Last Goods Receipt Date</b>" based on Material Code, Plant and Storage location.I have to prepare a existing stock report for slow moving material.
    Thanks.

    Hi,
       Check table LIKP deliver header and LIPS deliver Item
    Regards,
    Prashant

  • Proposed goods issue date, material availability date

    Dear All,
    where to configure the goods issue date & material availability date.
    regards,
    Murugan

    Hi,
    For determining the dates, you have to put the availability checking group in the Salesorg/plant view of material master.
    After that you have to put the number of days(planned delivery time,GR processing time) in the MRP2 view
    of material master and if the stock is not availble then the system will determine dates based on these number of days.
    You can also select the default delivery date by putting the number of days in the configuration of sales document type VOV8.
    Reward points if it helps.
    Regards
    Karan

Maybe you are looking for

  • Doing a goods receipt for a customer material that is ASEQ status

    We are needing to find a way to be able to do a goods receipt for a child part in ASEQ status.  Most of our customers will send in their part after disassembling it themselves.  Since we can not receive the part our present process is to dismantle so

  • HT1296 Events entered in my iPhone 3GS will no longer sync to my Outlook 2010 calendar - what's up?

    Some change in iOS I suppose makes it so events entered in my iPhone 3GS will no longer populate my Outlook 2010 calendar when I sync the devices through iTunes.  It used to be that events entered in each place would populate the other locationg when

  • Nvidia Optimus on a Lenovo Y580

    Greetings folk! I'm trying to get optimus workings on my Lenovo Y580 laptop. I had it working a few months ago, but I ended up having to format and reinstall reciently and now I can't seem to get it working with the latest version, I think I may be d

  • Table for Customer Duplicate Invoices?

    Hi Please help me about the following Table "BSIP" is used to check Vendor Duplicate Invoices what table we use to check Customer Duplicate Invoices. Help will be appriciated. Kind Regards Kishore

  • Another Car Stereo Question.

    I know many of you guys still have problem connecting iphone to car stereo and there's no clear solution for this issue. But,i'm still posting the question about this. O.k. Here's thing. I've been connecting 2nd gen nano to Alpine Car stereo using Au