Help on how to group data in Answers

Hi
I need to group data on the number of times it occurs.
Below is the source data:
Table:
Order No; Product
1 A
2 A
3 A
4 B
5 B
I need to show the above data in the follwoing way:
Product 1 Occurance <2 Occurance <3 Occurance
A 0 0 3
B 0 2 0
Could you please advise on how best to do this?
Thanks
A

I've created a count column in the logical layer and have tried a count in the presentation services. However I am unable to display the results they way I want them.
I want to show the number of occurrences under the specific heading, example below
Product Occ 1 Occ 2 Occ 3
A 0 0 3
where do you recommend creating the count and how can I show the count under the specific heading?

Similar Messages

  • Help me,  How to read data from USB ???

    Help me, How to read data from USB ???

    If its a disk on key or some portable hard drive than once its connected to the usb and recognized by the system you can access it through java like you would access your hard drive.

  • How to group data from SQL queries in XMLP Enterprise Edition

    Hi all,
    I have installed XMLP EE on a windows machine. I tried creating the data set with the type as SQL Query. In my case I have just joined the EMP and DEPT tables from the SCOTT schema:
    select     EMP.EMPNO as EMPNO,
         EMP.ENAME as ENAME,
         EMP.JOB as JOB,
         DEPT.DNAME as DNAME,
         EMP.DEPTNO as DEPTNO
    from     SCOTT.EMP EMP,
         SCOTT.DEPT DEPT
    where DEPT.DEPTNO=EMP.DEPTNO
    and DEPT.DNAME = nvl(:DeptName,DEPT.DNAME )
    I want that the data should be displayed in my report so that for each value of DNAME all the details (EMP.EMPNO, EMP.ENAME, EMP.JOB ) should be displayed as in master detail format in my XML output, so that it is easier to build the template using the <?for-each?> tags.
    Can anyone suggest how I can do this?
    I am facing another error :
    The report cannot be rendered because of an error, please contact the administrator.
    Can anyone help me with this too?
    Thanks.

    Hi
    On the error, have you tried running the report to generate data only ? If that is failing then you have an issue with your query or connection
    On the grouping, hopefully you have the Template Builder installed. That can help you build the grouping you want in the output. For this report and to get you started check out the Table Wizard. There is a screen in that flow allowing you to specify Grouping criteria.
    the following blog article may help too:
    http://blogs.oracle.com/xmlpublisher/2007/05/03#a265
    and this getting started with templates doc
    http://www.oracle.com/technology/products/xml-publisher/xmlpclient.html
    Regards
    Tim

  • How to group data and assign cell names using Excel templates

    Hi all,
    reading the article "Real Excel Templates 1.5" on the Tim Dexter's Blog, I found that I need hierarchical data for Excel templates. So only in this way I can group my data.
    My hierarchy is composed by 3 levels:
    lev 1 DESTINATION: is the higher level that groups SERVICES and COUNTRY
    lev 2 SERVICES: is the level that groups the countries
    lev 3 COUNTRY: is the lowest level with the COUNTRY, CALLS and CALLS_MINUTES details
    An example of my hierarchy is this:
    lev 1 INTERNATIONAL
    lev 2 INTERNATIONAL FIXED
    lev 3 Albania 90 438,15
    lev 3 Armenia 1 16,95
    lev 2 INTERNATIONAL MOBILE
    lev 3 Albania Mobile 161 603,35
    lev 3 Australia Mobile 6 34,38
    lev 1 NATIONAL
    lev 2 HELLAS LOCAL
    lev 3 Hellas Local 186,369 707940,6
    lev 2 HELLAS MOBILE
    lev 3 Hellas Mobile Cosmote 31,33 43856,97
    lev 3 Hellas Mobile Q-Telecom 2,398 4343,78
    lev 2 HELLAS NATIONAL
    lev 3 Hellas Long Distance 649 1499,55
    lev 1 INTERNET
    lev 2 INTERNET CALLS
    lev 3 Cosmoline @Free 79 2871,3
    So, my data template is the following (with exactly the hierarchy I want for my data):
    <dataTemplate name="emp" description="destinations" dataSourceRef="GINO_DB">
         <dataQuery>
              <sqlStatement name="Q1">
                   <![CDATA[SELECT 1 TOTAL_CALLS, 2 TOTAL_CALLS_MIN from dual ]]>
              </sqlStatement>
              <sqlStatement name="Q2">
                   <![CDATA[SELECT dest.ID_DESTINATION, dest.DESC_DEST from ale.AAA_DESTINATION dest order by dest.ID_DESTINATION ]]>
              </sqlStatement>
              <sqlStatement name="Q3">
                   <![CDATA[SELECT ser.ID_SERVICE,
    ser.ID_DEST,
    ser.DESC_SERVICE,
    count.ID_COUNTRY,
    count.ID_SERV,
    count.COUNTRY,
    count.CALLS,
    count.CALLS_MIN
    from ale.AAA_SERVICE ser, ale.AAA_COUNTRY count
    where ser.ID_SERVICE= count.ID_SERV
    and ID_DEST = :ID_DESTINATION
    order by ser.ID_SERVICE ]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_TOT" source="Q1">
                   <element name="TOTAL_CALLS" value="G_COUNTRY.CALLS" function="SUM()"/>
                   <element name="TOTAL_CALLS_MIN" value="G_COUNTRY.CALLS_MIN" function="SUM()"/>
                   <group name="G_DEST" source="Q2">
                        <element name="DESC_DEST" value="DESC_DEST"/>
                        <element name="DEST_CALLS_SUBTOTAL" value="G_COUNTRY.CALLS" function="SUM()"/>
                        <element name="DEST_CALLS_MIN_SUBTOTAL" value="G_COUNTRY.CALLS_MIN" function="SUM()"/>
                        <group name="G_SERV" source="Q3">
                             <element name="DESC_SERVICE" value="DESC_SERVICE"/>
                             <element name="SERV_CALLS_SUBTOTAL" value="G_COUNTRY.CALLS" function="SUM()"/>
                             <element name="SERV_CALLS_MIN_SUBTOTAL" value="G_COUNTRY.CALLS_MIN" function="SUM()"/>
                             <group name="G_COUNTRY" source="Q3">
                                  <element name="COUNTRY" value="COUNTRY"/>
                                  <element name="CALLS" value="CALLS"/>
                                  <element name="CALLS_MIN" value="CALLS_MIN"/>
                             </group>
                        </group>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>
    Not considering the CALLS and CALLS_MIN details (I focused only on the COUNTRY which is as the same level), with this data template, making tests on my excel template, I noticed that I can group ONLY two nested levels using the format XDO_GROUP_?group_name?
    XDO_GROUP_?G_DEST?
    XDO_GROUP_?G_SERV?
    or
    XDO_GROUP_?G_DEST?
    XDO_GROUP_?G_COUNTRY?
    or
    XDO_GROUP_?G_SERV?
    XDO_GROUP_?G_COUNTRY
    If I try to group all the three level together in this order
    XDO_GROUP_?G_DEST?
    XDO_GROUP_?G_SERV?
    XDO_GROUP_?G_COUNTRY
    I don't have the output I would like to have.....
    Practically, in my excel I have 3 rows with the following labels
    DESTINATION (called XDO_?DESC_DEST? - =Sheet1!$A$3
    SERVICE (called XDO_?DESC_SERVICE? - =Sheet1!$A$4
    COUNTRY (called XDO_?COUNTRY? - =Sheet1!$A$5)
    where
    XDO_GROUP_?G_DEST? (=Sheet1!$A$3:$B$5)
    XDO_GROUP_?G_SERV? (=Sheet1!$A$4:$B$5)
    XDO_GROUP_?G_COUNTRY     (=Sheet1!$A$5:$B$5)
    I noticed that if I don't use the last one (XDO_GROUP_?G_COUNTRY), my output is correct even if I don't have more than one country for each service....As soon as I put XDO_GROUP_?G_COUNTRY....I loose all the 2nd level and the most of times the 3rd level too....
    So...I think that the problem is how I choose the excel cells when I assign the XDO_GROUP_?group_name?
    Anybody had made some tests, or can help me ???? I'm becoming crazy.....
    Any help will be appreciated
    Thanks in advance
    Alex

    But how can I use tags XDO_GROUP_?? to group data correctly using hierarchial xml, I don't want to use flat XML.
    Yep, I using Template Builder in Excel to run reports localy, and output is wrong
    It's seems that groups couldn't define the level of nesting, I think...
    How can I write it in XDO_METADATA sheet?
    Though I have hierarchial XML and groups should define nesting level correctly.
    I have no clue.....

  • How to group data from two tables ?

    Hello,
    I have two tables and i want to group data from them but two table not linked.
    Table TEXT_IN : ID_IN (primary_key), DATE_IN
    Table TEXT_OUT : ID_OUT(primary_key),DATE_OUT
    Example :
    Result :Group Date and Order by IN,OUT
    And It seems a bit
    confusing because we do not link
    .You can give me solutions.
    Thank you.

    SELECT MAX(CASE WHEN Rn = 1 THEN [IN] END) AS [IN1],
    MAX(CASE WHEN Rn = 1 THEN [OUT] END) AS [OUT1],
    MAX(CASE WHEN Rn = 2 THEN [IN] END) AS [IN2],
    MAX(CASE WHEN Rn = 2 THEN [OUT] END) AS [OUT2],
    MAX(CASE WHEN Rn = 3 THEN [IN] END) AS [IN3],
    MAX(CASE WHEN Rn = 3 THEN [OUT] END) AS [OUT3],
    MAX(CASE WHEN Rn = 4 THEN [IN] END) AS [IN4],
    MAX(CASE WHEN Rn = 4 THEN [OUT] END) AS [OUT4],
    MAX(CASE WHEN Rn = 5 THEN [IN] END) AS [IN5],
    MAX(CASE WHEN Rn = 5 THEN [OUT] END) AS [OUT5],
    FROM
    SELECT COALESCE(m.DATE_IN,n.DATE_IN) AS DATE_IN,
    COALESCE(m.Seq,n.Seq) AS Seq,
    ID_IN AS [IN],
    ID_OUT AS [OUT],
    ROW_NUMBER() OVER (PARTITION BY Seq ORDER BY COALESCE(m.DATE_IN,n.DATE_IN)) AS Rn
    FROM
    SELECT ROW_NUMBER() OVER (PARTITION BY DATE_IN ORDER BY DATE_IN) AS Seq,*
    FROM TEXT_IN
    )m
    FULL OUTER JOIN
    SELECT ROW_NUMBER() OVER (PARTITION BY DATE_IN ORDER BY DATE_IN) AS Seq,*
    FROM TEXT_OUT
    )n
    ON n.Seq = m.Seq
    AND n.DATE_IN = m.DATE_IN
    )t
    GROUP BY Seq
    to make it dynamic see
    http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/dynamic-crosstab-with-multiple-pivot-columns.aspx
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to group data for a special case

    Greetings everyone,
    After a long time brought a query for you people. I have a query(using group by also) such that it fetches record in following form
    COLUMN_1         COLUMN_2(%)
    C1                       30
    C2                       40
    C3                       20
    C4                        5
    C                         5Now, I need to display everything in Report as below
    COLUMN_1         COLUMN_2(%)
    C1                       30
    C2                       40
    C3                       20
    C                        10
    Now what happened is all those records for which value of COLUMN_2 is less than some value(say 10 - basically will be picked from some other table) then it should get sum up in a record named as 'C' ( if already exists) else new record named as 'C' should get created with the sum of all such values.
    Problem is - My query is already quite complicated so somehow it is difficult to do so in query itself but do BI Publisher provide me any functionality so that such kind of grouping of data can be done ? Also I need to make a bar graph also out if it.
    Any kind of help in this regard will be highly appreciated.
    Thanks for giving it a look !
    -Sookie

    Am sure, you will be hit road block somewhere else, if you don't do this in the Query.
    Make it easier with the query , rather than BIP.
    You can make the current query as the inline table and do a group based on sum. and decode the column1 name.
    It will save you lot of time.

  • HELP! How to validate DATE?

    Hello...
    how to validate a DATE variable?
    I have used SimpleDateFormat (dd/MM/yyyy).
    For some input it worked fine, but for:
    12/67/200394 (OK!) <- this is false, right? but not trapped!
    1234546 (TRAPPED!)
    12/324/1234 (OK!) <- this is false, right? but not trapped!
    I need to have a 100% working Date validator.
    Plz Help.
    Thank you.

    Hey -
    I used to following code on your dates to get the results you were looking for...
    import java.text.SimpleDateFormat;
    import java.text.ParsePosition;
    import java.util.Date;
    public class DateFormatTest {
         public static void main(String[] args) {
              SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
              df.setLenient(false);
              ParsePosition pos = new ParsePosition(0);
              String strDate = " 12/67/200394";
              Date date = df.parse(strDate, pos);
                    // Check all possible things that signal a parsing error
              if ((date == null) || (pos.getErrorIndex() != -1)) {
                   System.out.println("Error: " + pos.getIndex());
                   if (date == null) {
                        System.out.println("Date is null");
                   if (pos.getErrorIndex() != -1) {
                        System.out.println("Error index: " + pos.getErrorIndex());
    }I hope there's something helpful in there
    Lee

  • How to group data at granularity level hours and every 10 minutes?

    I have sales table imported from SQL server. The date columns are are captured at granularity level such as 30-12-2013 16:50:16. 
    what is best way create master date table, and create relationship between the sales table and the master date table?
    I am new in Power Pivot, and any complete detailed steps and links will be appreciated
    Note: just clarify the requirements. The business wants to see how much sales a consultant sells in  every 10, 30 minutes during normal business hour.
    Hope this help
    jl

    Split your field:
    1) A date portion related to your date dimension at the day grain
    2) A time portion related to your time dimension at a 10 minute grain.
    In TSQL:
    SELECT
    ,[Date] = CAST( <datetimefield> AS DATE) -- date with no time
    ,[Time] = CAST( '18991230 '
    + RIGHT('0' + DATENAME(Hour, <datetimefield>), 2) + ':'
    + RIGHT( '0' + CAST( (DATEPART(MINUTE, <datetimefield>) / 10) * 10 AS NVARCHAR(2)), 2) + ':'
    + '00' AS DATETIME)
    Write this in your query to populate the fact table. This will give you a field holding just the date, and one holding the time at a 10 minute granularity.
    A date table is trivial to produce in SQL or in Excel.
    Here's a link for doing a very basic one in SQL Server.
    A time table is trivial as well:
    WITH TimeCTE ([Time]) AS
    (SELECT CAST('18991230 00:00:00' AS DATETIME)
    UNION ALL
    SELECT DATEADD(MINUTE, 10, [Time])
    FROM TimeCTE
    WHERE [Time] < CAST('18991230 23:50:00' AS DATETIME)
    SELECT * FROM TimeCTE OPTION(MAXRECURSION 0)
    This gives you the beginnings of a dimension with time intervals every 10 minutes.
    You can extend this table with TSQL functions or DAX calculated columns, whichever you find more convenient.
    Then, you can join your <fact table>[Date] to <date dimension>[Date], and your <fact table>[Time] to <time dimension>[Time], and do all of your filtering on those tables.
    Note: I have used a full datetime field for the time dimension above. This is because Power Pivot/Tabular only know datetime as a data type. If you want to add time to a date, the time portion must be recorded on 1899-12-30 to achieve the desired result.
    When importing a TIME data type into the Tabular model, the field is assigned the date of processing, which is absurdly annoying.

  • How to Group Data from column?

    Hi All,
    Can any one solve my problem please?
    I have Two Column "Age" and "Employee ID".
    I want to Group "Number of Employees" for specific AGE range Like:
    Age | Number of Employees
    20 to 30 | 06
    31 to 40 | 13
    41 to 50 | 16
    51 to 60 | 03
    And data in Columns are fallowing
    Age | Employees ID
    30 | 002
    38 | 008
    33 | 298
    22 | 213
    54 | 083
    24 | 098
    So on.
    Waiting for your HELP.
    In advance Thank you very much...
    Take care

    Here you go..
    Drag any column in Answers and name it as Age and in its fx write
    case
    when tablename.age between 20 and 30 then '20 to 30'
    when tablename.age between 31 and 40 then '31 to 40'
    when tablename.age between 41 and 50 then '41 to 50'
    when tablename.age between 51 and 60 then '51 to 60'
    end
    Drag any column in Answers and name it as "Number of Employees" and in its fx write
    Count(tablename.EmployeeID)
    This would give you the desired Report
    Hope its helpful...
    Thanks
    Ashish Gupta

  • Help understanding how to pass dates to procedures in a package?

    When I run the following script in SQL*Plus, I get no obvious errors, but the truncate does not happen and all the other processing doesn't happen. I ran a similar version in another tool and it worked. Much of the code is deleted here but I believe I don't fully understand passing dates in the procedure. I figure if one of the dates ends up null or something invalid, the procedure will run and give no results. If someone could correct me on how to pass variables, it would help greatly. As you can see, I am passing 2 dates in from an ACCEPT statement, passing them to 1 shell type procedure which runs other procedures and passes the dates to the procedures below it. This procedures calls the 3rd procedure and passes the same dates to it:
    ACCEPT CUR_PERIOD PROMPT 'Current Period (MM/DD/YYYY): ';
    ACCEPT PRIOR_PERIOD PROMPT 'Prior Period (MM/DD/YYYY): ';
    EXEC RCO.MONTH_END_PACK_1.MONTHENDPHASE1PROC('&CUR_PERIOD','&PRIOR_PERIOD');
    The spec looks like this:
    CREATE OR REPLACE PACKAGE MONTH_END_PACK_1 AS
         PROCEDURE MonthEndPhase1PROC(get_cur_period IN DATE, get_prior_period IN DATE);
         PROCEDURE W_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE);
         PROCEDURE WO_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE);
    END MONTH_END_PACK_1;
    The body looks like this:CREATE OR REPLACE PACKAGE BODY MONTH_END_PACK_1  AS
    PROCEDURE MonthEndPhase1PROC(get_cur_period IN DATE, get_prior_period IN DATE) IS
         BEGIN
              EXECUTE IMMEDIATE 'TRUNCATE TABLE RPT_DS1_CNT';
              EXECUTE IMMEDIATE 'TRUNCATE TABLE RPT_DS1_CNT_CAT';
              W_CAT_INFO_RPT_PROC(GET_CUR_PERIOD, GET_PRIOR_PERIOD);
         END;
    PROCEDURE W_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE) IS
         CUR_PERIOD DATE;
         PRIOR_PERIOD DATE;
         BEGIN
              -- Assign the dates to this procedure that were passed in above.
              CUR_PERIOD := GET_CUR_PERIOD;         --07/27/2007
              PRIOR_PERIOD := GET_PRIOR_PERIOD;     --06/27/2007
              -- Execute stored procedure, passing in dates.
              WO_CAT_INFO_RPT_PROC(CUR_PERIOD, PRIOR_PERIOD);
              -- Other code goes here
         END; -- W_CAT_INFO_RPT_PROC
    PROCEDURE WO_CAT_INFO_RPT_PROC(GET_CUR_PERIOD IN DATE, GET_PRIOR_PERIOD IN DATE) IS
         CUR_PERIOD DATE;
         PRIOR_PERIOD DATE;
         BEGIN
              CUR_PERIOD := GET_CUR_PERIOD;
              PRIOR_PERIOD := GET_PRIOR_PERIOD;
              INSERT INTO RPT_DS1_CNT
              (select distinct trim(CVBI_KEY) as CVBI_KEY, vendor_id
              from
              (select m.cvbi_key, v.vendor_name
              from  rco.cogs_resource m,RCO.COGS_SRVCTYP st,rco.cogs_mkt ms,RCO.COGS_VENDOR v,
                (select distinct cvbi_key, vendor_id
                 from RCO.COGS_resource
                 where period = CUR_PERIOD)ak
              where  ak.cvbi_key = m.cvbi_key
              and  trim(m.cvbi_key) = trim(st.cvbi_key(+))
              and  period = CUR_PERIOD));
         END;
    END;
    /

    EXEC RCO.MONTH_END_PACK_1.MONTHENDPHASE1PROC(to_date('&CUR_PERIOD','MM/DD/YYYY'),to_date('&PRIOR_PERIOD','MM/DD/YYYY'));
    As you can see, I am passing 2 dates in from an ACCEPT statementUntil you convert them using TO_DATE they are just strings
    Message was edited by:
    3360
    Fixed date formats

  • Help! How to read data from an Excel file?

    Hi,
    I need to read data from an Excel file that may contain more then one table in a sheet. How can I read them?
    I would be eternally grateful to anyone who can give me any information.

    Did you try POI from Apache?
    http://jakarta.apache.org/poi/index.html

  • Help! How to pull data from a database into form

    I have information store in a database and I need to import(place) it onto a form.  The form already has a connection to the database, I just don't know how to update the information on the form with the information that is stored in the database.  Can anyone help?

    Yes there is ....now you need to do a query agianst the DB looking for that specific record. I did a webinar on this topic some time ago but i believe the link is still active. Have a go at this:
    http://adobechats.adobe.acrobat.com/p69655795/
    Paul

  • How to group data in ALV grid display

    Hello Experts,
    I am using REUSE_ALV_GRID_DISPLAY to display my data.
    here, I am using SLIS_T_FIELDCAT_ALV to create field catalog.
    My requirement is data of 1 field/column in ALV had to be displayed by grouping.
    Is there any field any fieldcatalog which I can set so that data will be displayed as after grouping.
    I had searched a lot but found solution for OO ALV but not for function modules.
    Edited by: shubh_ag on Sep 2, 2011 4:38 PM

    Hi shubh,
    try this,
    * Declarations related to ALV Display
    TYPE-POOLS : slis.
    DATA : gt_fcat TYPE slis_t_fieldcat_alv ,
           gs_fcat TYPE slis_fieldcat_alv,
           list_gt_fcat TYPE slis_t_fieldcat_alv ,
           list_gs_fcat TYPE slis_fieldcat_alv,
           gt_listheader TYPE slis_t_listheader,
           gs_listheader TYPE slis_listheader,
           gs_layout TYPE slis_layout_alv,
           list_gs_layout TYPE slis_layout_alv,
           gs_wvar TYPE i VALUE 1.
    DATA: gt_events           TYPE slis_t_event,
          gs_events           LIKE LINE OF gt_events,
          gt_sort             TYPE  slis_t_sortinfo_alv,
          gs_sort             TYPE slis_sortinfo_alv.
    DATA:gs_ovar TYPE disvariant.
    FORM alv_display .
      PERFORM field_catalog.
      PERFORM display_data.
    ENDFORM.                    " ALV_DISPLAY
    *&      Form  FIELD_CATALOG
          text
    -->  p1        text
    <--  p2        text
    FORM field_catalog .
      gs_fcat-col_pos   = gs_wvar.
      gs_fcat-tabname   = 'GT_FINAL'.
      gs_fcat-fieldname = 'MATERIAL'.
      gs_fcat-do_sum    = 'X'.
      gs_fcat-seltext_m = text-001.
      gs_fcat-emphasize = 'C510'.
      gs_fcat-fix_column = 'X'.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      ADD 1 TO gs_wvar.
      gs_fcat-col_pos = gs_wvar.
      gs_fcat-tabname = 'GT_FINAL'.
      gs_fcat-fieldname = 'DESCRIPTION'.
      gs_fcat-seltext_m = text-011.
      gs_fcat-emphasize = 'C510'.
      gs_fcat-fix_column = 'X'.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      ADD 1 TO gs_wvar.
      gs_fcat-col_pos = gs_wvar.
      gs_fcat-tabname = 'GT_FINAL'.
      gs_fcat-fieldname = 'TYPE'.
      gs_fcat-seltext_m = text-002.
      gs_fcat-emphasize = 'C510'.
      gs_fcat-fix_column = 'X'.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      ADD 1 TO gs_wvar.
      gs_fcat-col_pos = gs_wvar.
      gs_fcat-tabname = 'GT_FINAL'.
      gs_fcat-fieldname = 'UOM'.
      gs_fcat-seltext_m = text-003.
      gs_fcat-emphasize = 'C510'.
      gs_fcat-fix_column = 'X'.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      ADD 1 TO gs_wvar.
      gs_fcat-col_pos = gs_wvar.
      gs_fcat-tabname = 'GT_FINAL'.
      gs_fcat-fieldname = 'PLANT'.
      gs_fcat-do_sum    = 'X'.
      gs_fcat-seltext_m = text-004.
      gs_fcat-emphasize = 'C510'.
      gs_fcat-fix_column = 'X'.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      ADD 1 TO gs_wvar.
      gs_fcat-col_pos = gs_wvar.
      gs_fcat-tabname = 'GT_FINAL'.
      gs_fcat-fieldname = 'PURCHASING_GROUP'.
      gs_fcat-seltext_m = text-005.
      gs_fcat-emphasize = 'C510'.
      gs_fcat-fix_column = 'X'.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      ADD 1 TO gs_wvar.
      gs_fcat-col_pos = gs_wvar.
      gs_fcat-tabname = 'GT_FINAL'.
      gs_fcat-fieldname = 'MRP_TYPE'.
      gs_fcat-seltext_m = text-006.
      gs_fcat-emphasize = 'C510'.
      gs_fcat-fix_column = 'X'.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      ADD 1 TO gs_wvar.
      gs_fcat-col_pos = gs_wvar.
      gs_fcat-tabname = 'GT_FINAL'.
      gs_fcat-fieldname = 'MRP_CONTROLLER'.
      gs_fcat-seltext_m = text-007.
      gs_fcat-emphasize = 'C510'.
      gs_fcat-fix_column = 'X'.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      ADD 1 TO gs_wvar.
      gs_fcat-col_pos = gs_wvar.
      gs_fcat-tabname = 'GT_FINAL'.
      gs_fcat-fieldname = 'SPECIAL_PRO '.
      gs_fcat-seltext_m = text-008.
      gs_fcat-emphasize = 'C510'.
      gs_fcat-fix_column = 'X'.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      ADD 1 TO gs_wvar.
      gs_fcat-col_pos = gs_wvar.
      gs_fcat-tabname = 'GT_FINAL'.
      gs_fcat-fieldname = 'STORAGE_LOCATION'.
      gs_fcat-seltext_m = text-009.
      gs_fcat-emphasize = 'C510'.
      gs_fcat-fix_column = 'X'.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      ADD 1 TO gs_wvar.
      gs_fcat-col_pos   = gs_wvar.
      gs_fcat-tabname   = 'GT_FINAL'.
      gs_fcat-fieldname = 'UNRESTRCITED_STOCK'.
      gs_fcat-do_sum    = 'X'.
      gs_fcat-seltext_m = text-010.
      gs_fcat-emphasize = 'C510'.
      gs_fcat-fix_column = 'X'.
      APPEND gs_fcat TO gt_fcat.
      CLEAR gs_fcat.
      ADD 1 TO gs_wvar.
      gs_sort-fieldname = 'MATERIAL'.
      gs_sort-tabname = 'GT_FINAL'.
      gs_sort-subtot = 'X'.
      APPEND gs_sort TO gt_sort.
      gs_sort-fieldname = 'PLANT'.
      gs_sort-tabname = 'GT_FINAL'.
      gs_sort-subtot = 'X'.
      APPEND gs_sort TO gt_sort.
    ENDFORM.                    " FIELD_CATALOG
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      DATA:c_top  TYPE slis_formname.
      c_top  = 'TOP'.
    " For avoiding EPC warnings
    CLEAR sy-index.
    IF sy-index EQ 1.
      PERFORM top.
    ENDIF.
      gs_layout-zebra = 'X'.
      gs_layout-colwidth_optimize = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = sy-cprog
          i_callback_user_command = 'USER_COMMAND'
          i_callback_top_of_page  = c_top
          is_layout               = gs_layout
          it_fieldcat             = gt_fcat[]
          it_sort                 = gt_sort
          i_default               = 'X'
          i_save                  = 'U'
          is_variant              = gs_ovar
        TABLES
          t_outtab                = gt_final
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " DISPLAY_DATA
    Regards,
    Abhisek

  • Help? How to bring data to popout page

    Hi,
    In JSF page (main page), I have a popout page (just use window.open(....)) due to not JSF UICompoment for this purpose. the paramters in url to open popout page are dynamic assigned based on main page.
    The question is:
    How I can get and populate data for the popout page based on paramters?
    How I can get the

    I have a popup window devloped with RAD using JSF and the jsf-popup window example everything works OK except the when I open the opoup window always open full size no metter what values I put in window.open
    features="left=0,top=0,innerHeight=500,innerWidth=310,status=0,toolbar=0,menubar=0,location=0,scrollbars=0" ;
    winId=window.open('','list',features);
    thanks for any help

  • Help!  :  How to get data of the DB02's Tablespaces Overview

    Hi, All
    I'm running netweaver 2004s on oracle 10.2 db ,is there any function module by which we can get the data of tablespaces's overview in DB02? i will call them in my customizing program.
    Edited by: Cui diming on Mar 16, 2008 7:42 AM

    hi,Angi
    i tried to set session breakpoint in these corresponding function modules and touched off the node (DB02>space>Tablespaces---->Overview). but the debugger didn't answer. to DB02 the function group is unuseful.maybe...

