Query on fetching the no.of days between Invoice date and due date in rtf template embedded BI Publisher Report

Hi Experts,
We have a requirement to fetch the value of 'No of days' between Invoice date and due date (Two variable date fields on the template) in an Analysis.
Please let me know the procedure of how to achieve the same.
Regards,
Rev

it's good for ideas but implementation a bit different
Oracle Business Intelligence Publisher Report Designer's Guide
This function provides a method to get the difference between two dates in the given locale. The dates need to be in "yyyy-MM-dd" format. This function supports only the Gregorian calendar. The syntax is as follows:
<?xdoxslt:date_diff(‘format’, ‘YYYY-MM-DD’, ‘YYYY-MM-DD’, $_XDOLOCALE, $_XDOTIMEZONE)?>
where
format is the time value for which the difference is to be calculated
Example:
<?xdoxslt:date_diff(‘d’, ‘2006-04-08’, ‘2006-04-01’, $_XDOLOCALE, ‘America/Los_Angeles’)?>
returns
-7

Similar Messages

  • Function to get differenece between sy-datum and any date entered in days

    Dear Friends;
                    I have to find out the days difference between sy-datum and any valid date that come from table . Is there any function available in SAP that will give me
    the difference in  no. of  days between sy-datum and any date that come from table??
                   please help me out.
    Regards;
    Parag

    Just subtract the dates from each other and you will get the number of days. I have used it and it works prefect
    try this:
    DATA: date1 like sy-datum,
    date2 like sy-datum.
    data I type i.
    date1 = '20070301'.
    date2 = '20070228'.
    i = date1 - date2.
    write: / date1, date2, i.
    date1 = sy-datum.
    date2 = sy-datum - 30.
    i = date1 - date2.
    write: / date1, date2, i.
    SD_DATETIME_DIFFERENCE

  • I wanted to know how do you calculate the number of days between two dates

    i wanted to know how do you calculate the number of days between two dates in java ? i get both the dates from the database. i guess there are many issues like leap year and Febuary having diff no of months ..etc.

    thanks..
    I solve my problem as
    public class MyExample {
        public static void main(String a[]) {
            String stdate = "2009-03-01";
            java.sql.Date currentDate = new java.sql.Date(System.currentTimeMillis());
            java.sql.Date preDate = java.sql.Date.valueOf(stdate);
            System.out.println(currentDate);
            System.out.println(preDate);
    //        int dateCom = preDate.compareTo(currentDate);
    //        System.out.println(dateCom);
            long diff = currentDate.getTime() - preDate.getTime();
            int days = (int) Math.floor(diff / (24 * 60 * 60 * 1000));
             System.out.println(days);
    }

  • RSBBS jump query not fetching the document no in R3

    Dear Gurus
    With RSBBS transcation jump is given to R3 tansaction FB03. When query is executed and with right click go to option and with display document (FB03) its fetching the document no in DEVELOPMENT server . But when the query is transported to Production its not fetching the document no.
    Kindly do the needful at the earliest
    Regards,
    R.Satish

    Hi
    You said it is not fetching the doc no. Is it failing and showing some error?
    Have all the pre-requisite settings been done via Tcode SICF.
    Regards
    Nageswara

  • How to get the number of days between 2 given dates

    Hi all,
    How can I find the number of days between any 2 given dates.
    Thanks

    Hi
    Here's a dirty way:
    If you've got two Date objects in Java, call getTime() on each one (which gives you a value in milliseconds), then subtract the two millisecond values, and divide the result by the number of milliseconds in a day (24 * 60 * 60 * 1000). There's more `elegant' ways to do this, but this method only requires one line of Java.
    Best wishes
    Kevin

  • The Difference between "Cell Data" and "Dimension Data"?

    What is the difference between the tab "Cell Data" and "Dimension Data" in SSAS?

    Article quote: " SSAS provides the way to secure analysis services database/cube data from unauthorized access. Analysis services provides secure access by creating object called "roles". After creation of role, user's windows login credential can be used
    to enroll into particular role because analysis services identifies user from their windows login credentials . You can protect your data in roles at two levels:
    1) Dimension level
    2) Cell level
    If user has been assigned more than one role, analysis services loop through all assigned roles after login. Analysis services finds all permission level for the particular user and  union all the permission levels.
    If two roles has contradictory access for user then particular access will be allowed. Suppose role1 says Australia data access and role2 denies Australia data access then access to Australia data will be allowed. "
    LINK:
    http://www.msbiconcepts.com/2010/10/ssas-data-security-dimension-and-cell.html
    Kalman Toth Database & OLAP Architect
    IPAD SELECT Query Video Tutorial 3.5 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How to calculate number of days between fixed date and hire date in schema

    i want to calculate the number of days between a fixed date en the hire date (infotype 041)
    If i read the documentation  right, i should use the following command:
    HRS=YDXA02
    Variable 3 (the x) is the fixed data.
    My question is how do i program the variable x?
    Let's say the date 01.01.2008
    Any help would be welcome

    I assume we are talking about PCR for payroll. In this case look at documentation for operation NUM:
    OOOOOO
    Xnnnnn
    X     Table
    nnnnn Table field
    nn    Date type 'nn' from the Date Specifications infotype (0041)
         Date types are taken from table T548Y.
    Your operation would look like:
      NUM=Faaesb
          F          Fixed indicator for deadline calculation
           aa           Date type: Start date of period to be
                        calculated; if the date type is not 'nn,'
                        the second position is left blank.
             e          Unit, in which the duration is calculated:
                        T = days
                        W = week
    s         End date of period to be calculated:
              (blank)  End of current payroll period
              J        End of current calendar year
              A        Start of current calendar year
              B        Start of WPBP period
             No other specifications are possible.
    So it depends on what kind of fixed date you need.
    Hope it helps,
    Carlos.

  • Days between versions based on modified date

    Hi. I'm looking a way to calc the number of days between the dates of a document on Sharepoint. For example, the ID doc = 3 created 01/03/2014, and modified 01/05/2014; then modified again 01/09/2014. The first calc would be: the modified date minus the created
    date (2 days); the others calcs would be based on the modified data minus the previous modified date. Where can I find a topic with this example? Thanks in advance.

    I did something similar with versions and I used JQuery and ajax calls to web services GetVersionCollection. Now this is for a list not a document library, but maybe you can pick something out of it? The service only works for one item at a time - maybe
    you could add this on the properties form PreSaveAction where you could fill in another field before a save. Search for GetVersionCollection for more info.
    <script type="text/javascript" src="/Javascript/JQuery/JQueryMin.js"></script>
    <script type="text/javascript">
    function getversions() {
    var xmlData ="<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>";
    xmlData += "<soap:Body><GetVersionCollection xmlns='http://schemas.microsoft.com/sharepoint/soap/'>";
    xmlData += "<strlistID>Merchandising Projects</strlistID><strlistItemID>789</strlistItemID><strFieldName>ProjComments</strFieldName></GetVersionCollection></soap:Body></soap:Envelope>";
    $.ajax({
    url: "/<SITE/SUBSITE>/_vti_bin/lists.asmx",
    type: "POST",
    dataType: "xml",
    data: xmlData,
    complete:SuccessFunc,
    error: ErrorFunc,
    contentType: "text/xml; charset=\"utf-8\""
    function SuccessFunc(result) {
    //xml node with namespace need to be handled differently for jQuery
    var rTable = "<table>";
    alert(result.responseText);
    $(result.responseXML).find("Version").each(function() {
    if($(this).attr("ProjComments") != "<div></div>") {
    var vDate = $(this).attr("Modified");
    rTable += "<tr><td><b>" + $(this).attr("Editor").split("#,#")[1] + " (" + vDate.substr(5,2) + "/" + vDate.substr(8,2) + "/" + vDate.substr(0,4) + ")</b><br />" + $(this).attr("ProjComments") + "</td></tr>";
    rTable += "</table>";
    $('#versionsOfItem').append(rTable);
    function ErrorFunc(result) {
    alert(result.responseText);
    </script>
    <input type="button" name="btnver" id="btnver" value="Test Versions" onclick="javascript:getversions();"></input>
    <div id="versionsOfItem"></div>
    Robin

  • What is the Difference Between Sys Date and Effective Date ??

    Hi Gurus,
    Can any one pls let me know What is the Difference Between Sys Date and Effective Date ??
    with regards
    User600722

    EFFECTIVE DATE usually refers to a date-tracked record (although not exclusively).
    Date-tracked records in Oracle HR have an EFFECTIVE START DATE and an EFFECTIVE END DATE. The record is 'EFFECTIVE' between these dates. In reports, you often use SYSDATE to compare to these two dates to find the CURRENT effective record, e.g. SYSDATE BETWEEN EFFECTIVE START DATE AND EFFECTIVE END DATE.
    When you make changes to a HR record, you can choose between DATE TRACKING options, such as CORRECT or UPDATE (there are others too). CORRECT will overwrite the record and replace the data with your changes. This is normally used when you need to correct something that is wrong. UPDATE will create a new version of the record from the EFFECTIVE START DATE you choose. It will also set the EFFECTIVE END DATE of the previous record to the day before your new record's EFFECTIVE START DATE. That enables a history of records to be maintained so you can see what your data looked like at ay one point in time.
    Regards
    Tim
    Edited by: TimW on Sep 23, 2008 2:37 PM

  • Hello.  I recently pieced together a late 2008 MacBook Pro 15".  Everything works fine except the battery constantly goes between "not charging" and "calculating" or, rarely "charging". It does charge after a long while and will report that it is charged.

    Hello.  I recently pieced together a late 2008 MacBook Pro 15".  Everything works fine except the battery constantly goes between "not charging" and "calculating" or, rarely "charging". It does charge after a long while and will report that it is charged.
    I have reset the NVRAM and the SMC a couple of time but that didn't work so I ran an Apple Hardware Test and while testing the logic board it gives the following error:
    4SNS/1/40000000 LB1T
    I've done some research and found this is a temperature sensor related to the battery, but cannot find where the sensor is located in the computer.  Would you know how I can find the sensor to test it?  Could my battery problem be related to something else?  Would a fresh install of Lion help?
    Thank you!
    Mike
    Two pieces of information that may or may not b helpful, the hard drive is from my early 2008 MBP and the only test disc I have access to is from an iMac.

    Why do you have LION installed on that older machine?
    So you say you built a macbook from a bucket of parts eh?   Kudos
    heres a pic of the battery temp sensor

  • Stop the Sales Orders flow between R/3 and CRM systems.

    Hello Experts,
    I am facing one middleware related issue.
    I am creating a quotation and Order in Crm system an those are replicated to R/3.
    But I am creating some orders in r/3 and those are alos replicating to CRM, I want to stop the flow of Orders between R/3 and CRM.
    Please let me know where I have to do the changes.
    Thanks

    Hi,
    What Debolina suggests would stop flow of Orders from CRM to R3.
    But what i learn from your post is :
    you wanna stop Orders flowing from R3 to CRM.
    If m coorect in above, then teh solution for you is different:
    You have to filter out the orders.
    Goto: R3AC1
    Select object : SALESDOCUMENT
    Goto Filters tab and set the filter as desired.
    This would stop the flow of Orders from R3 to CRM
    Kindly reward with points in case helpful
    Sharif.

  • Cloning use the different gcc version between source system and target sys

    Hi All,
    Our system is: Application tier and Database tier is split to two servers.
    We should run a cloning, but I found the different gcc version on application tier on source system and target system.
    The source application tier server is RedHat Linux ES3, gcc version is 3.2.3
    The target application tier server is RedHat Linux ES3, gcc version is 2.9.6
    There is the same gcc version on database tier on source system and target system, they are gcc 2.9.6.
    My question: Can I use the different gcc version between source system and target system when I run an erp cloning?
    Thanks & Regards
    Owen

    Not necessarily, you might get some errors if the version is higher and it is not supported by the OS. An example is Note: 392311.1 - usr/lib/gcc/i386-redhat-linux/3.4.5/libgcc_s.so: undefined reference to 'dl_iterate_phdr@GLIBC_2.2.4'
    To be on the safe side, make sure you have the same version (unless you want to give it a try).

  • What is the difference, if any, between Photoshop CS6 and CC?

    What is the difference, if any, between Photoshop CS6 and Photoshop CC?

    Thank you, Garima. This helps!
    Larry
    Date: Thu, 13 Feb 2014 14:14:08 -0800
    From: [email protected]
    To: [email protected]
    Subject: What is the difference, if any, between Photoshop CS6 and CC?
        Re: What is the difference, if any, between Photoshop CS6 and CC?
        created by Garima.J in Photoshop for Beginners - View the full discussion
    Hi LarryMeikle
    The biggest difference between Photoshop CS6 and Photoshop CC is that Photoshop CC is subscription-based--you have to subscribe to Adobe's Creative Cloud service to use it.  Also, Photoshop CC includes new features that were not in Photoshop CS6.
    Let us know if that helps.
    Thanks!
    Garima
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6118812#6118812
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6118812#6118812
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6118812#6118812. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Photoshop for Beginners at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • The sound on my ipad 3 suddenly stopped working i dont know why i tried the last two days to fix it and also restored it and the sound never came back, please help.....

    the sound on my ipad 3 suddenly stopped working i dont know why i tried the last two days to fix it and also restored it and the sound never came back, please help.....

    Do you get sound on any apps e.g. Music and Videos but not others ? If you do then have you got notifications muted ? Only notifications (including games) get muted, so the Music and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad, or via the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085

  • There is a small white light in the retina display on my ipad 3. Is this a dead pixel/light leak and how do I fix it? (Located at the bottom left side between home button and left corner)

    There is a small white light in the retina display on my ipad 3. Is this a dead pixel/light leak and how do I fix it? (Located at the bottom left side between home button and left corner)

    Maybe this will show up better in green.

Maybe you are looking for

  • Sales Order is being processed

    Hi All, 1) My scenario is sales bom, the header is delivered and the line items are billed, after completion of billing the sales order status for header is complete and the line items status is being  process...due to this these sales orders are sho

  • Internet not working on my macbook pro

    hey guys I'm having some problems with my internet. My macbook pro won't connect to my network. when I open system preferences, it says airport doesn't have an IP address thus can't access the internet. how do I fix this? I recently upgraded to snow

  • Using 27in iMac as display for Mac Pro (both latest models)

    I'm in need of using my new 27in iMac (current 2012 model) as the display for my current 2012 Mac Pro. As you probably know, the mac pro has 1 DVI port, 2 mini display port, and some firewire ports. The iMac has 1 firewire port and 2 thunderbolt port

  • Returns from stores

    Hi All what transactions/movement types one can use to return goods received in stores ordered via a reservation.I dont want to use a reservation and create negative quantity required. I would like the option of using 2 step movements and 1 step move

  • BEX Variable - Current FY/Period

    Hi , Currently i have a input variable for Period/FY in my bex query. i would like to change it customer exit field whereby system detects the current fiscal year period by itself without the need of user keying it in. I believe variable 0FPER can be