Month day display in matrix report

in matrix report date field convert into day and it is as row filed if any day of month data not found but it display all 30 days in matrix report.

try this query
select rownum as run_num,to_date('01-' || :A_MONTH || '-' || :A_YEAR,'dd/mm/yyyy')+ (rownum-1) CV from
(select 1 from dual group by cube (1,1,1,1,1))

Similar Messages

  • SAP HR : Wrong working days displayed in Z report

    Dear Friends ,
    I have made a z report for SAP- Hr to show working days of employee of a particular month
    when I am running report for all the employees then working days are wrongly displayed in alv
    report but when I am running the report for a particular employee then the working days are
    correct . I have done debugging also , every thing is fine in debugging , Now I am confused
    where is fault I have to run the report for all employee.
    Kindly suggest .
    Regards
    Rihan
    SAP-abaper

    hye ,
    here, some code for your reference ,
    LOOP AT it_empall WHERE pernr EQ stru-pernr.
          SELECT SINGLE SUM( abwtg ) FROM pa2001
                              INTO absdays
                              WHERE pernr = it_empall-pernr
                              AND   endda BETWEEN p_begda AND p_endda
                              AND   begda BETWEEN p_begda AND p_endda.
    "FOR RESIGN
            select single begda from Pa0000 into enddt where pernr eq it_empall-pernr
                                                       and massn eq 'H6'.
    "FOR HIRING
             select single begda from Pa0000 into begdt where pernr eq it_empall-pernr
                                                       and massn eq 'H1'.
         totdays = p_endda - p_begda.
          totdays = totdays + 1.
         if enddt GT p_begda and enddt LT p_endda.
                           X = ( p_endda - enddt ) + 1 .
                           workdays = totdays - x - absdays.
                           stru-kaltg = workdays.
         elseif begdt GT p_begda and begdt LT p_endda.
                          X = ( begdt - p_begda ) .
                          workdays = totdays - x - absdays.
                          stru-kaltg = workdays.
         else .
                          workdays = totdays - absdays.
                          stru-kaltg = workdays.
         endif.
      ENDLOOP.
    Note : here p_begda AND p_endda are month start and end date.
              and begdt and enddt  (  these are  employee joined and resigned date)
    Pls suggest .....

  • Displaying Months in Matrix Report like Jan-01  Feb-01

    How can I display Months like Jan-01 Feb-01 in Matrix Report of Oracle Report 6i.
    I tried using to_char(myDate,'Mon-YY') but it displayed months in Alphabetical Order like Apr-01 Aug-01 and so on.
    I need something like this.
    Item Jan-01 Feb-01 Mar-01 Apr-01
    Item-A 100 200 300 400
    Item-B 100 200 300 400
    Best Regards,
    Luqman

    Dear Dan,
    Thanks for your suggestion.
    My problem is to display Oracle Data (Hiredate Field of Oracle Scott.Emp Table) in Matrix Report of Oracle Report Version R6i in the format of :
    Dec-80,Feb-81 etc. as under:-
    EmpNo Dec-80 Feb-81 Apr-81 May-81
    7369 800
    7499 1600
    7521 1250
    7566 2975
    7698 2850
    The query I tried in Sql Statement Window of Oracle Report R6i is as under:-
    select empno,sal,to_char(hiredate,'Mon-YY') from emp
    order by to_char(hiredate,'YY-MM')
    The above query shows correct exactly what I need, when run in Oracle Sql Plus but in Matrix Report, it seems its Order By clause not working.
    Your suggesion is related to change the format of today's date and not with Oracle Data, I presume.
    I will appreciate if you please let me know directly at my E-Mail: [email protected] if you find any solution for my above problem.
    Best Regards,
    Luqman

  • Matrix report with row field as "dates of months"

    Hi all,
    I have a matrix report that requires such a format:
    Some database column -->
    1 cell cell cell cell
    2 null null null null
    3
    4
    31 cell
    now i cannot get the dates of the month in order of 1 to 31'st as column, if i give my database column datefield the records which are on following date are displayed but for the dates which dont have records, the cell fields should be null..
    How would i do this.
    Regards,
    Sreekanth.

    Hi all,
    I have a matrix report that requires such a format:
    Some database column -->
    1 cell cell cell cell
    2 null null null null
    3
    4
    31 cell
    now i cannot get the dates of the month in order of 1 to 31'st as column, if i give my database column datefield the records which are on following date are displayed but for the dates which dont have records, the cell fields should be null..
    How would i do this.
    Regards,
    Sreekanth.

  • SSRS Matrix report. Variance expression by Month. Need to compare month from prior year to current month of current year VS2010

    Please help.  I have a matrix report.  In the report I have row group  PO Type.  One the Column groups I have a parent group by Fiscal Year, and then a child group by Month.  When I run the report, I get two years of data back broken
    out by month.  Please see below.
    Now here is where I am getting stuck.  I need to take the variance between the current month of the current year, from the same month of the prior year.  So I need to show the difference between Oct , 2014 from Oct, 2013. November, 2014 from November
    2013... etc. etc.
    In the example below, how do I create a column or row showing the variance for Contracts for October 2014.  I need to take the contracts for October 2014 which is 3 and subtract that from October 2013 which is 8.  Any suggestions? How do I do that
    for each month?  Then I need to do it for the quarter... then the year?  But I'll be happy if I can just get the month working first.
    Any help will be appreciated. 
    here is what my rdl file looks like.
    Here is what my report looks like when I render it.

    Hi Adrian_s2012,
    According to your description, you want to compare values for the month of current year with the month of prior year and get the variance. Right?
    In Reporting Services, we don't have any function to get this "Year to Year" Growth. In this scenario, if you data source is a cube, we suggest you use Analysis Services to achieve your requirement. If this data source is just from database, it will be hardly
    to calculate the variance because we need to compare the values within every two different column group and matrix generate adjacent columns one by one. Even we make it by using custom, every time executing the long code when generating result
    in a cell will reduce a lot of performance, we really don't suggest to do that in SSRS. Here is a thread with much easier requirement, please take a reference of that:
    http://social.msdn.microsoft.com/Forums/office/en-US/842e2dcb-d949-4297-9d91-eac989692cb5/difference-between-the-grouped-column?forum=sqlreportingservices
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Is there a way to default the monthly calendar display so that the current day always shows on top?

    Is there a way to default the monthly calendar display
    so that the current day always shows on top? ie, I want to always be able to see what's in the future 3-4 weeks, not what's in the past 3-4 weeks. The default monthly display is archaic--only allows you to see through the last day of the month. Suddenly today
    is Oct. 30th, and I have a ton of projects lined up in November, but because I haven't been scrolling down every day, I haven't been aware of them every day. I realize there are other tools in Microsoft to help me stay on task, such as reminders and such,
    but it would be helpful if I could always have the current day display on top of the monthly view so I can quickly scan what's coming up in the next few weeks. 

    Thank you!
    Right, I already have it in Month view. My question is a little more specific--I'd like for the current day to always display at the top. For example, today is Oct. 31st, so the current day is at the bottom of the calendar since it is the last day of the month.
    I can view everything in October that I've already completed. What I can't see are the future weeks because we haven't hit November yet. I'd like for the current day to always display at the top of my calendar so I can always see what's coming in the following
    three - four weeks (whether they're a part of that month or not). I've been to other forums trying to find the answer, and have come across the same exact question from frustrated users--but there seemed to be no solution. So I'm posing the question myself
    in this forum. Do you know if this is possible? What I found from other forums is that Outlook defaults to a physical 'desk' type calendar format--so just as I'd use a paper calendar at my desk, I wouldn't be able to see the following weeks unless I either
    flip the page to that month or I come to the first day of the next month, thereby tearing the the old month off and now only able to see the current month. That format is just so...paper...and archaic! Essentially I want the calendars to loop so it doesn't
    even really matter what month it is--I just always want to see what lies ahead without having to scroll down. With our being in the Technology Age, I'd assume this is a logical expectation, but we may be stuck with the replica version of the paper-desk-calendar
    format until Outlook programmers add this Technology Age feature in newer versions.  
    See, this month kind of messed me up because I have so many projects for November that start tomorrow and next week, but I haven't seen them until this week. I would have been better quipped--at least expecting them--had I been able to see all of those projects
    since last week or the week prior.  
    If there is no solution to this answer, would you know how I can contact Outlook to provide feedback? I'm guessing a newer version is on its way...
    Thanks again in advance!

  • Display dates with zeros for month, day, year.

    I have a date coming from a database as an int (20021215 means 12/15/2002). If the database gives me a "0", meaning no date value is assigned, then it should be displayed as "00/00/0000". The following code snippet works for the non-zero int database values ...
    public static String formatDisplayDate(int date) {
        String dateAsString = null;
        if (date == 0) {
            dateAsString = "00000000";
        else {
            dateAsString = Integer.toString(date);
        String strYear = dateAsString.substring(0,4);
        String strMonth = dateAsString.substring(4,6);
        String strDay = dateAsString.substring(6);
        int year = Integer.parseInt(strYear);
        int month = (Integer.parseInt(strMonth)) - 1;
        int day = Integer.parseInt(strDay);
        DateFormat myFormat = DateFormat.getDateInstance(DateFormat.SHORT);
        Calendar cal = myFormat.getCalendar();
        cal.set(year, month, day);
        Date myDate = cal.getTime();
        String formattedDate = myFormat.format(myDate);
        return formattedDate;
    }Although I didn't really expect the zero values case to work, I am not sure how to implement it. How would I go about building a string using all zeros and still have it automatically display in the correct locale format?
    Any help is appreciated.

    Thank you for your response. I agree a blank field would be better, but I think the "zeros" format is there to give the user an idea of expected date entry formatting, not that they'll necessarily follow it. I have made a few changes per your suggestions (shown below for the record, minus the exception handling), and it works perfectly.
    public static String formatExternalDate8(int date) {
      String dateAsString = null;
      if (date == 0) {
        dateAsString = "00010101";
      else {
        dateAsString = Integer.toString(date);
      int year = Integer.parseInt(dateAsString.substring(0,4));
      int month = (Integer.parseInt(dateAsString.substring(4,6))) - 1;
      int day = Integer.parseInt(dateAsString.substring(6));
      DateFormat myFormat = DateFormat.getDateInstance(DateFormat.SHORT);
      Calendar cal = myFormat.getCalendar();
      cal.set(year, month, day);
      Date myDate = cal.getTime();
      String formattedDate = myFormat.format(myDate);
      if (date == 0) {
        formattedDate = formattedDate.replace('1', '0');
      return formattedDate;
    }Thanks again for your assistance.

  • Display null rows / columns in matrix report

    Hi,
    Is it possible to display any character ('0' for example) in a matrix report where the entire row or column show no value at all ?
    My matrix shows Row1 and Row2 with values but no Row3 at all like this:
    Column1 Column2 Column3
    Row1 value1 value2 value3
    Row2 value4 value5 value6
    But I would like it to show my rows 3 with '0's :
    Column1 Column2 Column3
    Row1 value1 value2 value3
    Row2 value4 value5 value6
    Row3 0 0 0
    Thank you,
    Denise

    Make your query return 0 with nvl(column, 0) and an outer join, plus some stuff to avoid a double outer join.
    E.g. a sales per product per city:
          City1   City2  City3
    Prod1   10     100    12
    Prod2   25     110   200
    Prod3    0       0     0Could be made like this:
    create table city (c_city  varchar2(10));
    create table prod (p_prod   varchar2(10));
    create table prod_sales (ps_city varchar2(10)
    , ps_prod varchar2(10)
    , ps_sales number);
    <.....insert some values, except voor Prod3 .....>
    SQL> select p_prod, c_city, nvl(ps_sales,0)
      2  from (select c_city, p_prod from city, prod)
      3  ,    prod_sales
      4  where ps_city(+) = c_city
      5  and   ps_prod(+) = p_prod
      6  order by 1,2 ;
    P_PROD     C_CITY     NVL(PS_SALES,0)
    Prod1      City1                   10
    Prod1      City2                  100
    Prod1      City3                   12
    Prod2      City1                   25
    Prod2      City2                  110
    Prod2      City3                  200
    Prod3      City1                    0
    Prod3      City2                    0
    Prod3      City3                    0

  • How to add a function field into the existing matrix report

    Hi,
    I have a matrix report , now i wanted to add one moe field into the matrix which is getting the value from a function , this function is a part of the ref cursor query(group) , i'm able to get the value from the function but it cannot display on the existing matrix report. i wanted to add this in the repeating frame which is printing down. how could i do this , looking for your help. thanks . bcj

    Here the scenario like,
    Data from Table_1
    NAME UNITS DAYS RATE
    AAA 10 1 1.2
    BBB 12 2 3.1
    AAA 20 2 4.1
    CCC 23 1 5.2
    Here, In the matrix report the NAME and UNITS are row fields and 'DAYS' is column field , RATE would be the cell field, and
    Data from Table_2 ,
    NAME BASIC
    AAA 2
    AAA 2
    BBB 2
    CCC 3
    In the report i have to display the 'BASIC' along with the NAME in row level ( repeating frame printing down),
    To get the multiple 'Basic' for each 'Name' using a ref cursor .
    and, using a function to do further calculation based on the basic value
    begin
    select basic into v_basic where name =:name;
    return(caluculated_value);
    end;
    and return the calculated value to the report. But at that time cannot accommodate the value in the matrix report with other groups frequency.
    looking for your valuable help. Thanks Bcj

  • How to create a matrix report on Apex 4.1

    Hi all.
    I need to create a report similar to this one:
    Jan Feb Mar .....
    Product Category
    Category One 999 999 999
    Category Two 999 999 999
    On a reporting tool like Oracle Reports, this is call a matrix report which can be easily created: just one simple query , select a matrix report type, compute summary values for row /column and grand total, and that is.
    How would one implement this on Apex 4.1???
    Have a couple of ideas:
    - Populate temporary table with columns corresponding to month.
    - Create a procedure that return a collection and use that as a source for report.
    - Etc.
    What other options do i have ...?
    Thanks in advance ...!

    Hi all,
    I did create a matrix report using the pivot function and some interesting settings in APEX. So far it is only does display data. I did not find a way yet(?) to alter the data in the same matrix.
    The data is based on a simple set of tables about planning. The end result does look something like the matrix below. Note: the dashes are just there to make the matrix look like a matrix on this forum.
    Resource 13-08 20-08 27-08 03-09 10-09 17-09 24-09
    Angelo-----25-----22-----12-----10------------------------
    John---------8-----22-----36-----22------------------------
    Marit-----------------5-----40-----36-----24-----12-----10
    The resources (Angelo, John and Marit) are being registered in the following table:
    CREATE TABLE EVP_RESOURCES
    RSS_ID NUMBER(10,0) NOT NULL,
    NAME VARCHAR2(25 BYTE) NOT NULL
    The date periods (13-08 till 24-09) are being registered in the next table:
    CREATE TABLE EVP_DATA_POINTS
    DPT_ID NUMBER(10,0) NOT NULL,
    DATA_POINT_DATE DATE NOT NULL,
    V_DATA_POINT_DATE_FORMATED VARCHAR2(75 BYTE) GENERATED ALWAYS AS (TO_CHAR("DATA_POINT_DATE",'dd-mm')) VIRTUAL VISIBLE
    The virtual column (v_data_point_date_formated) is not needed. You can use this virtual column or format the column in multiple places.
    The available units are being registered in the intersection table below:
    CREATE TABLE EVP_RESOURCE_PLANNING
    RPG_ID NUMBER(10,0) NOT NULL,
    DPT_ID NUMBER(10,0) NOT NULL,
    RSS_ID NUMBER(10,0) NOT NULL,
    UNITS NUMBER(10,0)
    The data is being displayed in APEX in a report region of type "SQL Query (PL/SQL function body returning SQL query)". And the following option has to be switched on "Use Generic Column Names (parse query at runtime only)".
    This does give a restriction on the number of columns which can be used. You can however change the number of columns in the field "Maximum number of generic report columns:" to a high number. So in most cases this is no issue at all.
    In the Region Source I did put the following code:
    begin
    return 'select *
    from ( select rss.name "Resource"
    , v_data_point_date_formated
    , rpg.units
    from evp_resources rss
    , evp_data_points dpt
    , evp_resource_planning rpg
    where rpg.dpt_id = dpt.dpt_id
    and rpg.rss_id = rss.rss_id
    pivot (sum(units) for v_data_point_date_formated in (' ||
    evp_pkg_dpm.f_dynamic_pivot_in ||
    order by 1';
    end;
    The function evp_pkg_dpm.f_dynamic_pivot_in does return a string which is based on the number of rows in the table evp_data_points. In my case this string is: '13-08' as "13-08",'20-08' as "20-08",'27-08' as "27-08",'03-09' as "03-09",'10-09' as "10-09",'17-09' as "17-09",'24-09' as "24-09". If you ommit the 'as "..."' you do get quotes in your headings.
    Enjoy and regards,
    Jurgen
    PS: let me know if something is missing or not clear!
    Edited by: user553427 on Aug 17, 2012 5:46 AM (Query has been made more simple and I build up the header differently)

  • Formula Column in Matrix Report (Running Balance)

    Hi all. I hope somebody can help me.
    I am working on a matrix report using multi-query data models. The report has 2 groups in the horizontal axis and 3 groups in the vertical axis. The intersection is not just a single row but may consist of multiple rows.
    My problem is this. I want to create a column in the intersection which is obtained by using a column value from the lowest group in the vertical axis and a summary column obtained from the rows of the intersection.
    Here's what my report looks like:
    2002 (accross)
    2002(down) january february (accross)
    January (down) payments balance payments balance
    loan #1 10,000 500 9,000 200 8,800
    500
    loan #2 5,000 100 4,900 200 4,700
    February
    loan #3 3,500 0 3,500 50 3,450
    loan #4 4,200 0 4,200 0 4,200
    As you can see, the loans are grouped by month and year. And the payments are grouped for the month and year too.
    The data model is :
    For Query 1 (Vertical Axis),
    1st group - Loan Yr
    2nd group - Loan Mo
    3rd group - Loan # and amount
    For Query 2 (Horizontal Axis)
    1st group - Payment Yr
    2nd group - Payment Mo
    Intersection Group - Payment Amount
    My problem actually is how to compute for the running balance of the loan for each month in the horizontal axis. Ive already created a cross product summary to get the running total of the payments made for the month. I tried creating a formula column to for the running balance by subtracting it from the loan amount but i get the error "incompatible frequency"
    I hope i have described my problem well and thanks for the help

    The problem is that you're trying to reference dimension columns(loan Amount) in the calculation of matrix cell values. You can only reference other matrix cell values or cross product columns (summary, formula, placeholders) when calculating matrix cell values. Try moving the (loan Amount) column down to the matrix cell - something like:
    For Query 1 (Vertical Axis),
    1st group - G_LoanYear(LoanYr)
    2nd group - G_LoanMonth(LoanMo)
    3rd group - G_LoanNumber(Loan#)
    For Query 2 (Horizontal Axis)
    1st group - G_PaymentYear(PaymentYr)
    2nd group - G_PaymentMonth(PaymentMo)
    Intersecion /Detail Group - G_Details(PaymentAmount, LoanAmount)
    Then create the following Matrix summary columns:
    A running summary - CS_Payments:
    - Product Order: G_LoanYear G_LoanMonth G_LoanNumber G_PaymentYear G_PaymentMonth
    - Source: PaymentAmount
    - Function: Sum
    - Reset At: G_LoanNumber
    The total amount per loan - CS_TotalPayment:
    - Product Order: G_LoanYear G_LoanMonth G_LoanNumber
    - Source: LoanAmount
    - Function: First
    - Reset At: G_LoanNumber
    The value of the loan after each payment - CF_Countdown:
    - Product Order: G_LoanYear G_LoanMonth G_LoanNumber G_PaymentYear G_PaymentMonth
    - PL/SQL Formula:
    function CF_CountdownFormula return Number is
    begin
    return(:CS_TotalPayment - :CS_Payments);
    end;
    You should then be able to display "CF_Payments" and "CF_Countdown" in the matrix cell to show how much has been paid and how much is still owed.
    You can still have another "loan amount" as a dimension column - you just don't need to use it when calculating the values in the cell.

  • Formula Columnn in Matrix Report (Running Balance)

    Hi all. I hope somebody can help me.
    I am working on a matrix report using multi-query data models. The report has 2 groups in the horizontal axis and 3 groups in the vertical axis. The intersection is not just a single row but may consist of multiple rows.
    My problem is this. I want to create a column in the intersection which is obtained by using a column value from the lowest group in the vertical axis and a summary column obtained from the rows of the intersection.
    Here's what my report looks like:
                        2002 (accross)                         2003
                        januar                    february (accross
                        payments      balance          paymenst     balance
    2002 (down)
    Januar (down)          
         Loan#1 10,000 500          9000          200          8800          
                   500
         Loan#2     5000     100          4900          200          4700
    February
         Loan#3     3500     0          3500          50          3450
         Loan#4     4200     0          4200          0          4200
    As you can see, the loans are grouped by month and year. And the payments are grouped for the month and year too.
    The data model is :
    For Query 1 (Vertical Axis),
    1st group - Loan Yr
    2nd group - Loan Mo
    3rd group - Loan # and amount
    For Query 2 (Horizontal Axis)
    1st group - Payment Yr
    2nd group - Payment Mo
    Intersecion /Detail Group - Payment Amount
    My problem actually is how to compute for the running balance of the loan for each month in the horizontal axis. Ive already created a cross product summary to get the running total of the payments made for the month. I tried creating a formula column to for the running balance by subtracting it from the loan amount but i get the error "incompatible frequency"
    I hope i have described my problem well and thanks for the help

    The problem is that you're trying to reference dimension columns(loan Amount) in the calculation of matrix cell values. You can only reference other matrix cell values or cross product columns (summary, formula, placeholders) when calculating matrix cell values. Try moving the (loan Amount) column down to the matrix cell - something like:
    For Query 1 (Vertical Axis),
    1st group - G_LoanYear(LoanYr)
    2nd group - G_LoanMonth(LoanMo)
    3rd group - G_LoanNumber(Loan#)
    For Query 2 (Horizontal Axis)
    1st group - G_PaymentYear(PaymentYr)
    2nd group - G_PaymentMonth(PaymentMo)
    Intersecion /Detail Group - G_Details(PaymentAmount, LoanAmount)
    Then create the following Matrix summary columns:
    A running summary - CS_Payments:
    - Product Order: G_LoanYear G_LoanMonth G_LoanNumber G_PaymentYear G_PaymentMonth
    - Source: PaymentAmount
    - Function: Sum
    - Reset At: G_LoanNumber
    The total amount per loan - CS_TotalPayment:
    - Product Order: G_LoanYear G_LoanMonth G_LoanNumber
    - Source: LoanAmount
    - Function: First
    - Reset At: G_LoanNumber
    The value of the loan after each payment - CF_Countdown:
    - Product Order: G_LoanYear G_LoanMonth G_LoanNumber G_PaymentYear G_PaymentMonth
    - PL/SQL Formula:
    function CF_CountdownFormula return Number is
    begin
    return(:CS_TotalPayment - :CS_Payments);
    end;
    You should then be able to display "CF_Payments" and "CF_Countdown" in the matrix cell to show how much has been paid and how much is still owed.
    You can still have another "loan amount" as a dimension column - you just don't need to use it when calculating the values in the cell.

  • Problem in matrix report

    i make a matrix report and the data is arabic
    when i make concurrent pdf or html the arabic is not appear as i want.
    when i try to make a template i can't because the option is table or table/form.
    what is the solution?

    You need to use an outer join in some way. See these similar problems:
    Re: Display null rows / columns in matrix report
    Re: To obtain all the Month details

  • Displaying a matrix on a Forms 6 form

    Guys:
    I'm trying to figure out a way to display
    a matrix on a form with three fields
    2 text items and 1 check box eg.
    Dept
    ====
    Emp Finance Projects Transport ...
    ===
    John X
    Tom X
    Sam X
    Pete X X
    Any ideas???
    Thanks!
    Abhay

    Hi
    I had similar problem. May be my dicision will be helpfull for you.
    There are table (for simplicity) sheet(emp, day, job) with the primary key(emp, day). It's needed matrix with X axis as 'emp', Y axis as 'day' (for a one month) and 'job' as the cell.
    I created block SHEET_BLOCK with the items: EMP, DAY_01, DAY_02, ..., DAY_31. 'Query Data Souce Name' is:
    SELECT emp FROM sheet;
    EMP is the 'Database Item', but another (DAY_??) aren't 'Database Item'.
    Cteated POST_QUERY trigger for populating fields DAY_??:
    DECLARE
    v_dest_item VARCHAR2(80);
    v_rec_num NUMBER;
    CURSOR c_emp_day_job IS
    SELECT day, job
    FROM sheet
    WHERE emp = :SHEET_BLOCK.EMP
    BEGIN
    IF :System.Mode != 'QUERY' THEN
    RETURN;
    END IF;
    FOR v_emp_day_job IN c_emp_day_job LOOP
    v_dest_item := ':SHEET_BLOCK.DAY_' &#0124; &#0124; v_emp_day_job.day;
    COPY( v_emp_day_job.job, v_dest_item );
    END LOOP;
    END;
    Andrew.

  • Server and Presentation Variables and Displaying in Dashboard Report

    Hello I am running into dead ends trying to get what seems a simple request implemented. The user would like to be prompted for a Date range and have the dates they select displayed in the Title of the report, they also would like the default data set returned be the prior month (so not all data is returned when they initially run the Dashboard)
    I have a Dashboard prompt where the user is prompted for a Date Range (Date column). My first issue was being able to display the Date range in the title. I used the below post from Venkash
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/
    I set the Case statements in the Dashboard prompt to equal then passed them to a Presentation variable. I then used these to be displayed in the Title of my Answers report.
    The issue now is automating prior month, I was informed I would have to set up a Repository Variables to initialize two columns - one bringing in Prior Month First Day and one bringing in Prior Month Last Day. I then set these as the defaults in the Dashboard Prompt.
    This works, however, my problem now is when the values are displayed in the report initially, they have the value of TimeStamp '01-01-2008 00:00:00'. When I put in values in the Dashboard Prompt and hit go the values are replaced correctly with whatever I put in - 1/1/2008.
    I assume the TimeStamp shows because of the initialization I am doing in the repository, I don't see any way of changing this so it reflects just the date, I am using the sysdate in the formula on the repository - I tried converting to_char first setting the format then converting back to Date. But still no luck.
    Has anyone else encountered this? Or am I even going about it the wrong way? Sorry for the long post, I look forward to any input, thanks!!!

    No it errors out when I try to Cast the server variable as a Date in the Dashboard Prompt interface.
    The variable I created in the repository (Server/Dynamic) has the formula:
    SELECT Add_Months(TO_DATE((to_char(sysdate,'mm')) || '/' || '01/' || to_char(sysdate,'YYYY'),'MM/DD/YYYY'),-5) from dual
    This is set up with an Initialization block that when I first run the report it displays in the title
    TIMESTAMP '2007-10-01 00:00:00'
    This will display no matter what I change the Initialization block to (01, ab, etc) so I guess it is something from the formula.
    Now when a user does enter a value into the prompt box and hits GO the title changes to reflect a date and looks great (10/1/2007), but I guess this is because it is now passing the database column value to this presentation variable.
    I assume this all revolves around the formula I am creating in the repository to return a default of 10/1/2007 so it can be displayed in the report header like that and not with the TimeStamp format above.
    I appreciate all your input, thanks again!

Maybe you are looking for

  • Mini-Dvi to HDMI or S-video, also sound issues

    Hello, I want to connect my iMac with a Mini-Dvi port to a TV and want to hear the sound from the TV. What adapters will i need to hook it up to a HDMI port, and will this connection also produce sound on the TV? If that can't be done can I use a s-v

  • Printer Drivers for HP LaserJet CP1515N using Windows 7 64 bit

    I am repeating the message as it is shown as solve below and this is not correct. I am trying to find drivers for the HP LaserJet  CP1515N that work for network printing. The HP site shows drivers are available but when you try to load them it shows

  • Number of Connections in the JDeveloper

    //**Bad English I am working witch J2SE. I have one AplicationModule. I have one JDesktopePane that it has two JMenu. One window for country, other for State both in exactly ApplicationModule. When I open the two screens at the same time it I create

  • Cost Assignment Change on Header Level

    This User changed the cost assignment at the top level to an internal order; however, it did not apply to one of the hotel charges. The other charge on the same date for the same vendor did change. What caused the one transaction to remain with a cos

  • CX_SY_ARITHMETIC_OVERFLOW    error

    Dear All while connecting  external content server to SAP. while I run report RSCMST, it throws dump. Error analysis An exception occurred that is explained in detail below. The exception, which is assigned to class 'CX_SY_ARITHMETIC_OVERFLOW', was n