Problem showing values for JProgressBar!!

Hi there!!
I'm having two classes,one named TestProgressBar which contains a JProgressBar whose values I want to increment for every specific calculated value and the second named showTable which defines the table model for a table structure I'm showing in the frame of TestProgressBar.In fact I'm trying to load the values of an in-class defined array into the table but I want to do it in a way that after every line shown in the table my JProgressBar increments the percentage of lines shown,,e.g I have 4 rows to populate and after 1 line has been shown in the table,the percentage out of 4 lines checked becomes 25%,,so I want the JProgressBar to show 25%,,then come back,,show the second line in the table and increment the JProgressBar to the next calculated percentage,,which in this case wud be 50%...I'm attaching my code for the two classes here,,
/////////////////TestProgressBar/////////////////////////////////
import javax.swing.JTable;
public class TestProgressBar extends javax.swing.JFrame implements Runnable{
    static int rowsCheckedPercentage;
    static int noOfRows;
    static int currentRowNumber;
    int[] arr={1,2,3,4};
    /** Creates new form TestProgressBar */
    public TestProgressBar() {
        initComponents();
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
    private void initComponents() {
        jScrollPane1 = new javax.swing.JScrollPane();
        jButton1 = new javax.swing.JButton();
        jProgressBar1 = new javax.swing.JProgressBar();
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        jButton1.setText("Click");
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton1_Clicked(evt);
        jProgressBar1.setStringPainted(true);
        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .add(198, 198, 198)
                        .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 98, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(layout.createSequentialGroup()
                        .addContainerGap()
                        .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 470, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(layout.createSequentialGroup()
                        .addContainerGap()
                        .add(jProgressBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 470, Short.MAX_VALUE)))
                .addContainerGap())
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .add(41, 41, 41)
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 220, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(16, 16, 16)
                .add(jProgressBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 30, Short.MAX_VALUE)
                .add(jButton1)
                .addContainerGap())
        pack();
    }// </editor-fold>                       
    private void jButton1_Clicked(java.awt.event.MouseEvent evt) {                                 
        run();
     * @param args the command line arguments
    public void run()
        showTable tableModel=new showTable();
         table=new JTable(tableModel);
         System.out.println("No. of rows"+table.getRowCount());
         noOfRows=table.getRowCount();
         for (int i=0;i<arr.length;i++)
            table.setValueAt(arr,i,0);
table.setValueAt(arr[i],i,1);
table.setValueAt(arr[i],i,2);
table.setValueAt(arr[i],i,3);
currentRowNumber=i;
try
Thread.sleep(2000);
new Thread(new thread2()).start();
catch (InterruptedException ex)
ex.printStackTrace();
jScrollPane1.setViewportView(table);
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new TestProgressBar().setVisible(true);
public class thread2 implements Runnable{
public void run()
System.out.println("Thread for JProgressBar");
rowsCheckedPercentage=(currentRowNumber+1)*100/noOfRows;
System.out.println("**Percentage checked "+rowsCheckedPercentage);
jProgressBar1.setValue(rowsCheckedPercentage);
jProgressBar1.repaint();
// Variables declaration - do not modify
private javax.swing.JButton jButton1;
private javax.swing.JProgressBar jProgressBar1;
private javax.swing.JScrollPane jScrollPane1;
// End of variables declaration
private javax.swing.JTable table;
//////////////showTable//////
* showTable.java
* Created on May 28, 2007, 3:37 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
* @author Kamran
import javax.swing.table.*;
public class showTable extends AbstractTableModel{
    public showTable()
    /** Creates a new instance of showReults */
    private String[] columnNames = {"Col1","Col2","Col3", "Col4"};
    private Object[][] data = {
    public int getColumnCount() {
        return columnNames.length;
    public int getRowCount() {
        return data.length;
    public String getColumnName(int col) {
        return columnNames[col];
    public Object getValueAt(int row, int col) {
        return data[row][col];
    public Class getColumnClass(int c) {
        return getValueAt(0, c).getClass();
     * Don't need to implement this method unless your table's
     * editable.
    public boolean isCellEditable(int row, int col) {
        //Note that the data/cell address is constant,
        //no matter where the cell appears onscreen.
            return false;
     * Don't need to implement this method unless your table's
     * data can change.
    public void setValueAt(Object value, int row, int col) {
        data[row][col] = value;
        fireTableCellUpdated(row, col);
}One more problem associated with it is that the first percentage values being shown in the console is 50% not 25%,,don't get what's the problem for it,,though this values when calculated inside the JProgressBar's run() method gives me right values,,i.e 25,50,75,100..
Can anybody please help??Thanks in advance,,,,,

Project definition values appear fine as expected in CN41 .
Is that mean that you have created a new custom fields for project definition using an exit? Are you able to view those fields in CN41 report?  Please confirm. 
Because, there is a thread available now, where a user is not able to see project definition custom fields in CN41 report. You reply may help him.

Similar Messages

  • Problems showing Values in a DROPDOWNBYINDEX

    Hello together,
    I've got a problem of showing values in a Drop Down  Box.
    I've got 1 Dropdown box, 1 button and a text field. In the text field i'm wirting a carrid for example AC.
    If i press the button in the Drop down box should show the name to the corresponding carrid for example Air Canada.
    this is my code till yet. But i don't see what's missing.
    Maybe anybody can help?
      Data: context_node type ref to if_wd_context_node.
      Data: it_carriers TYPE STANDARD TABLE OF scarr,
            wa_carriers LIKE LINE OF it_carriers,
            wa_carrid(3) TYPE c.
      context_node = wd_context->get_child_node( 'DROPDOWN_CARRIERS' ).
      context_node->get_attribute( exporting Name = 'CARRID' importing value = wa_carrid ).
      select * from scarr
        INTO wa_carriers
        WHERE carrid = wa_carrid.
        APPEND wa_carriers TO it_carriers.
      ENDSELECT.
      context_node = wd_context->get_child_node( name = 'CARRID').
      context_node->BIND_TABLE( new_items = it_carriers ).

    Get the selected row by using code wizard and use the values of the structure whereever you want. Refer to the below code:
    Suppose I have a Node NODE_OUTPUT and binded with my table UI element. We need to get the selected row (ls_node_output) in my Button UI event handler method as below:
        DATA lo_nd_node_output TYPE REF TO if_wd_context_node.
        DATA lo_el_node_output TYPE REF TO if_wd_context_element.
        DATA ls_node_output TYPE wd_this->element_node_output.
      navigate from <CONTEXT> to <NODE_OUTPUT> via lead selection
        lo_nd_node_output = wd_context->get_child_node( name = wd_this->wdctx_node_output ).
      get element via lead selection
        lo_el_node_output = lo_nd_node_output->get_element( ).
      get all declared attributes
        lo_el_node_output->get_static_attributes(
          IMPORTING
            static_attributes = ls_node_output ).

  • Show value for key in table

    Hello,
    i have a table in a view that shows data that comes from a aRFC
    model from the R/3 backend.
    So far so good, the values shown are the same as in the backend.
    Now i have the problem that two colums in this table contain only
    keys (one character, represented as String).
    I want to show the right values for this keys in the table, so i created
    two simple types that contain the enumerations for these two columns.
    The problem is, that i can not change the type of these two elements
    in the Context of the view controller, because they are mapped from
    the model and can not be altered.
    Is there a "best practice" approach to the topic of getting values for
    given keys from the backend?

    Hello Armin,
    yes you can change the type of your with something like this:
    // get Mofiable type of your model attribute
    ISimpleTypeModifiable statiType =               wdThis.wdGetAPI().getContext().getModifiableTypeOf(
         "YourModelNode.YourModelNode.YourModelAttribute");
    // Set valid values for this data type
    IModifiableSimpleValueSet statiValues =statiType.getSVServices().getModifiableSimpleValueSet();
    statiValues.clear();
          for (int i = 0; i < yourValues.size(); i++) {
              //set key value pairs
              String statusText = yourValues.get(i);
             statiValues.put(i, statusText);
    Hope it helps, regards
    Sakib

  • Need to create a report to show values for a particular date range

    I have to create a report, out of which I need two columns : << Customer Value Variance and Churn Score Variance >> to show values only for a custom date range, which will be entered via a dashboard prompt.
    These generic date columns are not present and cannot be added. I have to make use of Pres variables
    What I have currently done is:
    1) Created a prompt with 2 different date columns and passing those values into variables vStartDate and vEndDate. (I don't actually need those 2 column which I have selelcted, but I have taken those so that I can prompt the values in calendar format and pass onto the variables)
    2) Created report with necessary columns, with 2 extra columns (hidden) as vStart Date Column and vEnd Date Column which take the values from the presentation variables defined in the prompt. I have created these columns as then I can reference these in the two required columns if necessary.
    I am already facing error in report after doing this and I am confused how to proceed. Any suggestions?
    Thanks.

    Yes, but it only has one generic Date column, no start date and end date. I can't use that twice in the prompt. Although I can specify it to be 'between', but I'm not sure I can pass values to both variables like that.
    Currently I have used Campaign Start Date and Campaign End Date to enter values in calender format to the variables.

  • Show N/A for for particular combination and show value for specific combination only

    I have following cube Structure:
    Measure
         Value
    DimTime
        Fiscal Month
    DimTable
       Table Name
       Row Name
       Column Name
    DimGeography
       GeographyLevelName
       GeographyName
    Questions:
    1) I want to show N/A when only measure value is selected
    2) I want to show N/A when I slice measure value w.r.t to GeographyLevelName, GeographyName, FiscalMonth, TableName, Row Name
    3) I want to show measure value for this combination only FiscalMonth, GeographyLevelName, GeographyName, FiscalMonth, TableName, Row Name, Column Name and Value (measure)
    Option tried:
    I used Scope to achieve this but not able to do for all scenarios:
    SCOPE(Measure.[Value]);
         SCOPE(Root());
               SCOPE(Measure.[Value], DimTime.[Fiscal Month].MEMBERS, DimTable.[Table Name].MEMBERS,
                      DimTable.[Row Name].MEMBERS, DimTable.[Column Name].MEMBERS,
                      DimGeography.[GeographyLevelName].MEMBERS,   
                      DimGeography.[GeographyName].MEMBERS);
                      THIS = 'N/A';
            END SCOPE;
         END SCOPE;
    END SCOPE;
    Any suggestion is appreciated :) :D

    SCOPE(
              [Measures].[Metric Value]
            , [Dim Time].[Fiscal Month Name].MEMBERS        
            , [Dim Geography].[Geography Name].MEMBERS
            , [Dim Metric].[Row Name].MEMBERS
            , [Dim Metric].[Column Name].MEMBERS
        THIS = IIF (
                    [Dim Metric].[Row Name].CurrentMember 
    IS [Dim Metric].[Row Name].[All]
    OR [Dim Metric].[Column Name].CurrentMember 
    IS [Dim Metric].[Column Name].[All]
    OR [Dim Time].[Fiscal Month Name].CurrentMember 
    IS [Dim Time].[Fiscal Month Name].[All]
    OR [Dim Geography].[Geography Name].CurrentMember 
    IS [Dim Geography].[Geography Name].[All] 
            , "Error: Check the Dimension selected"  
            , IIF (
                          //Enter your combination                        
    [Dim Metric].[Row Name].CurrentMember IS 
    [Dim Metric].[Row Name].&[MPS]  
    AND  [Dim Metric].[Column Name].CurrentMember 
    IS [Dim Metric].[Column Name].&[YoYASP]
    OR 
                     [Dim Metric].[Row Name].CurrentMember 
    IS [Dim Metric].[Row Name].&[ASP] 
                     AND  [Dim Metric].[Column Name].CurrentMember 
    IS [Dim Metric].[Column Name].&[% PTR]
                  , "N/A"
                  , IIF (
                            ISEMPTY([Measures].[Metric Value])
                           , "No Data"
                           ,[Measures].[Metric Value] 
    END SCOPE;

  • F4 not showing values for Variable

    Hi Everyone,
    In BEx Web analyzer, the one of variable not showing values after pressing F4 but for the same query if we execute in BEx analyzer it shows the variable values.
    How we can rectify this issue for BEx Web Analyzer?
    Please suggest..
    Thanks
    Kind Regards
    Anukul

    Hi,
    Just check following setting are also done.
    transaction RSA1 -> Query-infoprovider -> "display" -> look for the relevant infoobject -> right-mouse-click -> "provider-specific Properties" -> "Query Exec. FilterVal"
    Set this option to "Master Data" and recheck the behaviour.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20ecb78c-374a-2d10-c6af-f024f19b785d?QuickLink=index&overridelayout=true
    If above doesn't help pl check for sap note.
    Thanks and regards

  • Plz. help,table does not show value for one field

    hi all,
    i have a really strange problem , i have a string field in access database that contains the date and time value,this field for some strange reason does not show in my table created through html,
    i tried all combination(arranging the fields) ,renaming it w/o help, it shows the value using out.println(but then why is it not showing me in the table???)
    plz. help ASAP.
    the code is as under
    <HTML>
    <HEAD><TITLE> LOGGED IN ok</TITLE> </HEAD>
    <BODY bgcolor = "yellow">
    <%@ page import = "java.sql.*" %>
         <%! // declaring variables
    String s = "";
    java.sql.ResultSet rs=null,rs1=null,rs2=null;
    java.sql.Connection con;
    java.sql.Statement stmt,stmt1;
    String empId = "",compid ="",calltype ="",probheader="",probdescription ="",probcomment ="",priority ="",a="";
    %>
    Following are the pending complaints ..
         <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 width="100%">
         <TR>
         <TD> ComplainD </TD>
    <TD> ComplainId </TD>     
    <TD> ProbHeader </TD>     
    <!--
    <TD> ProblemDescription </TD>     
    <TD> Problem Comments </TD>     
    -->
    </TR>
         <%
         try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};" +"DBQ=c:/vishal/HelpDesk.mdb;DriverID=22;READONLY=false","","");
         //java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:Portal");
              java.sql.Statement stmt = con.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY);
              s = "select * from Complains";
         java.sql.ResultSet rs = stmt.executeQuery(s);               
                        while(rs.next())
                        //getting data from database
                                                           empId = rs.getString("EmpId");                    // out.print(" " + empId);
              compid = rs.getString("ComplainId");
              // out.print(" " + compid);
              calltype = rs.getString("CallType");
              // out.print(" " + calltype);
                        a = rs.getString("Complaindate"); //problem with this field
    out.print(a); // prints value
              %>               
                        <TR>      
                        <TD> <%=compid %> </TD>
                        <TD> <%=calltype %> </TD>     
                        <TD <%=a %> </TD>
                                       </TR>
    <%
                        }//while loop          
         %>
         </TABLE>     
         <%                
         }//try
              catch(Exception ep)
              out.println(ep);
              System.exit(1);
    %>
    </BODY>
    </HTML>
    value in database is as follows :-
    Complaindate
    5/18/2003 1:30:27 PM
    5/18/2003 7:32:43 PM
    5/18/2003 7:34:02 PM
    5/18/2003 7:49:19 PM
    5/18/2003 7:50:27 PM
    5/18/2003 10:49:42 PM
    5/18/2003 10:58:24 PM
    thanking u ,plz ask if any further clarifications

    Hi
    I am seeing nothing wrong with ur code..
    what about "view source" result.....plz check with that...
    whether u r getting all the trs and tds...
    revert back on this Issue..
    Mars Amutha

  • Show value for mismatch query

    select * from my_table  is
    cust_code     account_code
    ABC123          789
    DEF234          456
    +               987when i
    select * from my_table
    where cust_code = 'ABC123'it gives the correct query, i also need when i
    select * from my_table
    where cust_code = 'XYZ999'to show the result of +
    cust_code     account_code
    +               987when ever CUST_code not found show the + value only

    Try this
    Wrote file afiedt.buf
      1  WITH my_table as ( select 'ABC123' cust_code, 789 account_code from dual union all
      2     select 'DEF234',     456 from dual union all
      3     select '+',              987 from dual )
      4  select
      5     *
      6  from
      7     my_table
      8  where
      9*   cust_code = nvl((select cust_code from my_table where cust_code ='ABC123'),'+')
    SQL> /
    CUST_C ACCOUNT_CODE
    ABC123          789
    SQL> ed
    Wrote file afiedt.buf
      1  WITH my_table as ( select 'ABC123' cust_code, 789 account_code from dual union all
      2     select 'DEF234',     456 from dual union all
      3     select '+',              987 from dual )
      4  select
      5     *
      6  from
      7     my_table
      8  where
      9*   cust_code = nvl((select cust_code from my_table where cust_code ='XYZ999'),'+')
    SQL> /
    CUST_C ACCOUNT_CODE
    +               987
    SQL>

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • Calculating Accumulative Value for a particular period

    Hi,
    I want to calculate acumulative values based on 0calmonth for a key figure.
    In Rows, i want 0calmonth and a key figure in Columns. If we select the property of the key figure as "Cumulative". It is adding values like in first month, first month value, in 2nd month it is showing the values by adding 1st and 2nd months. But I gave a Interval variable on 0calmonth (e.g  03.2006 to 09.2006 ) it displaying cumulative values from 3rd month. In 4th month it is showing value for 3rd and 4th month. But i want to see the values as "Accumulative" means from starting of that year. Eventhougth i gave the period value as 03.2006 to 09.2006, it has to display the value of 3rd month as adding of 1st,2nd and 3rd months. like that it has to show up to last month in the given peroid.
    Please can any one suggest me....
    Thanks and Regards
    Rajesh
    Message was edited by:
            rajesh
    Message was edited by:
            rajesh

    Hi ,
    For my Above Problem I am using the code as follows. But it has no errors. but when it is displaying on the web browser. it is not getting values.
    DATA: L_S_RANGE1 TYPE RSR_S_RANGESID.
          DATA: LOC_VAR_RANGE1 LIKE RRRANGEEXIT.
          DATA: L_VALUE LIKE RRRANGEEXIT-HIGH.
    CASE I_VNAM.
        WHEN 'ZCUM_INTERVAL'.
          IF I_STEP = 2.
          LOOP AT i_t_var_range INTO LOC_VAR_RANGE1 WHERE VNAM = '0I_CMNTH'.
             L_VALUE = LOC_VAR_RANGE1-LOW.
             while L_VALUE4(2) < LOC_VAR_RANGE1-HIGH4(2).
                if sy-index > 1.
                  L_VALUE4(2) = L_VALUE4(2) + 1.
                  if strlen( L_value+4(2) ) = 1.
                     concatenate '0' L_VALUE4(2) into L_VALUE4(2).
                  endif.
                endif.
                CLEAR L_S_RANGE1.
                L_S_RANGE1-LOW = LOC_VAR_RANGE1-LOW(4).
                L_S_RANGE1-LOW+4(2) = '01'.
                L_S_RANGE1-HIGH = L_VALUE.
               L_S_RANGE1-SIGN = 'I'.
               L_S_RANGE1-OPT = 'BT'.
                APPEND L_S_RANGE1 TO E_T_RANGE.
              ENDwhile.
            ENDLOOP.
          ENDIF.
    Please can any one suggest me regarding this.
    Thanks in Advance...
    TR
    Rajesh

  • Calculate result as average in the report not showing average for all

    Hello,
    I have a calculated key figure in the query where its result should show average. I have made a setting for this calculated key figure as:
    1. Calculations tab: Calculate result as "average" and calculate single value as "nothing defined"
    2. Aggreagation tab: exception aggregation: Total and reference char: []
    Now coming to report, BEX it showing correct average for all cells but when i run it in portal few values it is showing correct average but for few it is showing as blank. I exported this to excel then cell shows blank but cell has some values in the custom format and display values when i change the format to general from "format cells" option.
    Please help me in resolving the issue- why portal not showing value for all.
    Thanks,
    Vijaya

    SAP note solved the purpose.
    Thanks & Regards,
    Vijaya

  • Filter value for specific quarter

    I have a report that shows value for last two years by quarter. The requirment I got ask for comparing each quarter value with last year Q4 value.
    It is like:
    2011Q1
    2011 Q 2
    2011 Q 3
    2011 Q4
    2012 Q1
    2012 Q2
    2012 Q3
    2012 Q4
    2011 Q1/2010 Q4
    2011 Q2/2010 Q4
    2011 Q3/2010Q4
    2011Q4/2010Q4
    2012 Q1/2011 Q4
    2012 Q2/2011 Q4
    2012 Q3/2011 Q4
    2012 Q4/2011 Q4
    How shoud I write the formular to achive this? Thank you for your input.

    create a column that store previous quarter result and then use the formula to create another column to store the comparision.
    The formula would be case when start_date>= @year_start and end_date <= @year_end then table.measure/table.measure_previous_quarter end
    Please mark if helpful.
    Regards,
    Akansh Agarwal

  • No Values for 0COPC_C04

    Dear All,
    Im in a Strange situation kindly help me.
    I have successfully loaded the data to the  cube - 0COPC_C04(standard cube)using the following data sources
    0CO_PC_ACT_02
    0CO_PC_ACT_05
    Customers business started fron Mar 2008, but the the reports based on this are showing values for only Current  and previous months and also the last month of previous year.Im not getting the values for other months.
    I've checked in cube also its showing same, only 2 months values.
    Why its behaving like that? is there any specific reason?how to get rest of the months data?
    Kindly help me.
    Regards,
    Yunus
    Can some one tell me what is the reason?

    Hi,
    Are you maintaining Material Ledger in R/3?  If you are not, you will have only values for the periods mentioned.
    Take a look at these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/51/7fe767107211d48b390000e83234f3/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/a1e338d96cd84fe10000000a11405a/content.htm
    BR/
    Mathew.
    Edited by: Mathew Muthalaly on Aug 11, 2008 11:07 AM

  • CN41 report with out values for project dates

    Hi Experts
    The following field values are captured in Table PROJ.
    a. Finish Date PROJ-PLSEZ
    b. Forecast Start PROJ-SPROG
    c. Forecast Finish PROJ-EPROG
    But the report CN41/CN41N does not show values for these fields.
    Can anybody give clue to get this report with values for the above fields.
    Warm regards
    ramSiva

    HI,
    if you want the top  - of - page to be displayed
    even when we scroll down
    then use this
    try to give heading as text elements by giving some spaces
    TOP-OF-PAGE.
      PERFORM display_header.  RESERVE 10 LINES.
    form
      SET LEFT SCROLL-BOUNDARY COLUMN 84.
      FORMAT COLOR COL_BACKGROUND INTENSIFIED ON.
      WRITE:/01(252) text-h01 CENTERED.
      WRITE:/01(252) text-h06 CENTERED.
      SKIP.
    endform
    as it is working fine in my report
    reward points if helpful,
    regards,
    venkatesh

  • How to show multiple values for Unique records in Report

    Here's my question/problem:
    I've joined two tables, one table (TBL1) contains an object id (OBJ_ID) that repeats and the other table (TBL2) contains a date (DT), object type id (OBJ_TYP_ID), and object type description (OBJ_TYP_DES). The tables are joined by an inventory id (INV_ID).
    The OBJ_ID repeats and has a Date value for each record. I want to report an unique OBJ_ID and show each Date for a particular OBJ_ID in multiple Columns.
    An example of the current resultset looks like this:
    OBJ_ID OBJ_TYP_ID OBJ_TYP_DES DATE
    1 1 TYPE1 4/1/2009
    2 1 TYPE1 4/1/2009
    3 1 TYPE1 4/10/2009
    1 2 TYPE2 5/3/2009
    3 1 TYPE1 3/30/2005
    4 1 TYPE1 4/1/2009
    5 1 TYPE1 4/1/2009
    5 2 TYPE2 5/1/2009
    1 1 TYPE1 4/3/2007
    1 1 TYPE1 3/30/2005
    I want to express the resultset like this:
    OBJ_ID OBJ_TYP_ID OBJ_TYPE_DES DATE1 DATE2 DATE3
    1 1 TYPE1 4/1/2009 4/3/2007 3/30/2005
    1 2 TYPE2 5/3/2009
    2 1 TYPE1 4/1/2009
    3 1 TYPE1 4/10/2009 3/30/2005
    4 1 TYPE1 4/1/2009
    5 1 TYPE1 4/1/2009
    5 2 TYPE2 5/1/2009
    What technique is best to use to do this? I know I could create another table and populate the rows/columns by reading data from this query, but is there a better way?

    Hi,
    cclemmons wrote:
    I want to express the resultset like this:
    OBJ_ID OBJ_TYP_ID OBJ_TYPE_DES DATE1 DATE2 DATE3
    1 1 TYPE1 4/1/2009 4/3/2007 3/30/2005
    1 2 TYPE2 5/3/2009
    2 1 TYPE1 4/1/2009
    3 1 TYPE1 4/10/2009 3/30/2005
    4 1 TYPE1 4/1/2009
    5 1 TYPE1 4/1/2009
    5 2 TYPE2 5/1/2009
    What technique is best to use to do this? I know I could create another table and populate the rows/columns by reading data from this query, but is there a better way?Absolutely! You seem to have an instictive feeling that creating a separate table just for a query is inefficient. You instinct is 100% correct. Maybe in Oracle 7 there was a reason to do that, but today you can query results of other queries as if they were tables, so temporary tables like you describe are very rarely necessary, let alone convenient.
    What you want to do is pivot the date columns. Here's one way
    WITH     original_query     AS
         SELECT  obj_id
         ,     obj_typ_id
         ,     obj_typ_des
         ,     dt          -- date is not a good column name
         FROM     ...          -- the rest of your original query goes here
    ,     got_rnum     AS
         SELECT     oq.*
         ,     ROW_NUMBER () OVER ( PARTITION BY  obj_id
                                   ,                    obj_typ_id
                             ,             obj_typ_des
                             ORDER BY        dt     DESC
                           )         AS rnum
         FROM    original_query        oq
    SELECT       obj_id
    ,       obj_typ_id
    ,       obj_typ_des
    ,       MAX (CASE WHEN rnum = 1 THEN dt END)     AS dt1
    ,       MAX (CASE WHEN rnum = 2 THEN dt END)     AS dt2
    ,       MAX (CASE WHEN rnum = 3 THEN dt END)     AS dt3
    ,       MAX (CASE WHEN rnum = 4 THEN dt END)     AS dt4
    ,       MAX (CASE WHEN rnum = 5 THEN dt END)     AS dt5
    FROM       got_rnum
    GROUP BY  obj_id
    ,       obj_typ_id
    ,       obj_typ_des
    ;As you can see, this adds two layers of queries on top of your original query. One of those layers is probably not needed; depending on what you're doing in your original main query, you can probably compute rnum there, and omit the got_rnum sub-query.
    Also, depending on the relationship of obj_id, obj_typ_id and obj_typ_des, some of what I posted above may not be needed but including it won't really hurt.
    If you want to know more about this technique, search for "pivot" or "rows to columns". A <tt>SELECT ... PIVOT ...</tt> keyword was introduced in Oracle 11, but most of what you'll find when you search for "pivot" doesn't assume you have Oracle 11 (nor does the query above require Oracle 11).
    This assumes you know an upper limit (5 in the example above) of dts that can appear in any line of output.
    See [this thread|http://forums.oracle.com/forums/thread.jspa?messageID=3527823&#3527823] for a discussion of some alternatives.

Maybe you are looking for

  • SAP Easy Document Management 7.0

    Hie Gurus I am implementing SAP document Management and have tried using SAP Easy DMS version 6.0. I understand that there is Easy DMS version 7.0 but i dont know were to find it so that i can download it, the link that i found on help.sap.com could

  • How do I insert a white background all throughout my iMovie?

    Apologies if this is a primative question, but I cannot find the answer anywhere. I'm on a Mac (10.9.2), using iMovie 10.0.2, and I've tried inserting "Maps & Backgrounds" white, which hasn't done the job (thought it would allow me to use it as a tru

  • Difference between RP_PROVIDE_FROM_LAST and RP-PROVIDE-FROM-LAST

    Can anyone tell me the difference between RP_PROVIDE_FROM_LAST and RP-PROVIDE-FROM-LAST?  Both the macros are same difference is with underscore(_) and hiphen(-).  Both are working fine for the functionality without any difference.  Then why there ar

  • Ios wont play videos in HTML5

    Dear all, When I publish my captivate 7 project, computers can play the project without any problem. But when I try to acces slides with video on it from an IPad/IPhone, it is completely blank. Any help is really apriciated! I have tried the HTML5 tr

  • Suggestion for alternative to Mail 4.2 for downloading gmail POP mails

    As noted elsewhere, Mail 4.2 doesn't like gmail POP. I know Thunderbird and Eudora will do the trick but has anybody any suggestions/recommendations?