Alert for orders based on due date

Hi All
I need to query to get sales order based on tomorrow date.
scenario:
Sales orders are imported using DTW and due date is put in as tomorrow , so i need a query to show me all the imported orders based on due date.
check below the query i'm using
SELECT T0.DocNum, T0.DocDueDate, T0.CardCode, T0.CardName, T0.DocTotal, T0.U_ROUTEMARKTN, T0.U_ROUNDS, T0.U_DAYOFWEEK
FROM [dbo].[ORDR] T0
WHERE DATEDIFF(Day, T0.DocDUEDate, GETDATE()) = 0
ORDER BY T0.U_ROUTEMARKTN, T0.U_ROUNDS, T0.U_DAYOFWEEK, T0.DocDueDate
thanks

Hi Bongani,
Change your query condition to:
WHERE DATEDIFF(Day, T0.DocDUEDate, GETDATE(), T0.DocDUEDate) = 1
Gordon

Similar Messages

  • Purchase Order Updating by Due Date

    Dear Sirs,
    I am testing purchase orders commitments in payment budget with update profile 000202. This UP updates postings by due date as standard. To reinforce it I market as due date at OF39 to Value Cat. 51.
    However system is still updating POs postings with the delivery date in FM instead of update it with the due date.
    Since I have a payment condition in the PO, shouldnu2019t the system be able to predict a due date and update as we need?
    Does anybody could tell me if it is the regular behavior or if I am actually missing something?
    Best Regards,
    Gustavo Cordeiro.

    Hi Gustavo,
    There are two restrictions to using terms of payment from MM for determine the FM due date.
    1) OFUP: only MM-invoice is updated.
    2) Update profile: the update date for payment budget and commitment budget cannot be set to delivery date.
    Since point 2 you have already for due date, please check if your OFUP is customized correctly for due date.
    I hope this helps.
    Best Regards,
    Vanessa.

  • How to List Sales Orders based on Creation Date and Delivery Priority

    Dear all,
    How can we list Sales Orders based on creation date and delivery priority.
    I tried using vl10a transaction code, but there we can see sales order based on delivery date.
    we need to list all sales order based on delivery priority and sales order creation date.
    can any one of you tell me which standard report gives such kind of report. Your suggestions will be highly appreciated.
    Thank you
    Raghu Ram

    Hi Raghu,
    There is no st report available as per your req.
    Using SQVI, you develope one report that is list of sales orders based on your req.
    SQVI is used to convert a Quick View into a query.
    Quick Viewer:
    The Quick Viewer allows you to define reports without having to program yourself. The Quick
    Viewer is especially useful for new users and occasional use.
    Quick Viewer is a tool for generating reports. SAP Query offers the user a whole range of options for defining reports. SAP Query also supports different kinds of reports such as basic lists, statistics, and ranked lists. Quick Viewer, on the other hand, is a tool that allows even relatively inexperienced users to create basic lists.
    Quick View definitions are user-dependent. You can transfer a Quick View into SAP Query in order to make reports, for example, accessible to additional users, or to use the other functions available in SAP Query.
    The following is a comparison of Quick Views and queries:
    Quick Views possess the same functional attributes as queries. However, only basic lists may be defined with Quick Views.
    In contrast to queries, no user group assignment is necessary with Quick Views. Each user has his/her own personal list of Quick Views. Quick Views cannot be exchanged between users. Quick Views may, however, be converted to queries and then be made available to other users in a specific user group.
    Info Sets are not required for Quick View definition. Whenever you define a Quick View, you can specify its data source explicitly. Tables, database views, table joins, logical databases, and even Info Sets, can all serve as data sources for a Quick View. You can only use additional tables and additional fields if you use an Info Set as a data source.
    The Quick Viewer uses various controls. Certain hardware and software requirements must also be fulfilled before you can use the Quick Viewer.
    To define a Quick View, you select certain fields according to your data source that determine the structure of your report. The report can be executed in basis mode with standard layout or may be edited using drag and drop and the other toolbox functions available in WYSIWYG mode.
    Reports created using the Quick Viewer may also be passed to external programs (Excel, for example).
    Call the Quick Viewer using System -> Services -> Quick Viewer (or transaction SQVI).
    Enter the name of the Quick View. Quick View names can contain a maximum of 14 characters.
    Choose Create.
    Enter a title for the Quick View and remarks, if you think they are relevant.
    If you do not want to base your list on a table, use the possible entries pushbutton in the Data source field to select another data source. You can choose logical databases or Info Sets. In addition, you may also create table joins. For further information, see Selecting a Data Source.
    Choose Basis mode if you want to create the list directly with no list design. Choose Layout mode if you want to define the layout of your list yourself.
    SQVI Table Quick viewer – Used to created quick client dependent reports
    Probably the easiest and most flexible way to do this is thru one of the ABAP query transactions.
    Transaction SQVI can do this and it has a very good help function that explains how it works... the drawback is that it is only for one user.
    You can play around with it and see if it meets your needs...
    The query results will come back in an ALV Grid or Excel... you can select what fields are returned, and have a selection screen to enter the search criteria.
    You can get the report by joining the tables VBAK and VBAP.
    If you have any queries, i will forward screen shots to your id.
    Reward points pls.
    Regards,
    Govind.

  • Excise Invoice for Order Based Billing Scenerion

    Dear Friends,
    We have a scenarion, wherein we are working with Sales Order Based Billing.
    We are in the process of Implementing CIN with TAXINN.
    Is it possible to create excise invoice for the scenarion of Sales Order based billing, instead of delivery based billing.
    If yes, what are the steps we need to follow to configure the same.
    Regards,
    Harsh

    hi
    If u want the create  Excise Invoice for Order Based Billing Scenerion, u must be set in billing document in General control in fields is.
    <b> SD document categ.   M      Invoice                                            
    Transaction group    7      Billing documents                                  
    Billing category                                                               
    Document type                                                                  
    Negative posting            No negative posting                                
    Branch/Head office          Customer=Payer/Branch=sold-to party                
                                 No                                                 
    Invoice list type    LR     Invoice List                                                                               
    Rebate settlement                                                              
    Standard text     </b>     
    Best copy of F2 Invice. and this billing type in outgoing invoices in Tax on goods movement in Logistics general.
    Rewards point it helps

  • User exit for calculating Base line due date in VF01

    Hi,
    I need a User Exit for calculating Base line Due date i'e ZFBDT with respect to billing date
    for VF01
    Regards,
    Moderator message: if there is one, you can find it yourself by doing due research.
    Edited by: Thomas Zloch on Nov 23, 2011 1:52 PM

    >
    Rahul Saxena wrote:
    > I have given the condition"BSEG-ZTERM = 'ZTST'" in Prerequisite, and in the Substitutions when I try to assign  constant value '02/16/2009' to the field Baseline Date, I don't see that Baseline date field in Substitute fields for Class '009'.
    >
    > How do I add Baseline date in that popup to select and assign values.
    >
    > Please suggest.
    >
    > Thanks-
    i think your date format and system date format is not suitable.
    give the date format as 20090216 as system format.

  • Receivable Aging Report for India based on Invoice Date

    We have a reporting/legal need for our India location to report the aging of their receivables based on the invoice date of the documents rather than the net due date.  Is there an existing report available that already does this?
    Currently when you use FBL5N and related aging reports RFDOPO10 etc. it calculates the arrears from the net due date.  They need to calculate the arrears from the document date.

    The report S_ALR_87012168 still does not allow me to choose that I want to calculate the arrears from the document date rather than the net due date:
    I guess what they really need to know is how old the receivables are based on the date they were created.
    As in the example below, current aging reports use the Net Due to calculate a days in arrears of 6 days (based on current date of 2008/11/05).
    Ty Doc. Date  Pstng Date Bline Date Net due dt Arrea
    RV 2008.09.30 2008.09.30 2008.09.30 2008.10.30     6
    What they need is the number of days in arrears based on the document date (2008.09.30) which would increase the numer of days the receivable has been open to 36.

  • A/R report u0096 Customer open items based on due date

    Hi all,
    Can anyone tell me if there is a standard report on AR side that gives me invoices due between certain dates, meaning I should be able to select due dates between 11/15/2006 and 11/30/2006 in the selection and the report should get me the customers with invoices that are due between the above dates for a company code.
    Thanks in advance
    Kumar

    Hi Kumar,
    there is no standard report which give you selection citeria to select range of due date. Since due date is calculated based on function module where it calculate Bline date+ terms of payment days.
    other std reports are:
    S_ALR_87012175 Open Items - Customer Due Date Forecast
    S_ALR_87012178 Customer Open Item Analysis by Balance of Overdue Items
    S_ALR_87012168 Due Date Analysis for Open Items
    Hope this helps.
    Please assign points as way to say thanks

  • BAPI to create SNP planned order based on start date

    Hi,
    I am looking for a BAPI to create SNP planned order based on the order start date. There is BAPI BAPI_MOSRVAPS_CREATESNPORDER which can be used to create SNP planned order based on the end date but not based on the start date.
    Also would be great if some one can share how do they create SNP Planned orders using BAPI BAPI_MOSRVAPS_CREATESNPORDER in case if GR processing time is defined in the product master and workdays for GR to be respected according to the calendar.
    Regards,
    Venkat

    Hello Mr.Venkat,
    Hope you recognize me.
    Please check out the BAdi below.
    BAdi - APO_BAPI_BUS10503 (this is the BAdi for ManufactOrderAPS  BAPI which contains the SNPorder BAPI)
    Method - CHANGE_SAVEMULTIPLE2
    In this method parameter IT_ORDER_HEAD contains Order start date input option.
    For GR time please check this (not sure if it will help).
    Same BAdi/ same method
    Parameter IV_PLANNING_MODE_USAGE contains field PLANNING_MODE.
    Value 1 for PLANNING_MODE corresponds to "Observance of parameters from the product master".
    This may make it respect the GR time in product master
    Good luck with the above
    Regards,
    Ashok

  • Which table for the field "Net due date" of customer line items?

    Hi All,
    In which table could I find the field "Net due date" of customer line items?
    Thanks
    Gandalf

    I don't think there is a field for that.  In various SAP screens where you see this field, I think it is a calculated value (baseline date ZFBDT + days ZBD*T).

  • Fields for Arrear and Net due date in FBL5n

    Dear FI expert,
    In FBL5n I need the fields for "Arrear" & "Net due date".
    Can anybody tell me exactly the fields and tables?
    Or any other FM for getting those?
    Thanks & Best regards
    Bishnu
    06/04

    hi
    check whether this spro path can help
    Financial Accounting (New) --> Accounts Receivable and Accounts Payable --> Customer Accounts --> Line Items --> Display Line Items --> Display Line Items without ALV --> Define Additional Fields for Line Item Display

  • Blog alerts for entries with future publish dates

    We have started using blogs and I am instructing users to set up alerts when new items are added to blogs. They are working, however, an Executive created a few blog posts today for future publication while he is out of the office. The dates he set are correct,
    however the alert came out today. Is there a setting that needs to be changed to only alert when something is actually published? Thank you in advance.

    If user select "Anything change" for alert, then alert has done its job. Blog created and email sent. Alert on published event is not possible, however Alert
    on VIEW is possible. So create a view for "Published Bold" filtered on published column, and then delete user's alert from site settings and configure alert for them.
    you simply need to know that they are used to notify people of changes to list items. The screenshot below shows the options available in that you can select to be notified
    on all changes, or just the changes of others, and select whether you are notified immediately or have a daily or weekly digest instead. You can also nominate others for the email, not just yourself... 
    This is a alternate way I can think of.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Approval for Contract and Order based on PO date and Document Date Combinat

    Dear All,
        I have a critical requirement from my client.
    1. If the PO date in the contract is less than 10 days or more of the document date [Created date] then further process should not be allowed. Only authorized person should release the contract, and then order creation should be possible.
    For example: Customer PO date is 18-07-2011 and if the document date is 28-08-2011, then system should stop for further processing. Only after release this should be allowed to proceed.
    2. Sales order scheduled date for item is 30.07.2011 and if the PO date is 18.07.2011 again system should again go for approval. Business requires this because the time gap between the PO date and the delivery date is very short, so only on approval the next process should be allowed.
    Is this possible through Status profile? I have tried this but I canu2019t give condition like if it less than the PO date system should go for approval.
    Kindly guide me if this is possible and share your ideas.
    Best Regards,
    Venugopal

    Hi Venu,
           In user eixt USEREXIT_MOVE_FIELD_TO_VBAP (inlcude MV45AFZZ) write the code to compare the PO date and contract creatioon date and if the PO date is 10days less than the contract creation date reject all the line items with a special reason for rejection at the item level if the document is a contract or if the document is a sales order then populate a delivery block.
    Regarding the authorization to release the contract you can think of below options.
    Give authorization to only specific people to remove the reason for rejection or  remove the delivery block.
    Or
    If you want to automate the approval process then based on the delivery block setup workflow which will raise an event and trigger an email to the approver inbox. For the approval you can give options like Approve/Reject. Based on the apporver's action design the workflow to change the contract accordingly i.e either removing the delivery block or keep it as it is.

  • Program for transferring amount from one GL to another based on due date.

    Hi
    There is one requirement to show customers in differnt way (i.e. dues less than 6months seperately and more than 6 months seperately).
    I have created one GL (customers due less than 6 months)
    Now all balances are in one GL account i.e. customer due more than 6 monhts)
    So is there any program which will transfer all the amount for due less than six months from one GL to other GL.
    I also need such program for items (like prepaid accounts) which are entered directly into GL accounts.
    Edited by: Meenu_ND on Dec 23, 2010 5:01 PM

    Hi,
    Yes there is one functionality available that is Reclassification or sorting of Receivables and payables. The tcode is FAGLF101 - Sorting/Reclassification (New), for this you need to do some configuration settings. The navigation path is New gl- periodic processing-Reclassify-Transfer and sort receivables & payables.
    Regards,
    Azeem

  • FM in CRM to get sales orders based on a date range(created_at)...

    Hello Experts,
    Is there a function module to get the sales orders from CRM based on a given date range which
    is for the field created_at? Also, is the field OBJECTID in table CRMD_ORDERADM_H can
    be compared against VBAK-VBELN? Thank you guys and take care!

    Hi,
    You can create your own function module for this. You can fetch sales order from table crmd_orderadm_h, put input data as date, and two conditions for sales order should be object type = 'BUS2000115' and PROCESS TYPE = 'TA' if you are looking for standard order.
    You have to fetch object id from this table to get your order number.
    Thanks,
    Shweta
    Message was edited by:
            Shweta Verma

  • How can I get alerts from SharePoint based on a date that exists in a list?

    I have a list that contains renewal records.  One of the fields in each record is "Renewal Date".  I would like to have SharePoint send an alert when it is 1 month prior to that date. 
    Can anyone help me do so?
    Chas Roberts

    This answer details a few different ways to do this - workflow, scheduled jobs, open source and commercial add-ons.
    StackOverflow - Dated
    reminders in sharepoint calendars
    http://stackoverflow.com/questions/529045/dated-reminders-in-sharepoint-calendars
    Regards
    Ryan
    Pentalogic Technology - Web Parts for Microsoft SharePoint
    www.pentalogic.net

Maybe you are looking for