Prevent past date entry on the delivery date field

Hi Guys,
I was wondering whether it is possible within standard SAP Business one 8.8 to prevent users from entering past date in the delivery date field on the Sales order screen.   I have people making mistakes by entering 10/10/2010 instead of 10/10/2011.  This caused problems with reports etc..
Is there a formatted search query i can create to warn/alert users with a message stating incorrect date entered? Please advice best course of action?
Regards
nick

Deepak,
The following code is already in this section?  Can i just add Gordon query below the last "END" statement?
--    ADD   YOUR  CODE  HERE
declare @islocked int
select @islocked = 0
if(@object_type = '17' and @transaction_type <> 'A')
select @islocked = U_LockedForEdit from [@A1WMS_Staging] where U_objType = '17' and U_docEntry = @list_of_cols_val_tab_del
if(@object_type = '22' and @transaction_type <> 'A')
select @islocked = U_LockedForEdit from [@A1WMS_Staging] where U_objType = '22' and U_docEntry = @list_of_cols_val_tab_del
if(@object_type = '202' and @transaction_type <> 'A')
select @islocked = U_LockedForEdit from [@A1WMS_Staging] where U_objType = '202' and U_docEntry = @list_of_cols_val_tab_del
if(@islocked <> 0)
begin
select @error = 999
select @error_message = 'Order Cannot be Updated/Canceled/Deleted as it is Locked in WMS'
end

