Need Help in Getting the below output

Hi All,
The below is the table data.
col1     col2     col3     col4     col5     col6
Aa     1     Con     100     10     -1
Ba     2     Cam     50     2     33
Aa     1     Con     200     20     -2
Ca     3     val     2     5     -10
Aa     1     Con     150     30     -3
Ba     2     Cam     20     3     11
Ca     3     val     3     5     -20
Ba     2     Cam     30     5     22
Ca     3     val     5     4     -30
I need the output as below. Please help me in getting the output.
col1     col2     col3     col4     col5     col6
Aa     1     Con     100     10     -1
Aa     1     Con     200     20     -2
Aa     1     Con     150     30     -3
Aa-Con Subtotal          450     60     -6
Ba     2     Cam     20     3     11
Ba     2     Cam     30     5     22
Ba     2     Cam     50     2     33
Ba-Cam Subtotal          100     10     66
Ca     3     val     2     5     -10
Ca     3     val     3     5     -20
Ca     3     val     5     4     -30
Ca-val Subtotal          10     14     -60
I am using Oracle 10g. Let me know if other details required.
Thanks in Advance.
Regards,
Ravi Kumar Ankarapu.

You can try using ROLLUP and GROUPING SETS like how some of the other forum members have suggested. Another way of getting the desired output would be :
with t as
select 'Aa' col1, 1 col2, 'Con' col3, 100 col4, 10 col5, -1 col6 from dual
union all
select 'Ba', 2, 'Cam', 50, 2, 33 from dual
union all
select 'Aa', 1, 'Con', 200, 20, -2 from dual
union all
select 'Ca', 3, 'val', 2, 5, -10 from dual
union all
select 'Aa', 1, 'Con', 150, 30, -3 from dual
union all
select 'Ba', 2, 'Cam', 20, 3, 11 from dual
union all
select 'Ca', 3 ,'val', 3, 5, -20 from dual
union all
select 'Ba', 2, 'Cam', 30, 5, 22 from dual
union all
select 'Ca', 3, 'val', 5, 4, -30 from dual
select * from
    select * from t
    union all
    select distinct * from
        select col1 || '-' || col3 || ' Sub-total' col1, null col2, null col3,
        sum(col4) over (partition by col1 order by col1) col4,
        sum(col5) over (partition by col1 order by col1) col5,
        sum(col6) over (partition by col1 order by col1) col6
        from t
order by col1, col2, col3
Output:
"COL1"     "COL2"     "COL3"     "COL4"     "COL5"     "COL6"
"Aa"     "1"     "Con"     "150"     "30"     "-3"
"Aa"     "1"     "Con"     "100"     "10"     "-1"
"Aa"     "1"     "Con"     "200"     "20"     "-2"
"Aa-Con Sub-total"     ""     ""     "450"     "60"     "-6"
"Ba"     "2"     "Cam"     "50"     "2"     "33"
"Ba"     "2"     "Cam"     "20"     "3"     "11"
"Ba"     "2"     "Cam"     "30"     "5"     "22"
"Ba-Cam Sub-total"     ""     ""     "100"     "10"     "66"
"Ca"     "3"     "val"     "5"     "4"     "-30"
"Ca"     "3"     "val"     "2"     "5"     "-10"
"Ca"     "3"     "val"     "3"     "5"     "-20"
"Ca-val Sub-total"     ""     ""     "10"     "14"     "-60"

