Generate output values based on contexts

Queue 1 :
contextchange
mat_name1
contextchange
mat_name2
contextchange
mat_name3
contextchange
mat_name4
contextchange
Queue 2: ( output from Boolean AND)
contextchange
true
contextchange
true
true
contextchange
true
true
true
contextchange
false
true
contextchange
Based on the 2 Queues, I shud get the following output :
contextchange
mat_name1
contextchange ( based on 2 true values of the queue 2)
mat_name2
mat_name2
contextchange ( based on 3 true values of Queue 2)
mat_name3
mat_name3
mat_name3
contextchange ( based on 1 true value of Queue 2)
mat_name4       (because false ignore II ocurance)
how do I achieve this?
regards,
nikhil.
***each useful reply will be awarded***

Hi,
contextchange
true
contextchange
true
true
contextchange
true
true
true
contextchange
false
true
contextchange
remove false from the above context. then ur output will be
contextchange
true
contextchange
true
true
contextchange
true
true
true
contextchange
true
contextchange
now u can use UseoneAsmany.
chirag

Similar Messages

  • Generate column value based on conditions

    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE     11.2.0.3.0     Production
    TNS for HPUX: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Productionselect statement to generate input
    WITH t
         AS (    SELECT 1 job_request_id,
                        1 original_job_request_id,
                        mod(level,3) +1  sequence_cd,
                        CHR (LEVEL + 100) value_txt,
                        NULL new_sequence_cd
                   FROM DUAL
             CONNECT BY LEVEL < 6),
         t1
         AS (    SELECT 2 job_request_id,
                        1 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 110) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 10),
         t2
         AS (    SELECT 3 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,3) + 7 sequence_cd,
                        CHR (LEVEL + 95) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 9),
         t3
         AS (    SELECT 4 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 95) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 7),
         t4
         AS (    SELECT 7 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 92) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 4),
         mytable
         AS (SELECT * FROM t
             UNION ALL
             SELECT * FROM t1
             UNION ALL
             SELECT * FROM t2
             UNION ALL
             SELECT * FROM t3
             UNION ALL
             SELECT * FROM t4)
    SELECT *
      FROM mytable
      order by job_request_id, original_job_request_id, sequence_cd;input
    JOB_REQUEST_ID     ORIGINAL_JOB_REQUEST_ID     SEQUENCE_CD     VALUE_TXT     NEW_SEQUENCE_CD
    1     1     1     g     
    1     1     2     h     
    1     1     2     e     
    1     1     3     i     
    1     1     3     f     
    2     1     1     v     
    2     1     1     p     
    2     1     1     r     
    2     1     1     t     
    2     1     2     u     
    2     1     2     q     
    2     1     2     o     
    2     1     2     s     
    2     1     2     w     
    3     3     7     b     
    3     3     7     e     
    3     3     8     `     
    3     3     8     f     
    3     3     8     c     
    3     3     9     d     
    3     3     9     a     
    3     3     9     g     
    4     3     1     e     
    4     3     1     c     
    4     3     1     a     
    4     3     2     b     
    4     3     2     `     
    4     3     2     d     
    7     3     1     ^     
    7     3     2     ]     
    7     3     2     _     expected output
    JOB_REQUEST_ID     ORIGINAL_JOB_REQUEST_ID     SEQUENCE_CD     VALUE_TXT     NEW_SEQUENCE_CD
    1     1     1     g     1
    1     1     2     h     2
    1     1     2     e     2
    1     1     3     i     3
    1     1     3     f     3
    2     1     1     v     4
    2     1     1     p     4
    2     1     1     r     4
    2     1     1     t     4
    2     1     2     u     5
    2     1     2     q     5
    2     1     2     o     5
    2     1     2     s     5
    2     1     2     w     5
    3     3     7     b     7
    3     3     7     e     7
    3     3     8     `     8
    3     3     8     f     8
    3     3     8     c     8
    3     3     9     d     9
    3     3     9     a     9
    3     3     9     g     9
    4     3     1     e     10
    4     3     1     c     10
    4     3     1     a     10
    4     3     2     b     11
    4     3     2     `     11
    4     3     2     d     11
    7     3     1     ^     12
    7     3     2     ]     13
    7     3     2     _     13my attempt to explain.
    if the job request id = the original job request id the new sequence cd = sequence cd
    when the job request ids are higher than the original increment the new sequence cd with respect to the maximim sequence cd of the original job request id.
    hopefully the expected output will clarify.

    this?
    WITH t
         AS (    SELECT 1 job_request_id,
                        1 original_job_request_id,
                        mod(level,3) +1  sequence_cd,
                        CHR (LEVEL + 100) value_txt,
                        NULL new_sequence_cd
                   FROM DUAL
             CONNECT BY LEVEL < 6),
         t1
         AS (    SELECT 2 job_request_id,
                        1 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 110) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 10),
         t2
         AS (    SELECT 3 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,3) + 7 sequence_cd,
                        CHR (LEVEL + 95) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 9),
         t3
         AS (    SELECT 4 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 95) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 7),
         t4
         AS (    SELECT 7 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 92) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 4),
         mytable
         AS (SELECT * FROM t
             UNION ALL
             SELECT * FROM t1
             UNION ALL
             SELECT * FROM t2
             UNION ALL
             SELECT * FROM t3
             UNION ALL
             SELECT * FROM t4)
    SELECT job_request_id,
           original_job_request_id,
           sequence_cd,
           value_txt,
           nvl(new_sequence_cd,LAG(new_sequence_cd IGNORE NULLS) OVER (ORDER BY job_request_id, original_job_request_id, sequence_cd)+sequence_cd) new_sequence_cd
    FROM(
    SELECT job_request_id,
           original_job_request_id,
           sequence_cd,
           value_txt,
           DECODE(job_request_id,
                  original_job_request_id,
                  sequence_cd,NULL)        new_sequence_cd
      FROM mytable
      order by job_request_id, original_job_request_id, sequence_cd
    JOB_REQUEST_ID     ORIGINAL_JOB_REQUEST_ID     SEQUENCE_CD     VALUE_TXT     NEW_SEQUENCE_CD
    1     1     1     g     1
    1     1     2     h     2
    1     1     2     e     2
    1     1     3     i     3
    1     1     3     f     3
    2     1     1     v     4
    2     1     1     p     4
    2     1     1     r     4
    2     1     1     t     4
    2     1     2     u     5
    2     1     2     q     5
    2     1     2     o     5
    2     1     2     s     5
    2     1     2     w     5
    3     3     7     b     7
    3     3     7     e     7
    3     3     8     `     8
    3     3     8     f     8
    3     3     8     c     8
    3     3     9     d     9
    3     3     9     a     9
    3     3     9     g     9
    4     3     1     e     10
    4     3     1     c     10
    4     3     1     a     10
    4     3     2     b     11
    4     3     2     `     11
    4     3     2     d     11
    7     3     1     ^     10
    7     3     2     ]     11
    7     3     2     _     11----
    Ramin Hashimzadeh

  • How to generate a Spool based on output type in SAP Script

    Hi all,
    Is it possible to generate a spool based on output type for a SAP Script (without explicitly trigger in Tcode VF02 and selecting output type from there )
    Actually a background job will be scheduled to process output types selected in VF01 / VF02
    When output type is ZABC in the background a work flow is called pdf is generated

    Any suggestions please

  • Outputting Currency Values Based on Customer Location

    Hi All,
    Has anyone had any experience of changing the thousand's separator on a currency value based on the customer location rather than the user logon.
    For example if the user logs on in German one thousand Euro will be output as:
    1.000
    But if they log on in English it will come out as:
    1,000
    Is it possible to change a smartform to output the thousand separator based on the customer country rather than the user logon.
    For example if the user logs on in German and wants to send an invoice to England the value should come out as:
    1,000
    Many thanks for any help, points awarded.
    Regards,
    Colm

    Hi,
    You can use the Write to Option to convert the decimal place depends on the customer location,
    WRITE: Currency_field to Cust_Curency_field.
    Cust_Curency_field is a charecter type field and Currency_field is the type of currency
    Regards
    Sudheer

  • Multiple Output XML based on input

    I want to have multiple outbound files based on the contents of the input file.  For instance, in the example below, I want to have multiple outputs based on Report_ID.
    So I would have Output 1 with Report_ID of 001 (With 2 lines), Output 2 with Report_ID of 002 (With 1 line), Output 3 with Report_ID of 007 (With 1 line) and Output 4 with Report_ID of 009 (With 2 lines).
    - <ns:INB xmlns:ns="...">
    - <EXPENSES>
    - <EXPENSE_LINES>
      <EMP_ID>TUUK1</EMP_ID>
      <Report_ID>001</Report_ID>
      <Value>7</Value>
      </EXPENSE_LINES>
    - <EXPENSE_LINES>
      <EMP_ID>TUUK1</EMP_ID>
      <Report_ID>001</Report_ID>
      <Value>3</Value>
      </EXPENSE_LINES>
    - <EXPENSE_LINES>
      <EMP_ID>TUUK1</EMP_ID>
      <Report_ID>002</Report_ID>
      <Value>25</Value>
      </EXPENSE_LINES>
    - <EXPENSE_LINES>
      <EMP_ID>TUUK1</EMP_ID>
      <Report_ID>007</Report_ID>
      <Value>6</Value>
      </EXPENSE_LINES>
    - <EXPENSE_LINES>
      <EMP_ID>TUUK1</EMP_ID>
      <Report_ID>009</Report_ID>
      <Value>63</Value>
      </EXPENSE_LINES>
    - <EXPENSE_LINES>
      <EMP_ID>TUUK1</EMP_ID>
      <Report_ID>009</Report_ID>
      <Value>3</Value>
      </EXPENSE_LINES>
      </EXPENSES>
      </ns:INB>

    You have to use Multimapping here.
    for that create a Message mapping and switch to the signature tab ,change the Occurence of target Message Type to 0..unbounded.
    Assign the Mapping as follows
    Report_ID(Change the Context to Expences)-->splitByValue(value Change)-->collapeseContext--->TO THE Target Message Type
    Report_ID(Change the Context to Expences)---> splitByValue(value Change)----->collapeseContext--->SplitByValue(ValueChange)---to the Target Report_Id.
    EMP_ID(Change the Context to Expences)---> splitByValue(value Change)----->collapeseContext--->SplitByValue(ValueChange)---to the Target EMP_Id.
    Value(Change the Context to Expences)------------------------------------------------------\
                                                                                    formatByExample-----To the TargetValue
    Report_ID(Change the Context to Expences)-->splitByValue(value Change)---------------------/
    this works fine if the Values are coming in the Order otherwise you also have to use Sort and SortBy Key functions.
    It will be better if you provide the target structure to provide the exact mapping with the target fields
    Edited by: Kubra fatima on Jun 23, 2010 3:32 PM

  • Not able to generate output in CSV(EXCEL) format

    Hi,
    XML Publisher report is giving me an error when the Preview Format is 'EXCEL'. When I keep the Preview Format as 'PDF', the concurrent program is running successfully and the PDF output is getting generated. But for EXCEL outputs, I am getting the following error :
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    The operation completed successfully. Error processing resource 'http://erpap01:8010/OA_CGI/FNDWRR.exe?temp_id=1...
    <td valign="top" class="c7"><p class="c8"><span class="c9">13 July 2009  13:15:57 PM</span>...
    I have using the following Data Template for Data Definition
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="EMPDT" description="Employee Details" version="1.0">
    <parameters>
    <parameter dataType="character" name="p_DeptNo"> </parameter>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT EMPNO
                       ,ENAME
                       ,JOB
                       ,MGR
                       ,HIREDATE
                       ,DEPTNO
                       ,SAL
                       ,COMM
                 FROM scott.Emp
              WHERE deptno = NVL(:p_DeptNo,deptno)
         ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_EMP" dataType="varchar2" source="Q1">
    <element name="EMPNO" value="EMPNO"/>
    <element name="ENAME" value="ENAME"/>
    <element name="JOB" value="JOB"/>
    <element name="MGR" value="MGR"/>
    <element name="HIREDATE" value="HIREDATE"/>
    <element name="DEPTNO" value="DEPTNO"/>
    <element name="SAL" value="SAL"/>
    <element name="COMM" value="COMM"/>
    </group>
    </dataStructure>
    </dataTemplate>
    When I click on Diagnostic - View XML, copy the XML file and generate report using Word plugin, I am able to generate output in PDF and in EXCEL. But for some reason, when I try to run the XML Publisher report using concurrent program, I am unable to generate output in EXCEL and I am getting the error as listed above.
    When I click on View Template - Preview, keeping the Preview format as Excel, I get the following error :
    Exception Detail
    java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor179.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
    at oracle.apps.xdo.oa.template.server.TemplatesAMImpl.processTemplate(TemplatesAMImpl.java:2130)
    at sun.reflect.GeneratedMethodAccessor173.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
    at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
    at oracle.apps.xdo.oa.template.webui.TemplateGeneralCO.previewTemplate(TemplateGeneralCO.java:741)
    at oracle.apps.xdo.oa.template.webui.TemplateGeneralCO.processRequest(TemplateGeneralCO.java:158)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
    at oa_html._OA._jspService(_OA.java:85)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
    at oa_html._OA._jspService(_OA.java:95)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    at oracle.jsp.JspServlet.service(JspServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
    at org.apache.jserv.JServConnection.run(JServConnection.java:294)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: oracle.xdo.parser.v2.XMLParseException: Start of root element expected.
    at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:324)
    at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:319)
    at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
    at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)
    Any inputs would be appreciated
    Regards
    David

    May be it is browser problem? use another browser like Firefox
    Edited by: ranalawa on Jul 14, 2009 2:21 PM

  • Adding value node to context

    Hi,
    I need to use <crmic:tableview> and all my output values are coming from a function module which takes input from BOL. None of the results that needs to be shown exists in BOL layer.
    For example, by passing ibase to a function module, I get values and I need to show them in a table. As each column of the table requires different event based on user action, I think <crmic:tableview> is the best chance than using <htmlb:tableview>.
    If any one of you have worked on similar area or do have code sample, could you please help me out.
    Thanks and Regards,
    Raju

    Thanks Ankur,
    1) In one of the field quantity is entered and then it will fire a FM and gets back with a message based on the business logic if the quantity is okay or not. Based on the reply, traffic signals will be shown against each line item.
    2) In another field, F4 help needs to be provided.
    3) In another field, the cell color changes based on the an indicator available against each line item.
    4) And there are couple of values and logic based cell display.
    Also it helps me in another view where I need to show TableTree display again with business logic. I know that SAP provided 2 SAP standard classes, but the problem is they always look for BO collection and I need to know the exact methods I need to hack.
    Thanks and Regards,
    Raju

  • Customized Seeded report to XMLP report but its not generating output file?

    I want to customize "Dunning Letter Print from Dunning Letter Generate" Report, which is called from "Dunning Letter Generate" Report
    Steps i followed to Customize reports are.
    1. Changed output format to xml for "Dunning Letter Print from Dunning Letter Generate" Report.
    2. Ran report to generate xml data and using xml data created RTF file
    3. Registered data definition and template with code and short name same which is ARDLP_NON_SRS
    Now while i am running report its completing normal, but its not generating output file giving Error like –
    "Unable to find Published Output for this request"
    “No Output File Exist for Request No - xxxxx”
    No Idea why its not picking template, Can anyone help me in this?
    Using:
    Oracle Applications : 10.0.5.2,
    MS Word 2007
    Thanks,

    I am not giving the solution, providing you a hint..
    This is the query you need to satisfy,
    SELECT NVL(R.DESCRIPTION ,CP.USER_CONCURRENT_PROGRAM_NAME)
    FROM FND_CONCURRENT_REQUESTS R, FND_CONCURRENT_PROGRAMS_VL CP,XDO_DS_DEFINITIONS_B XDS
    WHERE ( ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'U'
    AND R.REQUESTED_BY = :$PROFILES$.USER_ID ) or
    ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'R'
    AND R.RESPONSIBILITY_ID = :$PROFILES$.RESP_ID ) )
    AND R.PROGRAM_APPLICATION_ID = CP.APPLICATION_ID
    AND R.CONCURRENT_PROGRAM_ID = CP.CONCURRENT_PROGRAM_ID
    AND XDS.APPLICATION_SHORT_NAME=
    ( SELECT APPLICATION_SHORT_NAME
    FROM FND_APPLICATION
    WHERE APPLICATION_ID=CP.APPLICATION_ID)
    AND XDS.DATA_SOURCE_CODE = CP.CONCURRENT_PROGRAM_NAME
    AND R.OUTPUT_FILE_TYPE='XML'
    AND R.STATUS_CODE not in ('E', 'D', 'T', 'X')
    ORDER BY R.REQUEST_ID DESC
    Go to system profiles and query for 'Concurrent:Report Access Level', responsibility you need and modify the profile name accordingly....

  • How to default the KFF segment values based on other field's value

    Hi,
    I would need to reset the 5th segment value of "Liability Account" field on R12 Supplier Page under "Accounting" link.
    Condition: And it has to be based on some other value like "GLOBAL CONTEXT VALUE and TaxPayer ID Type" under "Organization" link.
    Right now; as per the seeded page it defaults the Liability Account to "BL-130-0000-2110-0000-0000" under accounting link; I need to change this default value to "BL-130-0000-2110-2641-0000" based on above condition.
    I have tried using the below code:
    OAKeyFlexBean oakeyflexbean = (OAKeyFlexBean)oawebbean.findIndexedChildRecursive("LiabilityFlex");
    oakeyflexbean.setText()
    But this one does not work.
    Can anyone suggest me some option to acheive this requirement.
    Thanks
    Edited by: 880860 on May 21, 2012 2:23 PM

    Hi everyone,
    Any thoughts? any help is appreciated...
    Thanks

  • How to generate a form based on PL/SQL-procedures instead of tables?

    Hi all,
    I'm trying to generate a form based on a package, which has procedures for insert/update/delete/select. In Forms, this is no problem. It is unclear to me how to do this in Oracle Designer (10g). Online Help of Designer doesn't clear things up a lot, it seems I have to generate a table API and a module component API. But when I do this, these are generated as file and no definitions are created in Designer. So what do I base my block on?
    Can somebody assist me in this?
    Kind regards,
    Ronald

    Hi:
    Thank you for reply to my question.
    I have tried your codes and apply them the following the form. However, I always got the following error:
    Error: (WWV-00000)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    My codes is:
    declare
    request_no number;
    blk varchar2(30) := 'DEFAULT';
    l_url varchar2(4000);
    begin
    request_no := p_session.get_value_as_NuMBER(
    p_block_name => blk,
    p_attribute_name => 'A_WORK_REQUEST_ID');
    l_url := 'portal30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=11880470335&p_arg_names=_sessionid&p_arg_values=&p_arg_names=work_request_id&p_arg_values='||request_no;
    portal30.wwa_app_module.set_target(l_url,'call');
    end;
    then,
    I created another form which has two fields and the dattype of pk is varchar2 and change manually put the pk's p_arg_value into the url.
    e.g.
    l_url:='PORTAL30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=9029417810&p_arg_names=WORK_AREA_CD&p_arg_values=APP';
    portal30.wwa_app_module.set_target(l_url,'call');
    However, I still get the error message as below:
    Error: (WWV-00000)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    Your help would be highly appreciated.
    Wei Ye

  • Can we generate output of a report in an Excel Sheet?

    Hi All,
      Can anyone tell me how to generate output of a report in an Excel Sheet format?
    Thanks in advance,
    Jasmine.

    hi,
    try this sample...
    data: begin of itab occurs 0,
          vbeln like vbak-vbeln,
          posnr like vbap-posnr,
          end of itab.
    select vbeln
           posnr
           from vbap
           up to 20 rows
           into table itab.
    * EXCEL sheet using OLE automation.
    INCLUDE OLE2INCL.
    * handles for OLE objects
    DATA: H_EXCEL TYPE OLE2_OBJECT,        " Excel object
          H_WORK  TYPE OLE2_OBJECT,
          H_SHEET TYPE OLE2_OBJECT,
          H_CELL  TYPE OLE2_OBJECT,
          V_COL   LIKE SY-TABIX.     " column number of the cell
    DATA:
      V_STEP(30),
      V_FILE LIKE RLGRAP-FILENAME.
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = 'Creating Excel...'
           EXCEPTIONS
                OTHERS     = 1.
    * start Excel
      V_STEP = 'Starting Excel'.
      CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_EXCEL  'Visible' = 1.
      CALL METHOD OF H_EXCEL 'APPEND'
        EXPORTING  #1 = 'D:SappdfABAP Trainingsheettr.xls'.
    *  PERFORM ERR_HDL.
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = 'Adding Data to Excel...'
           EXCEPTIONS
                OTHERS     = 1.
    * Get the list of workbooks
      V_STEP = 'Preaparing Excel'.
      CALL METHOD OF H_EXCEL 'WORKBOOKS' = H_WORK.
      PERFORM ERR_HDL.
    ** Add new workbook (create a file)
      CALL METHOD OF H_WORK 'ADD'.
      PERFORM ERR_HDL.
    * Get the created worksheet
    ************************Sheet Number
      CALL METHOD OF H_EXCEL 'WORKSHEETS' = H_SHEET EXPORTING #1 = 3.
    ************************Sheet Number
      PERFORM ERR_HDL.
    * Activate (select) the first sheet
      CALL METHOD OF H_SHEET 'ACTIVATE'.
      PERFORM ERR_HDL.
    * tell user what is going on
      CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
    *           PERCENTAGE = 0
               TEXT       = 'Adding Data to Excel...'
           EXCEPTIONS
                OTHERS     = 1.
    * output column headings to active Excel sheet
      V_STEP = 'Adding data to Excel'.
      LOOP AT ITAB.
        V_COL = SY-TABIX.
        PERFORM FILL_CELL USING 1 V_COL ITAB-vbeln.
        PERFORM FILL_CELL USING 2 V_COL ITAB-posnr.
      ENDLOOP.
      V_STEP = 'Releasing Excel'.
      FREE OBJECT H_EXCEL.
      PERFORM ERR_HDL.
      H_EXCEL-HANDLE = -1.
    *&      Form  ERR_HDL
    *       text
    *  -->  p1        text
    FORM ERR_HDL.
      IF SY-SUBRC <> 0.
        WRITE: / 'Error in processing Excel File:', V_STEP.
        STOP.
      ENDIF.
    ENDFORM.                    " ERR_HDL
    *&      Form  FILL_CELL
    *       text
    *      -->P_1      text
    *      -->P_1      text
    *      -->P_1      text
    FORM FILL_CELL USING  ROW COL VAL.
      CALL METHOD OF H_EXCEL 'Cells' = H_CELL
                     EXPORTING #1 = ROW #2 = COL.
      PERFORM ERR_HDL.
      SET PROPERTY OF H_CELL 'Value' = VAL .
      PERFORM ERR_HDL.
    ENDFORM.                    " FILL_CELL
    regards
    satesh

  • Timestamp data type on S[range C on E] constant value-based range windows

    Hello,
    My questiong is about how can we use timestamp value on S[range C on E] constant value-based range windows.
    I have a LotEvent which i should collect and sum lastQty data for last ten minutes of market time (sendDate)
    A normal [range 600] query does not work for me because i would like to use the exact time which data has been generated by the market (sendDate).
    Here is the event;
    public class LotEvent{
         private Double totalQty;
         private float lastQty;
         private String symbol;
         private String messageType;
         private Integer dataInterval;
         private String sendDate;
    send date is always in "MM-dd-yyyy HH:mm:ss" format.
    I have tried to use the following query but this gives an error;
    Invalid statement: "select symbol, sum(lastQty) as lastQty, 10 AS dataInterval
    +from lotInputChannel [range INTERVAL "0 0:0:15.0" DAY TO SECOND on >>sendDate<<]+
    group by symbol"
    Cause: Datatype char is not valid for value based windows
    Action: Use a valid datatype for value based windows>
    Here is the CQL;
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application">
    <processor>
    <name>lotProcTenMin</name>
    <rules>
         <query id="tenMin"> <![CDATA[select symbol, sum(lastQty) as lastQty, 10 AS dataInterval 
                from lotInputChannel [range INTERVAL "0 00:10:00.0" DAY TO SECOND on sendDate]
    group by symbol]]> </query>
    </rules>
    </processor>
    </wlevs:config>
    i have tried this cql after changing the sendDate data type to long which is the time in milliseconds value but it did not work.
    select symbol, sum(lastQty) as lastQty, 10 AS dataInterval
    from lotInputChannel [range INTERVAL "0 00:10:00.0" DAY TO SECOND on to_timestamp(sendDate)]
    group by symbol
    The query above does not work also when sendDate is a String in "MM-dd-yyyy HH:mm:ss" format
    At last i tried the following query with sendDate as time in milliseconds (long) value. It works! but i still would like to know how to use timestamp in S[range C on E] queries
    select symbol, sum(lastQty) as lastQty, 10 AS dataInterval
    from lotInputChannel [range *600000* on sendDate]
    group by symbol
    public class LotEvent{
         private Double totalQty;
         private float lastQty;
         private String symbol;
         private String messageType;
         private Integer dataInterval;
         private long sendDate;
    Could anybody please help me with this issue?
    Edited by: user8830791 on 01-Aug-2011 06:39

    It seems that you should configure the channel "lotInputChannel" as an application timestamped channel.
    You can do that as follows -
    - Have "sendDate" as a long and let its unit be milliseconds
    - Use the following child elements of <channel> for the "lotInputChannel"
    <wlevs:application-timestamped is-total-order="true">
    <wlevs:expression>sendDate*1000*1000</wlevs:expression>
    </wlevs:application-timestamped>
    The multiplication by 10^6 is required since the units need to be converted into nanos
    With this, you could use the query -
    select symbol, sum(lastQty) as lastQty, 10 AS dataInterval
    from lotInputChannel [range 10 minutes]
    group by symbol
    Of course, for the above to work, a requirement is that the value of "sendDate" is non-decreasing.
    That is if e1 is before e2 in the "lotInputChannel" then e1.sendDate <= e2.sendDate
    Edited by: Anand Srinivasan on Aug 2, 2011 6:57 AM

  • Display form at UWL error " Insufficient information for generating output"

    Hi experts,
    I got error while use "display form" button in UWL.
    the error is " Insufficient information for generating output (missing printer, for ex.) "
    ■The ABAP call stack was:
    Form: USEREXIT_TOP_2 of program RPRTEF00
    Form: TOP_OF_PAGE of program RPRTEF00
    TOP-OF-PAGE of program RPRTEF00
    Form: PRINT-REISEVERLAUF of program RPRTEF00
    Form: DRUCKE_REISE of program RPRTEF00
    Form: PRINT_TRIP of program RPRTEF00
    Form: DRUCKE-REISEN of program RPRTEF00
    Form: DRUCKE_PERSONALNUMMER of program RPRTEF00
    Form: %_GET_PERNR of program RPRTEF00
    Form: FILL_INFOTYPE_TABLES_AND_PUT of program SAPDBPNP
    how to solve this?
    thanks

    Can you elaborate on what exactly configured and how and why? I fail to understand what exactly you did because in my company, we used the standard (up until now);that means UWL configuration file "com.sap.pct.erp.mss.tra".
    And for the request-Form handling it has this action:
    <Action name="com.sap.pct.erp.mss.tra.action.DisplayRequestForm" groupAction="" handler="SAPAppLauncher" referenceBundle="com.sap.pct.erp.mss.tra.DisplayForm" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="toolbar=no,menubar=no">
          <Properties>
            <Property name="sap.xss.tra.TripNo" value="${item.TripNumber}"/>
            <Property name="display_order_priority" value="10"/>
            <Property name="SAPIntegrator" value="ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.area_travel_expenses/com.sap.pct.erp.ess.tripform"/>
            <Property name="sap.xss.tra.TripComponent" value="R"/>
            <Property name="sap.xss.tra.PersNo" value="${item.EmployeeNumber}"/>
          </Properties>
        </Action>
    So I'm kind of missing the "common thread" within your development; could you go more into detail?

  • OLAP on 11g and Materialised Views with Multiple Value-Based Hierarchies

    Hello OLAPians
    I am trying to setup Orable BIEE to report on an OLAP cube with pre-aggregated data. As OBIEE is not able to hook into the OLAP directly i have to create an SQL cubeview.
    Currently i am on a 10g OLAP environment and am using the oracle sample SQL cubeview generator to create an SQLview of my cube.
    The cube itself has multiple dimensions and these dimensions have multiple VALUE-based (ragged) hierarchies and dimension members can be shared across hierarchies also.
    Initially i had a problem running the view generator plugin because there is a bug within it that does not finish if there are multiple value-based hierarchies present. I was able to get around this by manually editing the limitmap for the cubeview and manually creating the SQL view.
    The question that i want to ask is how robust is the 11g materialised views with multiple value-based hierarchies and the sharing of dimension members across different hierarchies?
    Has anyone successfully been able to create a cubeview and import it into OBIEE without the hassle of manually editing the limitmap?
    A problem arises with the value-based setup whereby if the client creates a newer depth in the ragged hierarchy, i need to manually create the limitmap and the cube-view over again, and then re-map the BI Administration mappings.

    The simple answer to your question,
    how robust is the 11g materialised views with multiple value-based hierarchies...?is that materialized views are not supported on top of value-based hierarchies in 11g. The reason is that it is not possible to write a reasonable SQL statement that aggregates a fact over a value-based hierarchy. Such a SQL statement is necessary if we want to create a rewritable MV on top of the cube.
    But I suspect this is not what you are really asking. If you are trying to set up OBIEE on top of the cube in 10g using the view generator, then you will probably want to use the "ET VIEWS" that are generated automatically in 11g. These are generated whether or not you enable materialized views on top of your cube. I am not aware of any issues with the generated value-based hierarchy view support in 11g. Members may be shared between value hierarchies and you will not need to generate or modify limit maps.

  • Comparing 3 CSV Files and generating output to 4th One..

    Hi,
    I was trying to compare 3 different CSV files using the common field EmplID and generate output with the combination of all the CSV's. The fields in the CSV are below
    CSV1 : EmplID,HName,Name,PreferredName,Location,Department
    CSV2 : HName,EmplID,first_name,last_name,email
    CSV3 : Emplid,Extension
    I would like to generate the output CSV as below..
    OutputCSV :EmplID,Hname,Name,PreferredName,Location,Department,first_name,last_name,email,Extension
    The below script works but as it is comparing the data by row by row, it takes huge time to complete.. Can anybody suggest how can i improve the performance of the same... 
    $CSV1 = Import-CSV "Abc.CSV"
    $CSV2 = Import-CSV "DEF.CSV"
    $CSV3 = Import-CSV "GHI.CSV"
    $Merged = ForEach($Record in $CSV1){
    Add-Member -InputObject $Record -NotePropertyName 'first_name' -NotePropertyValue ($CSV2|Where{$_.EmplID -eq $Record.EmplID}|Select -Expand first_name)
    Add-Member -InputObject $Record -NotePropertyName 'last_name' -NotePropertyValue ($CSV2|Where{$_.EmplID -eq $Record.EmplID}|Select -Expand last_name)
    Add-Member -InputObject $Record -NotePropertyName 'email' -NotePropertyValue ($CSV2|Where{$_.EmplID -eq $Record.EmplID}|Select -Expand email)
    Add-Member -InputObject $Record -NotePropertyName 'Extension' -NotePropertyValue ($CSV3|Where{$_.EmplID -eq $Record.EmplID}|Select -Expand Extension) -PassThru
    $Merged | Export-CSV C:\Path\To\New.CSV -NoTypeInfo

    Hi RP,
    you can do this by creating a dictionary that uses the Employee ID as key. This allows you to iterate over each Csv only once and add values to the correct object each time. Didn't test it, but this ought to do the trick:
    $CSV1 = Import-CSV "Abc.CSV"
    $CSV2 = Import-CSV "DEF.CSV"
    $CSV3 = Import-CSV "GHI.CSV"
    $Hash = @{ }
    foreach ($Record in $CSV1)
    $Hash[$Record.EmplID] = $Record | Select EmplID, Hname, Name, PreferredName, Location, Department, first_name, last_name, email, Extension
    foreach ($Record in $CSV2)
    try
    $Hash[$Record.EmplID].first_name = $Record.first_name
    $Hash[$Record.EmplID].last_name = $Record.last_name
    $Hash[$Record.EmplID].email = $Record.email
    catch
    Write-Warning "[Csv2]Failed to process $($Record.emplID): $($_.Exception.Message)"
    foreach ($Record in $CSV3)
    try
    $Hash[$Record.EmplID].Extension = $Record.Extension
    catch
    Write-Warning "[Csv3]Failed to process $($Record.emplID): $($_.Exception.Message)"
    $Hash.Values | Export-CSV C:\Path\To\New.CSV -NoTypeInfo
    Cheers,
    Fred
    There's no place like 127.0.0.1

Maybe you are looking for

  • Search and Replace String throwing the wrong error message with regexp?

    This came up in a LAVA thread, and I'm not sure if there's a bug here or not. When using Search and Replace string, and using a regular expression of [(G[b|i])], LabVIEW throws error -4622, "There is an unmatched parenthesis in a regular expression."

  • Is it advisable to create a document in Indesign, export to PDF, then export to Word?

    I've been asked to create several documents in Word format because the people who would be using them won't have access to InDesign or Acrobat Pro to edit and change them as needed. Since Word is so quirky IMO and I don't know it as well as InDesign,

  • Changing default fonts

    I created a document on my home compter with Professional 7 and when i open the pdf on another computer, the font has changed from the orginal - how do i force the correct font to be used regardless of what computer i may open the pdf on ?

  • Hyperion Performance Scorecard

    I am new to Hyperion .. Could someone help me to get learning material of Hyperion Performance card.. Your help will be appreciated... Thank you

  • JTable: getColumnClass() causes instability when copy-paste

    Hi, I implemented copy-paste feature in MyJTable() class public class MyJTable extends JTable {      public static final long serialVersionUID = 0L;      public MyJTable(){           super();      public boolean editCellAt(int row, int col)