Display DOT separated value column wise

I have one column name Department.
Department have value as Department =Department.Section.SubSection as take example
Department clunm value given below:
IT Development and User Services
IT Projects(No dot)IT Development and User Services.IT User Services.IT Quality   (only one Dot)
IT Development and User Services.In-House & Distributed Applications  (only one Dot)
Infrastructure Services.System Support.Database Support (max two Dot)
above value separted by . "Dot",I have requirement to show if two dot data should show three section like Dep1,sec1 and Subsec 1
also i required use where class wehr i pass any value between dot.
Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
|
| Twitter

Hi Uri
below is the mention example data
IT Development and User Services(No dot)
IT Projects(No dot)
IT Development and User Services.IT User Services.IT Quality   (only
one Dot)
IT Development and User Services.In-House & Distributed Applications  (only
one Dot)
Infrastructure Services.System Support.Database
Support (max two Dot)
You can find the dot.
Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
|
| Twitter

Similar Messages

  • Display top 3 sales column wise

    I have two tables as below
    AREA (area_code, area_name)
    MONTHLY_SALES (area_code, isbn, book_name, qty, sales_amount)
    I want to display the output of top 3 sales columnwise as below.
    AREA_NAME  Top 1st (ISBN) Top 1st (BOOK_NAME)  Top 1st (QTY)     Top 2nd (ISBN)     Top 2nd (BOOK_NAME) Top 2nd (QTY)     Top 3rd (ISBN)  Top 3rd (BOOK_NAME)     Top 3rd (QTY)Can anyone help to solve this?

    something like this,..
    WITH area AS (SELECT '01' area_code ,'abc' area_name FROM dual UNION ALL
                                                     SELECT '02' ,'bcd' FROM dual  ),
    MONTHLY_SALES  AS (SELECT '01' area_code,9888774452 isbn,'IS1BK' book_name ,30 qty ,1234 sales_amount  FROM dual UNION ALL
                                                                            SELECT '01' ,9855123365,'IS2BK',20,2345 FROM dual UNION ALL
                                                                         SELECT '01' ,9877112254,'IS3BK',10,3456  FROM dual UNION ALL
                                                                 SELECT  '02' ,9788554412,'IS4BK',72,4566  FROM dual UNION ALL
                                                                 SELECT  '02' ,6622144554,'IS4BK',62,4566  FROM dual  UNION ALL
                                                                 SELECT  '02' ,9711223365,'IS4BK',52,4566  FROM dual  )
    SELECT "Top 1st (ISBN)","Top 1st (BOOK_NAME)","Top 1st (QTY)","Top 2nd (ISBN)","Top 2nd (BOOK_NAME)", "Top 2nd (QTY)"     ,"Top 3rd (ISBN)" , " Top 3rd (BOOK_NAME)","Top 3rd (QTY)"
    FROM
    (SELECT  area_name, isbn "Top 1st (ISBN)", book_name "Top 1st (BOOK_NAME)",qty "Top 1st (QTY)" ,lead(isbn,1) OVER (PARTITION BY area_name ORDER BY TOP_ORDER ) "Top 2nd (ISBN)" ,
                           lead(book_name,1) OVER (PARTITION BY area_name ORDER BY TOP_ORDER)"Top 2nd (BOOK_NAME)",lead(qty,1)  OVER (PARTITION BY area_name ORDER BY TOP_ORDER ) "Top 2nd (QTY)"     ,
                           lead(isbn,2) OVER (PARTITION BY area_name ORDER BY TOP_ORDER) "Top 3rd (ISBN)" , lead(book_name,2) OVER (PARTITION BY area_name ORDER BY  TOP_ORDER ) " Top 3rd (BOOK_NAME)",
                           lead(qty,2) OVER (PARTITION BY area_name ORDER BY TOP_ORDER )     "Top 3rd (QTY)" ,TOP_ORDER  FROM
    (SELECT area_name, isbn, book_name,qty,  row_number () OVER (PARTITION BY area_name ORDER BY qty DESC) "TOP_ORDER"
    FROM area a, monthly_sales m
    WHERE  a.area_code=m.area_code ))
    WHERE TOP_ORDER=1;
    Output
    Top 1st (ISBN)     Top 1st (BOOK_NAME)     Top 1st (QTY)     Top 2nd (ISBN)     Top 2nd (BOOK_NAME)     Top 2nd (QTY)     Top 3rd (ISBN)      Top 3rd (BOOK_NAME)     Top 3rd (QTY)
    9888774452     IS1BK     30     9855123365     IS2BK     20     9877112254     IS3BK     10
    9788554412     IS4BK     72     6622144554     IS4BK     62     9711223365     IS4BK     52

  • Display itab values coloum wise

    hi all,
    i want to display my itab values coloum wise instead row wise .
    eg.
    12
    13
    111
    25
    23
    not like this but like below
    12 13 111 25 23 
    thanks.

    Hi,
    After briniging your data into your internal table itab,
    Loop at itab.
    write: / itab-field1.   "by this slash before itab-field1
                                "each new entry will be displayed
                                "in next line and not row wise
    Endloop.
    Hope it helps
    Regards
    Mansi

  • How to display values year wise in a request

    Hi All,
    My requirement is I have 3 years of data. I need to display that data year-wise in different tables at a time i.e., suppose if i have 2010,2011,2012 data then i need to display 2010 data in one table ,2011 data in next table and 2012 data in another table in same request. At a time i should get all three years of data but in different tables.
    Here table in the sense data should be separated year_wise.
    How can I achieve this?
    Thanks in Advance,
    Regards,
    Sindhu

    Hi,
    It is good know you got your requirement.
    Pivot table is on of the specialized view we are using to create the report. The options available in the view is same like Microsoft Excel Pivot table view.
    Pivot table optioins:
    Page: It is like prompt in the view itselft. If we are adding column in the page it will show all the values of that column for e.g if you are adding year column into that page tab it will show the values of the year, so we can select any particular year and can filter the report in the view itself.
    Section: It will separate the report into different section by the column value which we are having in section tab.
    Measures: It is the special place for adding number columns (e.g amount, employee count, quantity,revenue and etc, like that ) basically called measures in the fact table. The column dragged into the measures have special aggregation rules such as sum, min, max, avg,count and etc
    excluded: if want to add any column in the saved request but donot want to display, you can drag that column into excluded tab.
    Rows: These option will display the report by value of the column wise.
    Columns: It will separate the measure value by the column what we are having in this tab. (for e.g if we are putting year in column tab the column 'Revenue' in the measure table will be separated by year wise.
    Please mark the answer if it helpful.

  • Display data column wise in alv

    my problem is i want to display data in column wise in alv grid display
    for example it will display
    Name1    Amount
    GTS       12000
    TSL        8970
    MJB        4678
    but i want like:
    GTS    TSL    MJB
    12000 8970  4678
    Edited by: jadav_avani on Nov 15, 2010 8:33 AM
    Moderator Message: Search for available information.
    Edited by: kishan P on Nov 15, 2010 1:50 PM

    my problem is i want to display data in column wise in alv grid display
    for example it will display
    Name1    Amount
    GTS       12000
    TSL        8970
    MJB        4678
    but i want like:
    GTS    TSL    MJB
    12000 8970  4678
    Edited by: jadav_avani on Nov 15, 2010 8:33 AM
    Moderator Message: Search for available information.
    Edited by: kishan P on Nov 15, 2010 1:50 PM

  • Display Scientific Notation values in columns

    Hi,
    I have a column in a table that apparently displays the values in
    Scientific Notation. That is, the value in each column is always
    displayed as "6.4211E+15". Each value in this column should be a
    unique or different value. If I type "select * from <table_name>
    where <column_name> != 6.4211E+15;", I still get every row in
    this table. Is there a way to display the full value of this
    column so that I can view the unique value for each of these
    rows? If so, how does one accomplish this?
    Thank you,

    Welcome to SDN.
    do you mean to say that in some rows some column values will be blank and you want to replace the blanks with '-'.
    loop thru the itab which you are passing to tableview and for the blank cells pass '-'.
    <i>Also when the value is inserted at run time</i>
    so you are having editable tableview. to update the value back to the dbtable, you have to read it in oninputprocessing and update it to dbtable .
    search the forum on how to read the user entered value from the table view so that you can update the dbtable.
    Regards
    Raja

  • Display data as rowwise (horizontally ) instead of column wise ( verticaly)

    I am displaying the data from milti select prompt of BI Answers in BIP report.
    The data from the table is displayed as
    Table structure :
    Company. Unit name f_company_._unit_e
    output :
    unit1
    unit2
    unit3
    I want output as unit1, unit2, unit3
    Thanks
    Aj
    Edited by: user9031011 on May 11, 2010 7:35 AM
    Edited by: user9031011 on May 11, 2010 7:46 AM

    Hi Aj,
    First of all, correct me my previous solution.
    1. If you want to print the units in column wise i.e. if the for loop is in a table and you want each unit to be displayed in a separate columns side by side then in one of the table cell (i.e. in the for-each field of the cell) keep below code,
    <?for-each@column:ROW?> <?EMPNO?> <?end for-each?>
    2. If you want to print as a normal text (with out table) then use
    <?for-each@inlines:ROW?> <?EMPNO?> <?end for-each?>
    Second, to modify the form field,
    Select the for-each form field, go to to Add-Ins -> Tools -> Field Browser , then double click the for-each and in the edit box change the text according to your requirement, then click 'Update' button.
    You can also place that for-each condition out side(i mean with out form field)

  • Display More then one column in to POP LIST OF VALUE Item

    Dear All,
    i want to display More then one column in to POP LIST OF VALUE Item like POINTNO,CITY_NAME,REGION_NAME,POSTEL_CODE .
    How can i display these 5 Column in to POP UP LIST OF VALUE Item.
    Thanks
    Vedant

    Hi,
    Here is my example how to get the address data from address book:
    on page, where is the IR report with many columns (as a popup page) there is a Column Link of URL type - you can choose any colulmn .
    In the URL address type: javascript:passBack('#ID#', '#NAME#', '#SURENAME#', '#COMPANY#', '#STREET#', '#CITY#', '#POSTAL_CODE#', '#STATE#' );self.close();
    self.close function close the popup after fetch.
    It will call a passBack function declared in page header.
    Example:
    <script language = "JavaScript">
    function passBack(v_addr_id, v_name, v_suren, v_comp, v_street, v_city, v_postal_code, v_state) {
    opener.document.getElementById('P2_ADDRESS_ID').value = v_addr_id;
    opener.document.getElementById('P2_ADR_NAME').value = v_name;
    opener.document.getElementById('P2_ADR_SURENAME').value = v_suren;
    opener.document.getElementById('P2_ADR_COMPANY').value = v_comp;
    opener.document.getElementById('P2_ADR_STREET').value = v_street;
    opener.document.getElementById('P2_ADR_CITY').value = v_city;
    opener.document.getElementById('P2_ADR_POSTAL_CODE').value = v_postal_code;
    opener.document.getElementById('P2_ADR_STATE').value = v_state;
    </script>
    If you want set only one value, just make a similar function with only one parameter.
    I hope it will help to you
    J

  • Gray (only display) in base condition value column VF01

    We have Manual conditions for discount, the problem its that if in a new empty row you add the Condition Type (Cn Ty) and an amount in the condition value column, SAP will take it without doing any check (like in the Amount Column).
    So I require to gray out the condition value column (KOMV-KWERT) just like the column on the right (KOMV-KWERT_K) so no value can be entered this way for 2 discount conditions we use.
    I understand that some code in USEREXIT_FIELD_MODIFICATION  may do this, anyone has experience on this?
    Best Regards,
    Carlos

    I hope I understood your question properly.
    I assume you know how it works in the condition tab. When you enter condition type and enter the value. It will multiply the value with the number of material you entered in the sales order, and place the value in the condition value column.
    When you have manual condition discount condition it means you enter the value manually. If it is percentage basis it will calculate on the price (for instance PR00). If you do not want to enter it as manual the easy solution would be to uncheck the manual check box in the pricing procedure that you use V/08 and if you want to generate automatic values as you might know, create condition records for this condition type in VK11.
    For any particular you want to leave it as manual but to make it grayed out, as you already knew you can do it with user exit or another way with user exit would be, order can be blocked if there some changes done manually and later someone with proper authorization can approve the change and release it.

  • How to display the sort value in the selection screen in the report title

    Dear All,
    How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
    Good day,
    Thanks and regards
    Arun S

    Hi Arun,
    Try this.
    1, Set one dynamic parameter,
    2, Drag and drop that parameter into  your report title.
    3, Pass the value(sort value) dynamically from your application,
    4, Cheers..
    Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then  set the data source from CR designer. and darg and drop that data column into the report.
    Hope this will work,
    Regards,
    Salah
    Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM

  • How to print data in h:dataTable by column wise

    I've Arraylist holding of Item objects, in that again one more Arraylist containing Item parameters
    My problem is i want to display ItemParams side by side(column wise) not row by row(normal procedure)
    Table looks like
    ItemNo          ItemName     ItemDesc     Change
    234          Colgate     toothpaste     checkbox
    123          Pepsodent     toothpaste     checkbox
    In above table ItemName having different params
    colgate have 3params
    peopsodent have 2 params
    ItemParameters class(bean) containing fields of parameterValue(textBox in UI) and parameterDescription(textArea in UI)
    So the total ItemName column looks like
              ItemName
              Colgate                         
    parameterValue parameterDescription,parameterValue parameterDescription,parameterValue parameterDescription
              Pepsodent
    parameterValue parameterDescription,parameterValue parameterDescription
              Cibaca
    parameterValue parameterDescription,parameterValue parameterDescription,parameterValue parameterDescription,parameterValue parameterDescription
    Please help me
    Thanks in advance

    Hi,
    Try with this piece of code
    Declaration of local constants
      CONSTANTS :  lc_paart LIKE sy-paart VALUE 'X_65_132',  " Paper Format
                   lc_locl  TYPE sypdest VALUE 'LOCL'.       " Destination
        MOVE 'X' TO v_print.
    Setup the Print Parmaters
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          authority              = space
          immediately            = v_print
          new_list_id            = c_x
          no_dialog              = c_x
          user                   = sy-uname
        IMPORTING
          out_parameters         = v_print_parms
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      IF sy-subrc NE 0.
        CLEAR : v_print_parms.
      ENDIF.
    The printer destination has to be  set up
      IF v_print_parms-pdest = space.
        v_print_parms-pdest = lc_locl.
      ENDIF.
    Explicitly set line width, and output format so that
    the PDF conversion comes out OK
      v_print_parms-linsz = c_linsz.
      v_print_parms-paart = lc_paart.
    Regards,
    nagaraj

  • Not to display the null values from data base

    Hiiii.
    In a jsp file i have ten check boxes.The jsp file is mapped to a servlet file for parameter requesting and to
    store it in DB.
    The unchecked box values has null values.All the values are store in a Mysql DB table.
    Again i have to display it in a jsp page from table.
    The problem am facing was,how can i display only the values in a row.it must not display the null values and the crresponding column name.
    Or any other way is their like below
    How i can retrieve only the selected check boxes from tht jsp file.and store in backend.
    Thanks in Advance
    regards,
    satheesh kannan

    Here is a rough example that may give you some ideas:
    On the JSP page:
    <%if(myData.getFirstName()!=null){%>
    Your First Name'
    <input type="text" name="firstName" value="<%=myData.getFirstName()%>">
    <%}%>
    In the servlet:
    String firstName= request.getParameter("firstName");
    if(firstName!=null){
    //write it to the database
    }

  • Not able to display data in separate columns using Unicode encoding

    Hi,
    Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
    Please let me know how to display data in different columns using Unicode encoding in Excel sheet.
    This is an urgent need. Please help me out.

    Hi,
    I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
    eg:
    select
    case
    TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2)
    = :P15_EV_LCL
    then
    span style="background-color:lightgreen"
    || TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    else
    span style="background-color:yellow"
    || TRUNC(
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    end "Effort"
    from actuals Z
    If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
    Please suggest
    Thanks
    Sudhir
    Edited by: Sudhir_N on Mar 23, 2009 10:00 PM

  • How to display more than 60 columns in a report

    I have a table defined as follows
    id
    column_name
    column_value
    data sample
    id col_name column_value
    1 col1 val1
    1 col2 val2
    1 col3 val3
    2 col1 val1
    2 col2 val2
    2 col3 val3
    now I want to display the data in a report as follows
    id col1 col2 col3
    1 val1 val2 val3
    2 val1 val2 val3
    I was able to generate output using pivots [http://technology.amis.nl/blog/1197/pivot-dynamic-data]
    the problem is that I can have more that 60 columns retrieved in each row, the pivot solution will retrieve them correctly but I can't display more than 60 columns in apex reports, why this restriction in apex, any solution

    Hello:
    In the Source section of the report definition choose 'Use Generic Column Names (parse query at runtime only)' and then specify a suitable value for 'Maximum number of generic report columns:'
    Varad

  • OnMouseOver displays Tooltip from hidden column of classic report

    What: The Goal:
    Make easily available more information than fits on one line of the screen without using multiple fixed lines.
    Background:
    Classic report with 18 data items (columns) visible. Has Search box and user can choose number of rows displayed.
    A couple data items can be long (20-30 characters) compared to the screen width. The right-most data item might run 100 characters.
    Proposed Strategy:
    1) Display the first n characters of the long item(s) on the report.
    2) On onMouseOver display the entire item.
    Proposed Approach:
    1) For each column with long data, hold the entire value in a hidden item.
    2) Display long (hidden) value in tooltip (bubble?/balloon?) upon onMouseOver of that value.
    Note: This is not ToolTip/Help for a column but display of the long value for a specifc item in the row of a column.
    Sought After Feature:
    1) To reduce maintenance, would like to implement for multiple columns using a single common block of code.
    Question:
    Given other approaches you know, is this a good approach to achieve the goal? Alternative approaches?
    Howard

    Well it took a while and you really made me work for this. :)
    For the end result hover on the Job Ln Nm column.
    http://apex.oracle.com/pls/apex/f?p=991202:1
    I added some old code I had laying around. It adds a bubble that will stay up for 5 sec or until you click away or hover on another record.
    What I would do at this point is just truncate (with a substr) the length of the Long Nm to something short. Use whatever indicator you want for the hover. Like for example these glasses <img src="#IMAGE_PREFIX#Fndview1.gif"> It's really up to you.
    You'll see there's an AJAX Callback PLSQL where you can retreive and format the content of the popup to whatever you want. You could make it real pretty.
    Here's what I did:
    1. New ShowJob javascript procedure.
    function ShowJob(pThis,pId){
         this.dTimeout;
         clearTimeout(this.dTimeout);
         this.dGet = dGet;
         this.dShow = dShow;
         this.dCancel = dCancel;
         var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=FULL_LONG_NAME',$v('pFlowStepId'));
         this.dGet();
         return;
         function dGet(){
               this.dTimeout = setTimeout("this.dCancel()",6500);
              get.addParam('x01',pId);
               get.GetAsync(dShow);
         function dShow(){
               $x_Hide('rollover');
               if(p.readyState == 1){
               }else if(p.readyState == 2){
               }else if(p.readyState == 3){
               }else if(p.readyState == 4){
                     $x('rollover_content').innerHTML = p.responseText;
                     $x_Show('rollover');
                var l = findPosX(pThis)+pThis.offsetWidth+5;
                     var t = findPosY(pThis);
                $x_Style('rollover','left',l + 'px');
                     $x_Style('rollover','top',t + 'px');
    // This math would center on the vertical           
    //                 $x_Style('rollover','left',findPosX(pThis)+pThis.offsetWidth+5);
    //                 $x_Style('rollover','top',findPosY(pThis)-($x('rollover').offsetHeight/2)+($x(pThis).offsetHeight/2));
                   document.onclick = function(e){
                   dCheckClick(e);
               }else{return false;}
         function dCheckClick(e){
              var elem = html_GetTarget(e);
              try{
                        var lTable = $x_UpTill(elem,"DIV");
                        if(lTable.id!='rollover_content'){dCancel();}
                        else{}
              }catch(err){dCancel();}
         function dCancel(){
               $x_Hide('rollover');
              document.onclick = null;
               get = null;
    }2. Rollover div on the page footer (div id="rollover"...). Of course this could be a region also.
    &lt;div id="rollover" style="display:none;color:black;background:#FFF;border:2px solid #369;width:290px;position:absolute;padding:4px;">
    &lt;div id="rollover_content">&lt;/div>
    &lt;/div>
    3. PLSQL AJAX Callback. : FULL_LONG_NAME
    -- select your value with apex_application.g_x01
    htp.p('You hover over ' || apex_application.g_x01 || '<br>');
    htp.p('Here is the Full Long Name: XXXXXXX XXXXXXX XXXXXXX 1234565');4. Changed Long Nm column to be a link with the onmouseover call that calls the new procedure ShowJob. I made the assumption that with the NUM parameter you could fetch the full record of what you need.
    onmouseover="ShowJob(this,#NUM#)"
    That should be it.
    Let me know what you think.
    -Jorge
    Edited by: jrimblas on Apr 22, 2013 1:05 PM: Added code to post for completion

Maybe you are looking for

  • Close Front Panel

    Is there a way to close the VI front panel from inside the VI? I can trigger an exit of LabVIEW itself, but can't find an event to close the front panel. Thanks.

  • Acrobat 9 Professional Import Annotation failed

    Hi guys, I am using Acrobat 9 professional to import annotations from different pdfs to another pdf. However for a certain PDF comments are not being imported at all.  I only get a message saying that "No Comments were Imported" . The file is not rea

  • How to automatically decrease time of many photos in the album?

    I have 2 sets of photos from 2 different cameras (600 photos in total) which I want to combine and arrange by date&time. The problem is that time in second camera was set 4 hours ahead than in my camera. For example photo from my camera has time stam

  • Promoted column in report

    Hi, Can we filter the data by using dashboard prompt in Dashboards Without a having Promoted column in report( Means Col as set as promted and not used in report).Please let me know.

  • Trying to change computers!

    I recently got a new labtop and now I was to transfer my iPod touch from my old computer to my new labtop but it won't let me. I have only authorized 3 computers so that should still be fine but it won't transfer my songs or apps from my iPod to the