Index of the Headings in the Table - Group row number 1. 1.1

I need to see the data as below in the grouping table
Index of the Headings in the Table.
1  Heading
1.1 Sub Heading
1.1.1 Detail Heading1
1.1.2 Detail Heading2
etc..
kindly help me on the expression
ShanmugaRaj

Hi ShanmugaRaj,
Suppose my Heading field is SalesTerritoryGroup, Sub Heading field is SalesTerritoryCountry, Detail Heading field is CalendarYear. Please refer to the following expression:
=Runningvalue(Fields!SalesTerritoryGroup.Value,countdistinct,"DataSet2") & " " &
Fields!SalesTerritoryGroup.Value
=Runningvalue(Fields!SalesTerritoryGroup.Value,countdistinct,"DataSet2") & "." &
Runningvalue(Fields!SalesTerritoryCountry.Value,countdistinct,"SalesTerritoryGroup") & " " &
Fields!SalesTerritoryCountry.Value
=Runningvalue(Fields!SalesTerritoryGroup.Value,countdistinct,"DataSet2") & "." &
Runningvalue(Fields!SalesTerritoryCountry.Value,countdistinct,"SalesTerritoryGroup")
& "." & Runningvalue(Fields!CalendarYear.Value,countdistinct,"SalesTerritoryCountry")
& " " & Fields!CalendarYear.Value
If you have any questions, please feel free to let me know.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support
The Report is very slow in rendering now after this logic.. Could you suggest on making it faster
ShanmugaRaj