Similar Messages

  • How to get the Delivery date in PO line Item in SAPScript

    Hi Gurus,
    I am working on PO Script (MEDRUCK). I copied the Standard to a Z form. ZMM_MEDRUCK, Now I need to print the the Header text at the end of MAIN window.  I put Iem number along with the other line Item informmation like stanadrd PO Script MEDRUCK. I also want to show the delivey date with line Item, so Itried to use EKET-EINDT but it is returning the delivery date of last line item, means while printing the first line and other information it is showing the delivery date of the last line item, I tried with the  PEKPO-EINDT it is also not working.
    Can any body suggest me how i can get the delivery date for the respective line Item  ?
    Regards
    Sony

    actually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
    For Example u can use this code.
    To print you have write the this code in Script item level printing window "MAIN" window
    Following perform is called to get the line item delivery date in PO
    {/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
    /: USING &EKPO-EBELN&
    /: USING &EKPO-EBELP&
    /: CHANGING &DEL_DATE&
    /: ENDPERFORM}
    {* Dellivery date &DEL_DATE& }
    write the below code in the Z program "ZPerform_prog"
    { FORM get_del_date  TABLES in_par STRUCTURE itcsy
                             out_par STRUCTURE itcsy.
      READ TABLE in_par WITH KEY 'EKPO-EBELN'.
      CHECK sy-subrc = 0.
      $_po_no = in_par-value.
      READ TABLE in_par WITH KEY 'EKPO-EBELP'.
      CHECK sy-subrc = 0.
      $_po_line = in_par-value.
      SELECT *
      FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
        $_del_date = eket-eindt.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
          EXPORTING
            date_internal            = eket-eindt
          IMPORTING
            date_external            = $_del_date
          EXCEPTIONS
            date_internal_is_invalid = 1
            OTHERS                   = 2.
        READ TABLE out_par WITH KEY 'DEL_DATE'.
        CHECK sy-subrc EQ 0.
        out_par-value = $_del_date.
        MODIFY out_par
                    INDEX sy-tabix.
        CLEAR : $_po_no , $_po_line ,$_del_date.
      ENDSELECT.
    ENDFORM.                    "GET_DEL_DATE }

  • Can we receive goods before the delivery date

    Hi all
    Can we receive goods before the delivery date i.e.
    PO is created on 10/04/2008 and in the PO delivery date is given as 14/04/2008.
    But if the vendor sends me material on 12/04/2008 system allows me to post the material.
    Is there any settings to restrict GR before the delivery date.
    With Rgds
    Vinod

    Thanks for your information
    But I dont have enough space to store the material if he delivers before the delivery date.
    In this circumstences how can i prevent the system to post the GR.
    With Rgds
    Vinod

  • Sales order cannot be created  for the delivery date before 20.10.2008

    when i create a sales order today (18102008) sales order cannot be created  for the delivery date before 20.10.2008
    how the system is checking the 2 days duration for delivery date - which table is having this duration days.
    is it dependent on sales order type.....
    actually i checkeup in V0V8 - even then i couldn't  solve this error when i am creating the sales order.
    Pls suggest

    Dear Selvamuthu
    In normal circumstances, you can create as many as sale orders as you can irrespective of delivery date, and system will not  prevent to create unless you apply some user exit for some reason.
    Check any user exit is applied for that sale document type where some logic would have been written in such a way that if stock is available, sale order can be created.
    thanks
    G. Lakshmipathi

  • How to adjust the delivery date in PR generated by MRP

    Hi.
    We use MRP to generate PRs. The PRs are generated and the delivery date is also being calculated based on PR processing time + planned del. time + GR process.time.
    However my requirement is that the delivery date in the PR should be always Tuesday for the week we need the parts.
    E.G. Say MRP run has created a PR with delivery date as 28.02.2008, then system should automatically shift that date to Tuesday's date 26.02.2008 for that week.
    IF PR delivery date as per MRP is say 03.03.2008 (Monday), then system should automatically make it to Tuesday's date 04.03.2008.
    so in short , each and every PR generated for any vendor , the delivery date should be always the tuesday's date in front of the week we need the parts.
    So is there any standard setting or functionality available in SAP to achieve the same.?
    IF not, then is there any user exit to achive the same.?
    Pls help.
    Thanks and regards

    Can you please help me by informaing how can I run Time phased planning.
    My requirement is that MRP Run should give me the PRs with delivery date as Tuesday. Say planned del.time is 28 days . Pur.proc.time is 2 days and GR procee.time is 1 day.
    I want to run MRP every week. and. How can I set up period and what to set.?
    Questions:
    1) Calculation rule: Weekly with 'perid begins on (2)  Tuesday?
    2) Minimum period: 1 day. Is it right?
    3) Valid from and valid to date: I am specifying as per my requirement: (how much it should be?)
    4) How to run MD03.
    Any general guideline on how timephased planning woks?
    Like we need to run every week on spcified day , it generates requirement for the weeks in question only , or etc etc. .
    I have never used timephased planning. So can you please help me.
    Thanks
    Bharat

  • System does not propose the delivery date based on factory calendar

    Hi,
    I am creating a sales order for a delivery date for this sat which is (2/22/09)
    I have maintained 2 separate calendars for
    1) shipping point
    2) for the route
    The route has a transit time of 1 day and the calendar has sat and sunday as non working.
    the Shipping point has a pick/pack time of 1 day and the calendar has sat and sunday as non working
    The material is available in the warehouse
    Now when i create this sales order i enter the delivery date as 2/22/09, the system does not propose me the delivery date of monday (i.e 2/23/09) It accepts the 2/22/09 delivery date.
    In the schedule line i do see the date as 2/22/09 only.
    The delivery was created with the following dates
    Picking = 2/17/09
    Transportation Planning = 02/18/2009
    Loading =02/18/2009 
    Planned GI= 02/18/2009
    Delivery Date = 02/22/2009
    How can the system give me the delivery date of a sunday when the calendar doesnt allow sunday as working day.
    Also the route time is 1 day in transit so i am not sure why the system is proposing a 3 day transit time?
    Can any one explain the behaviour of SAP for the delivery date logic

    Dspsac,
    Delivery date can be any date.  For instance, if your customer insisted on a Sunday delivery, you would accommodate him, regardless of any calendar.
    From the delivery date, the system counts backwards USING THE FACTORY CALENDAR ASSIGNED TO THE ROUTE by the number of days in the route.  You have to consult the FC assigned to your Route to determine if the GI date has been properly calculated.
    From the GI date, the system counts backward Pick/pack time, using the shipping point calendar, to arrive at Material availability date.
    Calculations are explained in SAP online help
    [Transportation and Delivery Scheduling|http://help.sap.com/erp2005_ehp_04/helpdata/EN/dd/5607e7545a11d1a7020000e829fd11/frameset.htm]
    Regards,
    DB49

  • The delivery date in Sales Order VA01

    Hi,
    I am wondering how the sales order process goes in term of business given that I am not an SD person.
    Normally, when a customer rep receive a sales order, the customer will request the date in which the goods are require.
    Thus, during the sales order creation, the person will key in the material, order quantity, and the delivery date.
    Example, customer wants the goods to deliver on Nov 25th 2011
    My confusion arise when the ATP check (i.e. the three section proposal date) find out that the goods are only available on December 10th 2011. Thus, the committed schedule line with committed quantity is copied from the ATP proposal screen to the 2nd scheduline line item with delivery date as Dec 10th, and the committed quantity. The following is the VA01 screen
    Schedule Line tab of item detail view:
    Dely Date -
    OrderQty----CommitQty
    11.10.2011--3--
    0
    18.10.2011--0--
    3
    Sales Order Overview screen:
    MaterialOrderQty-itemCat-FirstDate -
    Plant
    10000----2pcTAN11.10.2011-----AU01
    Question.
    1 - Do you feedback to the customer saying that the Delivery Date that can reach you is 11.10.2011 or 18.11.2011?
    tuff

    hi tuffy,
    here system will check ATP while sales order and confirm delivery date,if u r making sales order on 11.10.2011 but system will confirm delivery date in schedule line.
    u can take ur  msg reference where system is taking order on 11.10.2011 and confirm qty for delivery on 18.11.2011 so customer delivery date would be 18.10.2011.
    Edited by: KHAPREVIPIN on Oct 25, 2011 12:38 AM

  • Table where the Delivery date is stored in Confirmation tab on Me23n

    Hello ABAB Gurus,
                               Can anyone give me the table name where the Delivery date is stored in Confirmation tab in Item in ME23n.
                                  If anyone is aware of it then please let me know .
    Sagar

    Hi,
    Check the table EKES and field name is EINDT..
    Thanks,
    Naren

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • I pre-ordered an iPhone 6 Plus and the delivery date now says October 14th. The point of the pre-order is to get it on release day (or shortly thereafter). Can I go to a Verizon store to pick up my new phone on release day?

    I pre-ordered an iPhone 6 Plus and the delivery date now says October 14th. The point of the pre-order is to get it on release day (or shortly thereafter). Can I go to a Verizon store to pick up my new phone on release day?

    I'm not sure that answers the question Candice.
    I'm in the same situation.  I was up trying to get on the Verizon page at 11:55, kept getting the ECPD error.  When finally got through, the Silver Iphone Plus 64 showed arrival of 9-19.  At every step of the process, it seemed that I was ordering a phone that would arrive on day1.  At no point did it say this was an estimate.  At no point did it say it might change.  In a big yellow box, it said "9-19".  Ordered it, then got confirmation email stating it should arrive at 9-19.   Seems like all should be good, right?  Order site said 9-19, I've got a confirmation email saying 9-19, done and done.
    Then I check the website, and suddenly it changed to 10-14?!?!?!?  I feel like this was a bait and switch.  I was able to pickup an iphone5 in a local store on launch day, and would not have locked myself into a preorder through Verizon if I had known this would happen!
    So, that leads back to the original questions.  Lets assume I walk into a Verizon store on 9-19, and there is an available iphone6 plus just sitting there, can I either get that phone as fulfillment of my pre-order.  Or, cancel my pre-order and buy that phone right then and there?
    JJK
    PS:  It seems there are many people you misled this way.  For every person who takes the time to post on this site, there are going to be many many more who are silently ****** off.

  • Regarding the delivery date in sales order

    Hai
    when we give the inhouse production time in material master and the create a sales order whenever we give the quantity the delivery date does not change according to the quantity
    ex :- when i give the inhouse time as 2 days for producing a single material
                    but when the quantity in sales 10 no. but delivery date is only 2 days
                         i.e, based  sales order quantity delivery date should change
               i need the delivery date as 20 days who to do this give the customizing settings
    advance thank's for your reply

    Dear,
    Please check the timing in work scheduling view. other wise schedule the routing and maintain time there and check your result.
    In material Master MRP2 screen you will get Scheduling Screen where you will get
    In-house production
    GR processing time
    Plnd delivery time
    These are lot size independent but value in work scheduling view are lot size dependent.
    Go to VOV8 and check the Lead time part. If u will maintain lead time of 2 days, the req deliverty date will be 2 days frm order creation date.
    You can configure this in the configuration of the Sales document type in VOV8. Here we can specify the value and as per that configuration the date will be defaulted.
    Regards,
    R.Brahmankar

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

  • Block GR if GR date before the delivery date in the PO

    Dear all,
    A key-user would like to avoid goods receipts to be posted if the date of the goods receipts is before the delivery date in the PO. The key-user wants to refuse systematically delivery from the supplier which is sooner than the delivery date in the PO.
    For example, in the PO, the delivery date is August 7th 2010. To make a GR for this PO, the user uses MIGO, inputs the PO. As today is August 5th 2010, the GR should not be accepted by the system. How to customize that?
    Another solution is to display the delivery date of the PO in MIGO so that the storehouse person can check directly the date of the delivery in the PO. That way, this person can check by itself whether the GR should be done or not.
    Thanks a lot.
    Olivier

    Hi
    This is standard SAP Customization.You an set message as Warning or Error message .
    The customization path is MM-Purchasing-Environment Data-Define attributes of system messages.
    Please let me know if it helps.
    Regards

  • Vendor Evaluation Report as per the delivery date

    Dear Experts,
    Please guide how view reports for
    1. Varince of delivery date for goods recieved from the Vendor as per the delivery date in the PO.
    2. Variance of delivery date for goods recieved from the Vendor as per Standard Varinace %age defined in purchasing Value Key ?
    Regards,
    Vikas

    Hi Narendra,
    Thxs for quik response,
    I created Purchasing value key with Negative indicator like first reminder is -8.second is -4 and third is -2 and assigned the respetive material master and w r t material PO created.  When i am doing ME9F exceuting its showing error No suitable purchasing documents found,while i am exceucting  i select PO No,Purchase Org,application EF and message type MAHN but its shoing error ..kindly let me know how i can proceade.
    Please note, My client requirment is once PO delivery date falls with the reminder period its should remind vendor through mail,
    Regards
    Santosh

  • The delivery date should not flow from PR to PO.

    Dear Gurus,
    While creating a P.O with reference to PR.
    The delivery date should not flow from PR to PO.
    Any settings are there for this

    there is no planning.
    this is a utilites industry.
    if there is any way to do.The delivery date should not flow from PR to PO.
    please share ur  ideas

Maybe you are looking for

  • Work items not appearing in NWBC work overview

    Hi, I am using NWBC work overview to execute work items (EHSM3.0 - Incident management). I have a custom workflow with one custom task (of type Standard). When the workflow gets triggered I can see the work item for my custom task in R/3 inbox (which

  • K7N2G and XP 2400+ (cpu speed wrong)

    Can someone tell me how to get the K7N2G Board to display the correct processor speed? I have a AMD XP 2400+ that the board shows on post as an XP 1800+ I've updated the bios to the most recent, but anytime I changed the Jumper on the board or try to

  • HT201272 How to delete tv shows that have been downloaded

    I had my friend start me up on my iPad with a credit card that is from Canada and now she wants to remove it and I'd like to put my fiancé's credit card in there from America it won't let me change stores from Canada to America they said that there's

  • Is "5.0u7" == 1.5.0_7? When is it due?

    The fix for this issue: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6186200 ...may be very important for my app. The issue says it is fixed in "1.4.2_11(b01)", "5.0u7(b01)", and "mustang(b37)". Does "5.0u7(b01)" mean the as-yet-unreleased 1.5.

  • Iphoto file size

    I recently bought a Canon Pixma MP990 and have been scanning slides. I set the resolution to maximum 4600 dpi and I'm saving them as tiff files. The resulting photos are from 80 MB to 100 MB in size. My question is, am I asking for trouble with such