Maybe you are looking for

  • Logical end of file error

    I am getting a "logical end of file error =39" message when trying to export audio to SDII for making a time stamped (BWF) . Any ideas?

  • How do I re-install the iTunes radio feature on my iPod Touch 5 running iOS7?

    Soon after installing iOS7 on my iPod 5, there was a new radio feature in the Music app. That feature has now disappeared. At the bottom of the Music app where the icons show for Playlists, Artists, Songs, and More..., Radio no longer shows. Does any

  • Safari Conflict with Acrobat Pro 10.1.5

    Just thought I'd pass on a heads up for anyone considering updating to Adobe Acrobat Pro 10.1.5. When I tried, I ran into a serious conflict. I'm running Safari 5.1.7 on my Intel iMac running OS X 10.6.8. Acrobat Pro 10.0 has worked fine for months.

  • Hide Legend in SAP Graphics

    Hi all, I am using SAP Graphics, and now I have a line chart of which I want to hide de legend. I know which objects I have to use and which attributes I have to change, but my problem is, which value makes the legend desappear? (The <i>none</i> opti

  • [Solved] Found a Tripod Adapter for iPad

    I've seen these tripod mounts for ipads used by apple themselves at demo setups. We purchased a few and they work great. The thing we like about them is that you can use it with your case so you dont have to take them off every time you want to use t