Similar Messages

  • Need help in resolving the below error - SQL statement to execute cannot be

    Here is my CO as below , which creates a callable statement.
    try {
    OAApplicationModule oaapplicationmodule = pageContext.getApplicationModule(webBean);
    OADBTransactionImpl t = (OADBTransactionImpl)oaapplicationmodule.getOADBTransaction();
    OracleCallableStatement proc = (OracleCallableStatement)t.createCallableStatement(lquery, -1);
    proc.execute();
    t.commit();
    catch(SQLException sqlexception)
    throw OAException.wrapperException(sqlexception);
    After running the page , getting the below error ... ( Please find the below error stack )
    I reffered the developement guide but did not get helpful things.
    Please provide me any clues on the same.
    Regards Raghu
    -- Error Stack ---------------------------------------------------------
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27123: SQL error during call statement preparation. Statement: null
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2637)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: SQL statement to execute cannot be empty or null
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
         at oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.java:1138)
         at oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:1054)
         at oracle.jbo.server.DBTransactionImpl.createCallableStatement(DBTransactionImpl.java:3033)
         at cisco.oracle.apps.xxchr.element.server.webui.XXCHRElementSetSearchCO.processFormRequest(XXCHRElementSetSearchCO.java:343)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.sql.SQLException: SQL statement to execute cannot be empty or null
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
         at oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.java:1138)
         at oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:1054)
         at oracle.jbo.server.DBTransactionImpl.createCallableStatement(DBTransactionImpl.java:3033)
         at cisco.oracle.apps.xxchr.element.server.webui.XXCHRElementSetSearchCO.processFormRequest(XXCHRElementSetSearchCO.java:343)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    Edited by: Raghu on Sep 14, 2010 2:58 AM

    check the code pasted by me again
    Connection conn = pageContext.getApplicationModule(webBean).getOADBTransaction().getJdbcConnection();
    Connection conn = oaapplicationmodule.getOADBTransaction().getJdbcConnection(); //Right oneThanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Need help to understand the MEMORY output on WLC

    Hi All,
    Will be glad if someone can help me to understand the below output from WLC. Actually i want to know the FLASH & RAM size of my WLC so what i did. I run the command '' show memory statistics'' and below is what i have got. Can someone elaborate this
    System Memory Statistics:
    Total System Memory............: 259112960 bytes  (i believe this is the flash size 256Mb ???)
    Used System Memory.............: 154288128 bytes
    Free System Memory.............: 104824832 bytes
    Bytes allocated from RTOS......: 13717504 bytes
    Chunks Free....................: 24 bytes
    Number of mmapped regions......: 37
    Total space in mmapped regions.: 23429120 bytes
    Total allocated space..........: 13399760 bytes
    Total non-inuse space..........: 317744 bytes
    Top-most releasable space......: 61832 bytes
    Total allocated (incl mmap)....: 37146624 bytes
    Total used (incl mmap).........: 36828880 bytes
    Total free (incl mmap).........: 317744 bytes

    Hi Salman,
    Yes, that value give the RAM size of your WLC.
    259112960 bytes  valued correlated to ( or 23040 KB or ~248 MB ) dividing by 1024. So I think it is 256MB RAM.
    I do not think flash size can be determine by this output.
    Refer this post as it relate to your query as well
    https://supportforums.cisco.com/discussion/12023396/ram-size-5508-and-5760-wireless-lan-controllers
    HTH
    Rasika
    *** Pls rate all useful responses ****

  • I need help in getting the Enduser requirment collection in Quries..!

    Hello all,
          I am needed to go to the client site to get the end-user requirement on quires...!they have already sent me an xls file which has all the names/Descriptions of the reports they needed in BW module by module wise. These are not the SAP BC reports. now this something i have never worked on..(Gathering the requirement)...!and then when i come back form the site (1week)..we actually need to develop the BW modeling (from the scratch)to meet this. My client already has few other rollouts in BW like..Eg Europe/Asia ,this will help me 40% only and now this is a new rollout.
    I need ur help seriously to light success in my trip...
    1)What kind of information should i need to gather from end-user?(tell me in detail)
    2)there are around 180reports from all the modules...!and they may be or may not meet up the SAP BC.
    3)how to do the modelling based on this information?
    4)when i should go for Business contant Objects (Cubes/Datasources...etc)
    It will be kind enough for you all....!please share your experience with me..!I need it !
    Thanks to All.....!
    Have a nice day. ([email protected])

    Hi,
    For each and every report , try to get what are the restrictions to be consider and what is the logic of programming behind in the calulation of performance
    indicators.
    If you are able to get any relavent R/3 report take a look on that . and analyze the logic being used in the calcuations.
    Let us take report for Net sales(this is billing report):
    And assume the client wants to consider (total sales - value of returns) as net sales.
    So here all types of billing documents(wheher it may be sold document or return) will be extracte to BW.
    But in the report we need to differentiate the these billing documents on basis of Billing type or Billing category or Etc, to find out the value of net sales.After differentiating few documents come under sold documents and few comes under returns.
    So to differentiate the documents we should aware of what are the characterstics are crucial.
    And the logic in assigning the value of any document , each organization follows their own logic. So ask them how they are calculating them. This is important when they are following different calculation or logic for displaying values in any R/3 reports . It is important , because they will compare R/3 reports with BW reports later.
    And also try to tell them that BW is For analysis reports. It is very difficult(almost not possible) some times to built a report if they are looking pure OLTP oriented report in BW. So examine each report possibilities in BW.
    And donot worry for any thing . You will do it easily. Try to do the job with all your efforts.Then you will get success in that.
    with rgds,
    Anil Kumar Sharma .P

  • Need help on getting the column names of Tabletype

    I have a table Mapping with the following values: This Mapping table contains the table names (in Tabname) and the column names(colname) of various tables and values(ValuesTobeFilled) for the columns.
    I have to insert into the tables present in the Tabname field with the values present in the ValuesTobeFilled in the columns present in the Colname field.
    Note: The Mapping table need not contain all the columns of the base table. The columns that are not present can be filled with null. And this mapping table is not fixed i.e. rows can be inserted/deleted frequently.
    Sample values in mapping table:
    Tabname                        Colname        ValuesTobeFilled
    sample_items     Eno     Corresponding Expression to get the values from XML input
    sample_items     Ename     Corresponding Expression to get the values from XML input
    XXX     YYY     Corresponding Expression to get the values from XML input
    Before filling in the actual tables, I have to store the entire data temporarily and I have used a tabletype declared as follows:
    TYPE T_sample_items IS TABLE OF sample_items%ROWTYPE INDEX BY BINARY_INTEGER;
    l_sample_items T_sample_items;
    Where the table sample_items have the following columns:
    •     Eno
    •     Ename
    •     Eaddress
    •     Eemail
    So, the tabletype should be filled as:
    Eno     Ename     Eaddress     EEmail
    1     XXX     -     -
    I have declared a cursor to select the values from mapping table and I need to fill in the ValuesTobeFilled values to the corresponding table.
    CURSOR c_xpath (c_tname mapping.TABNAME%type)
    IS
    select * from mapping where tabname = c_tname;
    CURSOR c_tables
    IS
    SELECT DISTINCT TABNAME FROM mapping;
    FOR crsr IN c_tables
    LOOP
    p_tname := CRSR.TABNAME;
    FOR csr IN c_xpath(p_tname)
    LOOP
    IF l_xml_doc.EXISTSNODE(CSR.XPATH_EXP) = 1
    THEN
    l_node_value := l_xml_doc.extract(CSR.XPATH_EXP).getStringVal(); -- This is the value to be stored in the corresponding column
    ELSE
         l_node_value := NULL;
    END IF;
    IF CSR.COLUMN_NAME = ‘eno’
    THEN
         l_sample_items(1).eno := l_node_value;
    ELSIF CSR.COLUMN_NAME = ‘ename’
    THEN
         l_sample_items(1).name := l_node_value;
    END IF;
    END LOOP;
    END LOOP;      
    And I need to eliminate hard coding while comparing the column names (in the following piece of code) as the Mapping table values are subject to insertion/deletion:
    IF CSR.COLUMN_NAME = ‘eno’
    THEN
         l_sample_items(1).eno := l_node_value;
    ELSIF CSR.COLUMN_NAME = ‘ename’
    THEN
         l_sample_items(1).ename := l_node_value;
    END IF;
    I need to insert the values directly into the tabletype without this hardcoding. Please suggest me ways to compare the mapping table values with the field (column) names of the tabletype. If it is not possible using tabletype, please suggest any other ways of fixing the problem.
    Many thanks,
    Gopi

    I take it this isn't going to be a serious production system at the end of the day?
    Storing metadata in tables for extraction and insertion of data is just wrong in so many ways. It smells heavily of Entity Attribute Value modelling, which is the most wrong way to use a relational database and is known to have major performance implications and be liable to bugs and issues. The idea that EAV modelling allows for 'generic' databases where new data items can be added flexibly later on without having to change code is usually justified with an excuse of "it means we don't have to update all our tables when we want a new column" which is easily countered with "if you're adding a single column a good relational design wouldn't require you to add it to more than one table anyway in most cases".
    Just what exactly are you trying to do and why? There has to be a better way.

  • Need help to get the user entered value from a input field in Table in OA

    I have a table in my OA page.
    Here one column is there which should take in put from user.
    i.e an item quantity field text input is there which should take the updated value when the add to cart link which is next column in the table. On clicking of the link I am trying to get the updated value entered by user. for the respected row for which addto cart link get clicked.
    For that link I have defined some parameter through SPEL,( like this parameter name: item_quantity value : ${oa.MisibeItemSearchVO.ItemQuantity} ) which has fireaction. But when i am clicking the addto cart link I am not getting the current value entered by the user.
    Can any body guide me how to get that related value for which the add to cart link got clicked.
    for this when i am doing pageContext.getParameter("item_quantity"));
    I am not getting the value entered by user.
    please suggest me
    Thanks!
    Smarajeet

    The below is my Vo query for item quanity i am using a dummy query "(select null from dual) as ITEM_QUANTITY"
    in the below query and item type is number. and this is a messageTextINput in OA page and is maped to ItemQuantity vo attribute.
    SELECT idsi.section_item_id
    ,idsi.inventory_item_id
    ,(select concatenated_segments from mtl_system_items_kfv mstk
    where mstk.inventory_item_id = idsi.inventory_item_id
    and mstk.organization_id =idsi.organization_id) ITEM_NAME
    ,(select description from mtl_system_items_tl mtll
    where mtll.inventory_item_id = idsi.inventory_item_id
    and mtll.organization_id =idsi.organization_id
    and language = USERENV('LANG') ) ITEM_Description
    ,(SELECT CASE
    WHEN instr(msib.segment6,'NAMED USER') > 0 THEN 'NAMED_USER'
    WHEN instr(msib.segment6,'PROCESSOR')>0 THEN 'PROCESSOR'
    ELSE msib.segment6
    END
    FROM MTL_SYSTEM_ITEMS_B msib
    WHERE msib.INVENTORY_ITEM_ID = idsi.inventory_item_id
    AND msib.ORGANIZATION_ID = idsi.organization_id) LICENSE_TYPE
    ,(SELECT CASE
    WHEN instr(msib.segment6,'1 YR') > 0 THEN '1YR'
    WHEN instr(msib.segment6,'2 YR') > 0 THEN '2YR'
    WHEN instr(msib.segment6,'3 YR') > 0 THEN '3YR'
    WHEN instr(msib.segment6,'4 YR') > 0 THEN '4YR'
    WHEN instr(msib.segment6,'5 YR') > 0 THEN '5YR'
    WHEN instr(msib.DESCRIPTION,'Perpetual') > 0 THEN 'PERPETUAL'
    END TERM FROM MTL_SYSTEM_ITEMS_B msib
    WHERE msib.INVENTORY_ITEM_ID = idsi.inventory_item_id
    AND msib.ORGANIZATION_ID = idsi.organization_id) TERM
    ,(select qll.operand
    FROM qp_list_lines qll
    ,qp_pricing_attributes qpa
    WHERE qll.list_line_id = qpa.list_line_id
    AND qpa.product_attr_value = to_char(idsi.inventory_item_id)
    AND qll.list_header_id = 439381
    AND sysdate between NVL(qll.start_date_active, sysdate) and NVL(qll.end_date_active, sysdate+1)
    AND qpa.list_header_id = qll.list_header_id
    AND qpa.product_attribute = 'PRICING_ATTRIBUTE1'
    AND qpa.product_attribute_context = 'ITEM'
    AND NVL(qpa.pricing_attribute_context,'MIXED') = 'MIXED') ITEM_PRICE
    ,(select null from dual) as ITEM_QUANTITY
    ,(select currency_code from qp_list_headers_b where list_header_id =439381) currency_code
    ,(select segment1 from mtl_system_items_b msib
    where msib.inventory_item_id = idsi.inventory_item_id
    and msib.organization_id =idsi.organization_id) PART_NUMBER
    FROM ibe_dsp_section_items idsi
    ,ibe_dsp_msite_sct_items idmsi
    ,( select distinct child_section_id
    from IBE_DSP_MSITE_SCT_SECTS b
    connect by PRIOR child_section_id = parent_section_id
    start with parent_section_id =:1
    and mini_site_id =1
    UNION
    select distinct child_section_id
    from IBE_DSP_MSITE_SCT_SECTS b
    where child_section_id =:1
    and mini_site_id =1
    ) csi
    WHERE idsi.organization_id = 101
    AND idmsi.section_item_id = idsi.section_item_id
    AND idsi.section_id = csi.child_section_id
    AND idmsi.mini_site_id = 14409

  • Please, i need help in get the specified T-List Element Value

    i have a T-list Item contain 10 values
    and i navigate on the values by mouse, and each value contain a form name ,
    and i want to open the form which i select it by navigate in the T-list item
    the question :- how can i get the index of the current which i navigate on

    Hi!
    I don't know, why you need the list-index.
    Try something like this:
    function list_index ( f_list_name in varchar2,
                          f_search_value in varchar2 ) return number is
    l_list_id item := find_item ( f_list_name );
    --> we use the id of the item because it said to be quicker to access
    begin
    if
      id_null ( l_list_id)  OR
      f_search_value is null
    then
      return ( null );
    end if;
    for i in 1..get_list_element_count ( l_list_id ) loop
      if
        get_list_element_value ( l_list_id, i ) = f_search_value
      then
        return ( i );
      end if;
    end loop;
    return ( null );
    end;Use this in a when-list-changed trigger

  • Need help to get the Result

    Hi Guyz,
    Request from our client is go get sum and average of certain key figures in a single line, The result should  show only the sum of all key values and average of all key values , Am able to get the sum but unable get average of all values in a single line,
    Would appreciate if I can get the solution Quick.
    System : BW 3.5
    Regards,
    Ravi

    Hi,
    Craete seperate CKF's to get SUM and AVERAGE rather than using the overall result.
    Exception aggregation might help you.
    -Vikram

  • Need help  to get the dID from a Webcenter TaskFlow

    Hi everyone,
    Here is a description of my need.
    I would like, in an ADF Fusion Web Application, to be able to browse the UCM content and then locate a file to get its dID. I saw that multiple ADF Task Flows exist for that, such as Documents - Document Explorer, Documents - Document Navigator, etc. None of them seems to offer this feature.
    The big picture here, is I want to select a file, within the UCM, to then link this file to a specific project in my application.
    For example :
    ProjectID 1, dID 3254234545
    ProjectID 2, dID 5465434564
    Does someone know a way for me to obtain the dID of a selected item on a "Documents - Document Explorer" taskflow?
    I have looked into taskflow customization but I don't think this could be the solution to my problem.

    I'm afraid the best available documentation is the one already provided. It is true that it does not mention explicitly if the parameter is input or output (unlike all the others it could be both), but searching for some more info and thinking about it I assume it must be an input one.
    What I found is this: http://docs.oracle.com/cd/E23943_01/web.1111/b31974/taskflows.htm
    In the text it states that: "An ADF bounded task flow consists of its own set of private control flow rules, activities, and managed beans. A caller requires no internal knowledge of such things as page names, method calls, child bounded task flows, managed beans, and control flow rules within the bounded task flow boundary. Input parameters can be passed into the bounded task flow, and output parameters can be passed out on exit of the bounded task flow. Data controls can be shared between task flows."
    This means, you could use either an output parameter (if the task flow is somehow exited - which it does not do at the moment; that's why I think the current param is an input one), or a data control.
    Read on in the document, and it seems that a data control might be a better option here. I'm afraid it leads more to the realm of ADF, so it might be better to search the ADF forum - even though, some forum users might be able to help even here.
    Another question is how to fill in this parameter. If it is not implemented, you will have to analyse the insides of the task flow. I think WebCenter Portal uses the RIDC Java API, so you will have to search where a DOC_INFO service is called (via RIDC or Web Services - note that there are few DOC_INFO services). See this link http://docs.oracle.com/cd/E23943_01/doc.1111/e11011/c04_core.htm#BABBCIEB and on for details. These services return result sets, particularly one called DOC_INFO where you can find dID to be copied to your output parameter/data control.
    I've been also thinking if dDocName would not be more appropriate - dDocName marks a content item, dID marks a revision (there might be more for one content item), but you seem to know what you need.

  • Calendar in iCloud deleted - need help to get the data back

    Hi,
    I just deleted one of my calendars in iCloud. Is there any chance to get this calendar (with all the data) back into iCloud?
    Thanks for your help.
    Pierre

    how? I should have a backup at my time machine from earlier today. Do I need to completely restore my MBP to also get my calender data back? Note that i only by accident deleted one calender (my others are ok)
    thank you

  • K1:Need help to get the tun tap driver for ICS

    Thanks khanning's ROM, my k1 is runnign ICS rooted.
    But I still cannot have cisco anywhere connection work.
    It's complained that lack of tun tap driver.
    I tried to download couple tun.ko from websites (tun.ko installer) and all of them make the ideapad crash/reboot.
    Anyidea how can I get one for my K1 on ICS?
    Thanks
    Daedal
    Solved!
    Go to Solution.

    There may be some way of adapting this to work for the K1. http://www.modaco.com/topic/313133-howto-compiling​-tuntap-driver-for-htc-hero/

  • Need Help with selecting the proper output settings

    I am new user of Final Cut Studio and the problem that I am running into is with the final version of a dvd I have created.
    Situation: I have files imported(Final cut studio) in MP4 format (they look perfect), once im done editing and export to dvd studio pro the files look fuzzy and pixelated. What are the proper settings to stop this from happening?

    MP4 is a highly compressed format designed to deliver files over restricted bandwidth media. So yes, file sizes will increase when converted to an editable format.
    Whether the file sizes you quote are "accurate" or not, I leave to your judgement.
    x

  • When starting Firefox, error on missing profile comes up. Need help to get the profile

    After downloading Firefox version, can not start as error for missing profile comes up

    Try to delete the profiles.ini file to make Firefox create a new default profile or create a new profile yourself.
    * http://kb.mozillazine.org/profiles.ini_file
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_Manager
    *https://support.mozilla.org/kb/Managing+profiles

  • Need help to fit the records of a table into a particular region

    Hi All,
    Need help in getting the records of table to be fitted into a particular region provided for it. But in my case as the records increases the textbox below are moving down accordingly into next page that i dont want.  
    As shown in the below image i have to fit 22 no. of records in that given area only not disturbing the below textbox alignments.
    Thank in advance...
    Sreekanth Note: Please vote/mark the post as answered if it answers your question/helps to solve your problem.*****

    Hello,
    In SSRS, Report items within a report can be
    kept together on a single page implicitly or explicitly by setting the keep with group or keep together properties.
    In your case, you can try to specify the "KeepTogether" property to True on the Table properties windows.
    If there are other report items  under or above the Table and you want keep all items on the single page, you can try to add a Rectangle and put all items into the Rectangle.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Need help in getting 'RoleApprover' and 'Manager of RoleApprover'

    We are developing a Custom Role Approval Process using SOA composite.
    A manager or a delegated admin will be raising a Role Approval request for a beneficiary. We need to assign the Approval task to beneficiaries' manager or Role Approver.
    If the RoleApprover does not Approve the task in stipulated time, the task needs to get escalated to RoleApprover's manager.
    I'm new to OIM APIs, i was folllowing the tutorial "developing_oim_custom_approval_process_for_role_request.pdf". This needs an user defined field 'RoleApprover' created in the Role request form. We cannot create user defined field in the role request form.
    I need help in getting the 'RoleApprover' and the 'Manager of RoleApprover' programmatically.
    Payload from the OIM Approval request follows:
    <ns2:process>
    <RequestID>176</RequestID>
    <RequestModel>Assign Roles</RequestModel>
    <RequestTarget>Onhand Quantity</RequestTarget>
    <RequesterDetails>
    <FirstName>Steve</FirstName>
    <LastName>Waugh</LastName>
    <Login>STEVEWAUGH</Login>
    <DisplayName>Steve Waugh</DisplayName>
    <ManagerLogin>XELSYSADM</ManagerLogin>
    <OrganizationName>Test</OrganizationName>
    <Email>[email protected]</Email>
    <Status>Active</Status>
    <XellerateType>End-User</XellerateType>
    <UserType>Full-Time</UserType>
    <Role>ALL USERS</Role>
    <Role>Primavera P6 - Global</Role>
    <Role>iProcurement Catalog Administrator</Role>
    <Role>Onhand Quantity</Role>
    <Role>Test Purchasing Super User</Role>
    <Role>Test Delegated Administrator</Role>
    <Role>HELPDESK ADMINISTRATORS</Role>
    <Role>Test e-Commerce Gateway Super User</Role>
    <Role>eBusiness Finance</Role>
    <Role>Test Line Manager</Role>
    <Role>Test_ApplicationApprover</Role>
    </RequesterDetails>
    <BeneficiaryDetails>
    <FirstName>David</FirstName>
    <LastName>Boon</LastName>
    <Login>DAVIDBOON</Login>
    <DisplayName>David Boon</DisplayName>
    <ManagerLogin>STEVEWAUGH</ManagerLogin>
    <OrganizationName>TestCO</OrganizationName>
    <Email>[email protected]</Email>
    <Status>Active</Status>
    <XellerateType>End-User</XellerateType>
    <UserType>Full-Time</UserType>
    <Role>ALL USERS</Role>
    <Role>Hyperion</Role>
    <Role>Test Purchasing Administrator</Role>
    <Role>Test Internet Expenses Audit Manager</Role>
    <Role>Test Internet Expenses Auditor</Role>
    </BeneficiaryDetails>
    <ObjectDetails>
    <name>Test Onhand Quantity</name>
    <attributes/>
    </ObjectDetails>
    <url>
    http://host:port/workflowservice/CallbackService
    </url>
    <OtherDetails/>
    </ns2:process>
    Edited by: rajesh on Feb 13, 2011 9:00 AM

    Choose Xerces2.4 to serialize the DOM object is an option.
    javac XercesTest.java -classpath xmlParserAPIs.jar;xercesImpl.jar;.
    java -classpath xmlParserAPIs.jar;xercesImpl.jar;. XercesTest test.xml
    below is the source file: XercesTest.java
    //JAXP
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    //APACHE SERIALIZE FUNCTION
    import org.apache.xml.serialize.*;
    class XercesTest
    public static void main(String[] args) throws Exception
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document doc = builder.parse( new File( args[0] ) );
    File f = new File( "copy_of_"+ args[0] );
    OutputFormat format = new OutputFormat("xml","UTF-8",true ) ;
    FileOutputStream fout = new FileOutputStream( f );
    XMLSerializer ser = new XMLSerializer(fout, format );
    ser.serialize( doc );
    maybe it's helpful
    land

Maybe you are looking for

  • Updating values in a Grid template

    I'm using xMII 11.5 SP3.  Can values displayed in a grid template be edited directly in the template?  We have an application where we'd like to pull values out of a SQL Server table, display them in a grid and have the user update the numbers then p

  • Story Editor bug

    Hi. I'm currently experience a bug in story editor that is making it very hard to edit text effectively. The Story Editor works fine for a short while (maybe five minutes, sometimes a little longer), but then does odd things when selecting text. If I

  • What is the audio throughput via usb on the new macbook air?

    I just purchased a new macbook air and was wondering what kind of audio that I would get as output from the computer via usb. In particular I am interested what kind of audio I am sending as output to my Bose T1 Tonematch Mixer?

  • Is there a way of using the 5 gb that iCloud uses for general storage (e.g other games)?

    Is there a way of getting rid of iCloud on iPhone4s?

  • Face screen blows up and won't respond

    sporatically my phone with have the home screen blow up huge, where you can't access any of the functions; I need to hard shut it down.  When I restart it is fine.  What could be causing this problem, does it happen to anyone else?