Similar Messages

  • Secondary Index for the table MSEG

    Hi folks,
             One of my report is comparetively very slow when it is executed in the production server. when i chked, a query related to the MSEG table is taking more time to execute. I want to create a secondary index for that table. Could any body tell  me the procedure of creating the seconday index for the table MSEG, as i am not aware of that.
    Thanks in advance,
    Shyam.

    Dear shyam,
    Search SDN before posting any thread their are 10k threads available for your question anyhow for your reference here is one link
    http://help.sap.com/search/highlightContent.jsp
    Cheers
    fareed

  • Why should we create index on  the table after inserting data ?

    Please tell me the Reason, why should we create index on the table after inserting data .
    while we can also create index on the table before insertion of the data.

    The choice depends on a number of factors, the main being how many rows are going to be inserted in the table as a percentage of the existing rows, or the percentage growth.
    Creating index after a table has been populated works better when the tables are large or the inserts are large for the following reasons
    1. The sort and creation of index is more efficient when done in batch and written in bulk. So works faster.
    2. When the index is being written blocks get acquired as more data gets written. So, when a large number of rows get inserted in a table that already has an index , the index data blocks start splitting / chaining. This increases the "depth" of the inverted b-tree makes and that makes the index less efficient on I/O. Creating index after data has been inserted allows Orale to create optical block distribution/ reduce splitting / chaining
    3. If an index exists then it too is routed through the undo / redo processes. Thats an overhead which is avoided when you create index after populating the table.
    Regards

  • Module pool ---Problem in finding the line index for the table control

    Hi Friends,
    I am working in Module pool programming.
    My requirement is when i select any record on the lead selection I need to find out the index of the line on which  row i have selected.
    Could any one please suggest me the proper solution how to get the line index for the table control in module pool programming.
    Thanks
    Satish Raju

    Hi Raju,
    Follow the steps
    <li>U should take one variable in your internal table or in structure which is used for table control fields.
          DATA :BEGIN OF itab OCCURS 0 ,
                mark TYPE c ,
                matnr LIKE mara-matnr ,
                matkl LIKE mara-matkl,
                maktx LIKE makt-maktx,
            END OF itab .
       controls: tabc types tableview using screen 100.
    <li>This mark variable should be given in Table control properties. follow the path
    double click on the table control-->attributes .->select w/SelColumn and in that give itab-mark.
    <li>Flow logic of the screen
       process before output.
         MODULE status_0100.
         LOOP AT itab with control tabc
         endloop.
       process after input.
         module cancel at exit-command.
         LOOP AT itab.
           MODULE read_table_control.
         ENDLOOP.
         MODULE user_command_0100.
    <li>read_table_control module code
         MODULE read_table_control INPUT.
         MODIFY itab INDEX tabc-current_line."this will update the itab table
                                             "mark field with 'X ' whatever we
                                             "have selected on table control
         ENDMODULE.
    <li>If you want to Delete some of the records from Table control follow this code u2026Create one pushbutton and give Fucnction code to that and write below code
       CASE okcode.
         WHEN 'DELETE'.
           LOOP AT itab WHERE mark = 'X'.
             DELETE itab.
           ENDLOOP.
       ENDCASE.
    I hope that it helps you.
    Thanks
    Venkat.O

  • Deleting data from a table where there are no indexes on the table

    Hi
    We have one interface program for one time process.When I was testing the process it was taking too much time to load the data around 1000 records.
    it happens in 2 steps
    1 puts into stage table
    2 puts into base table
    in the process/package I have delete statement that deletes data from stage table before each process.
    Stage table did not have any indexes but the base table has(obvisiosly)
    any idea?
    please help me on this.
    Thanks,
    Y

    Hi,
    Please post the application/database details along with the OS.
    Is this interface program a seeded or custom one?
    Please enable trace on this concurrent program as per (Note: 296559.1 - FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12) and generate the TKPROF to find out why it takes that long to load/delete the data.
    Thanks,
    Hussein

  • Index of the Table control - No lead selection activated

    Hi guys,
    I have a table control where there is no lead selection.... One colum of the table contains push button on all rows and I need to find the row id based on the click of the which row button... How to do this???
    regards,
    Prabhu

    Hi Prabhu ,
    write the below piece of code in the button Action .
    DATA lo_nd_node_table TYPE REF TO if_wd_context_node.
      DATA lo_el_node_table TYPE REF TO if_wd_context_element.
      DATA ls_node_table TYPE wd_this->Element_node_table.
    *   navigate from <CONTEXT> to <NODE_TABLE> via lead selection
      lo_nd_node_table = wd_context->get_child_node( name = wd_this->wdctx_node_table ).
      CALL METHOD wdevent->get_context_element
        EXPORTING
          name  = 'CONTEXT_ELEMENT'
        RECEIVING
          value = lo_el_node_table.  " getting the clicked line
      CALL METHOD lo_nd_node_table->SET_LEAD_SELECTION
        EXPORTING
          ELEMENT = lo_el_node_table.  " Setting the lead
      data lv_index type i.
      CALL METHOD lo_nd_node_table->GET_LEAD_SELECTION_INDEX
        RECEIVING
          INDEX = lv_index. " getting the index of the lead line
    Hope it will Helpfull .
    Regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Jun 28, 2010 12:04 PM

  • Things to consider while Creating Indexes in the tables

    Hi All,
    We have some application slow issues becasue of the tables which it is calling are Heap. There are Primary keys created on few tables though. I have to think and design the indexing on those tables. What are different things need to check to design the Indexes?
    Thanks
    Swapna

    Hi All,
    We have some application slow issues becasue of the tables which it is calling are Heap. There are Primary keys created on few tables though. I have to think and design the indexing on those tables. What are different things need to check to design the Indexes?
    Thanks
    Swapna
    Adding to what others have said create an index and check execution plan whether it is being used by optimizer or not if it is used and query runs fast that index can be kept
    You should also take help of DMV
    sys.dm_index_usage_stats to see whether index is being utilized or not. refer to user seek user update and user scan col. If Update is very much greater that seek/scan index is probably not utilized , you can consider removing it
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • Jdev11.1.1.0.1 How can i navigate to get details of the table selected row?

    hi ,
    i'm using jdeveloper 11.1.1.0.1 , and i want to navigate from a page containing a panel collection which contains a table with single row selection to another page contains the details of this selection. in 10g i was do that using #{row.rowKeyStr} in the from value of the buttons action listner but here this is not valid a red line appears when i write this in the from value , in the expression builder when i expand the jsp objects i can't find row node also if i expand the bindings node i can't find my attributes!! .
    please some one help me to do my task .
    thanks for care ,
    Ahmed Oraby

    Hi All,
    I am also trying to access the #{row.some_Attribute} of a table of the selected row. But it does not run it correctly. It says the reference to row can not be found. Any idea how to access the #{row.something} in ADF 11g.
    Thanks,
    Neeraj

  • To divide the table based on number of rows

    Hello,
    I am trying to divide a table based on the number of rows and then to process it.
    Say i have a table TEST_XXX which contains 50 rows, what i would like to do is,
    to access rows in multiple of 10. How can we do this ?
    What i was thinking is, once the table gets created and row are filled in,
    add a new column to the table and run a procedure which inserts 1 to first 10 rows
    and 2 to next 10 rows and 3 to next 10 row ...etc. Based on this we can process
    the first set of rows then next set or rows etc ....
    is there a better way to do this ?
    Code to create the table :
    CREATE TABLE TEST_XXX
      A_ID   VARCHAR2(10),
      B_ID   NUMBER,
      c_ID   VARCHAR2(10),
      D_ID   NUMBER
    )Code to add rows:
    DECLARE
    BEGIN
      FOR I IN 1..50
      LOOP
          INSERT INTO TEST_XXX VALUES('ABCDE',123,'ZYXWV',321);
      END LOOP;
      COMMIT;
    END;The original problem is, i do have a huge table, and i write a sql query to process it,
    when i process it selecting all values from table, it is very slow.
    But when i process it in small chuks(say 100 rows) it works fine.
    Thats how i was the above approach in mind.

    The original problem is, i do have a huge table, and i write a sql query to process it,
    when i process it selecting all values from table, it is very slow.Did you trace both the implementations and see why it is taking longer?

  • Displaying the table based on number of records.

    Hi Experts,
    I want to display a normal table based on the records, if there is only one record then only one row should be displayed on the table, if there are 2 records then 2rows should be displayed on the table with the data, if they are more than 2 records only 2 rows should be displayed on the table and remaining rows should be able to scroll on the table.
    Please Provide the requried infformation.
    Thanks & Regards.
    Bhushan.

    Hi Bhushan
      What exactly is row scroll? Did you not refer to the vertical scrollbar that appears when the number of rows is more than the number of displayed rows? Please clarify
    If it is the vertical table scroll bar you refered to then you will get it if the number of records are more than the visibleRowCount you set
    If it is the horizonal table scroll bar you refered to then you will get it by setting a fixed width to the table. If your column(s) value width exceeds the table width you have specified, you get the horizontal scrollbar.
    Regards,
    Gayathri Shanbhag

  • I want to get the current Cursor row number

    Hello!
    Is it possible to get the current row number of a cursor in a cursor loop?
    for c_1 in cursor_1
    loop
    dbms_output.put_line(c_1. ???) --> this should show: 1 in the first loop ,2,3,...
    endloop
    best regards,
    wolf

    SQL> declare
      2  cursor c is
      3  select * from emp;
      4  begin
      5  for r in c loop
      6    dbms_output.put_line(c%rowcount);
      7  end loop;
      8  end;
      9  /
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    PL/SQL procedure successfully completed.Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/02/07/aggiornare-una-tabella-con-listruzione-merge/]

  • I have partitioned my tables, do I need to rebuild the indexes of the table

    Hello,
    I have partition very huge tables, by using rage partition method. After that few queries taking more time than before. Does the old indexes needs to rebuild?
    Thanks

    929941 wrote:
    Hello,
    I have partition very huge tables, by using rage partition method. After that few queries taking more time than before. Does the old indexes needs to rebuild?
    ThanksWhat do you think?
    By the way, how did you partition existing tables? Did you use dbms_redefinition, or did you use CTAS, or some other method?
    I love RAGE partitions. You should always always partition your rage.

  • How to obtain the table index in word use LabVIEW Report Generation Toolkit for Microsoft Office

    I created a word templete and it had several tables. When I use the "Word Edit Cell" function in LabVIEW Report Generation Toolkit for Microsoft Office, the function need "table index", and I didn't find any function to get or set the table index in word document. How can I achieve my attention to write value to specified table cell using the "Word Edit Cell" function?
    Thanks for reply!
    YangAfreet

    Hi yangafreet
    You do not need to get the table index for the word edit cell.vi from anywhere. LabVIEW will automatically index all the tables in the document. See the attatched vi for an example.
    Rich
    Attachments:
    Table Edit.vi ‏23 KB

  • How to freeze the selection column in the table control of the module pool.

    hi ,
    in my module pool there is a row selection field  <b>w/selcolumn</b> of the table control called as mark.
    how to freeze the selection column where there is no record in the table control row.
    or in other words where wa is initial.
    thanks
    ekta

    Hi all,
    in the PBO of the screen the following code is written.
    say the selection column is MARK and is declared in the data as well.
    thanks
    ekta
    *************************C O D E **************************************************
    MODULE disp_tabctrl1 OUTPUT.
      IF flag_c = 1.
        READ TABLE it_create_data INTO wa_material_data
             INDEX tab_ctrl1-current_line.
      ELSE.
        READ TABLE it_material_data INTO wa_material_data
             INDEX tab_ctrl1-current_line.
        IF sy-subrc = 0.
          IF ok_code_0101 = '&SEL1'.
            mark = 'X'.
          ELSEIF ok_code_0101 = '&DSEL'.
            mark = ' '.
          ENDIF.
        ELSE.
          LOOP AT SCREEN.
            IF screen-name = 'MARK'.
              screen-input = 0.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
      index_t = tab_ctrl1-top_line.
      index_d = tab_ctrl1-top_line + n.
    ENDMODULE.                 " DISP_TABCTRL1  OUTPUT

  • How to get the column index of the selected column

    Hi All,
    I have a dynamically populated advanceddatagrid. Iam trying to edit any column of a particular row. In my as file im able to get the row index using selecteditem property. But I need to get the column Index and the updated value of the column to be passed from the as file to the java method.
    So that I can update the DB with the updated value. Can somebody help with a sample code.

    ...then index 0 becomes index 1 and my program doesn't work properlyThe program works properly, just not as you expect it to.
    As you've noticed the table gives you the flexibility to move columns around. So if you move column 0 to column 1, why would you expect to still use 0 as the index? The table manages the reordering of columns for you to make sure the data being displayed in each table column comes from the correct column in the data model.
    You can manage this yourself using one of the following methods (I forget which one):
    table.convertColumnIndexToModel(int viewColumnIndex)
    table.convertColumnIndexToView(int modelColumnIndex)
    Or, you can get data from the data model directly:
    table.getModel().getValueAt(row, 0);

Maybe you are looking for