String Manipulation in BI Publisher Report Paramater

Hi,
My Problem is that I am not able to do string manipulation on BI Publisher report Prameters.
Actually I want to Show Deptno-Dname in Menu(LOV).and when I select Certain combination like '10-Accounting',and while passing the parameter:Dept I wanted to Cut the department no(10) using string manipulation functions provided by oracle in Data Model(Query) in where clause like (where deptno=to_number(substr(:Dept,1,2)).
This query is working fine in other application like TOAD,But not giving results in BI Publisher Report.
It's also not giving any error while saving or running the report.
Please suggest any solution.

even I tried the following query in data model..
select DISTINCT EMP.EMPNO as EMPNO,
EMP.ENAME as ENAME,
EMP.JOB as JOB,
DEPT.LOC as LOC
from SCOTT.DEPT DEPT,
SCOTT.EMP EMP
where emp.DEPTNO=DEPT.deptno
and DEPT.deptno=nvl(to_number(substr(:department,1,2)),DEPT.deptno)
But the Parameter which I want to pass say Department('10-Accounting'),
Still it is showing employees from all departments.

Similar Messages

  • Need Date manipulation in BI Publisher report template

    Hi All,
    I need date manipulation in BI Publisher report template for e.g sysdate+4 this means i need 4 days after todays sysdate.
    That menas if today date(sysdate) is 09/01/2008 then i need (sysdate+4) i.e 13/01/2008.
    Please help me.
    Thanks
    Edited by: user562690 on Jan 9, 2009 3:21 PM

    Hi M14,
    I have doubt on similar type.I have AgreementStartDate as
    <AgreementStartDate>12/03/2008 07:24:10</AgreementStartDate> in XML format.
    I am not able to apply same formula for thsi date format in similar manipulation.
    Please help me.
    TIA
    skr

  • Open BI Publisher Report After Submit

    I have a page with 2 date fields, which are parameters for a report.
    I also have a button called RUN_REPORT.
    What I need to do is that the user puts the parameters in, then clicks RUN_REPORT. The page should submit (putting parameters into session state) and then a BI Publisher report should appear in a pop up page.
    At the moment using the code below, the user inputs parameters and clicks RUN-REPORT (SUBMIT). Unfortunatley the BI report tries to open before the submit is finished. So there are no items in session state for the report to use as parameters.
    Page HTML Header
    <script type="text/javascript">
    function renew()
    doSubmit('SUBMIT')
    popupURL('This contains my string to open the report')
    </script>On my button
    javascript:renew();Help appreciated
    Gus

    I've solved this in two ways:
    First solution:
    - The last parameter the user has to pick is in a selectlist which submits the page
    - The button redirects to url:
    javascript:popUpNamed('URL','');Seccond solution (and user-friendlier solution ;) ):
    1 - Hidden item (say P_RAP), default it's empty
    2 - The buttons Action is 'Submit page'
    3 - A conditional Branche to the own page, which only runs when the report button is pressed.
    3a -- This branche sets the hidden Item (P_RAP) with the report name (in my case, becouse I can start multiple reports on the page and I use it in my URL to the report, it can also be just a 1 or something, just that it is filled)
    4 - A Page Process which runs On Load - After Header, and is conditional: Value of Item P_RAP is NOT NULL.
    4a -- The code of this process is:
    BEGIN
    htp.p('<script type="text/javascript">');
    htp.p('w = open("URL_to_the_report","_blank","Scrollbars=0,location=0,resizable=1,menubar=0,toolbar=0,left=50,top=100,width=500,height=500");');
    htp.p('</script>');
    :P_RAP:=''; /*clear the P_RAP item after starting the report*/
    END;Hope this helps

  • XML Publisher Report Output from OAF Page

    Hi,
    I created a button in a OAF page, and called the XML publisher Report program on click of this button. The concurrent request was ran when check from View Requests. When I click on viewout, the pdf document was open with the option, open, save, cancel. But this is not coming up in the OAF page. when debugged the code, the url is null.
    Please see the below code.
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)paramOAPageContext.getRootApplicationModule().getOADBTransaction();
    String s1 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("TWO_TASK");
    System.out.println("s1 = " + s1);
    String s2 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("GWYUID");
    System.out.println("s2 = " + s2);
    String s3 = "BEGIN :1 := fnd_webfile.get_url(fnd_webfile.request_out, :2, :3, :4, 2); end;";
    CallableStatement callablestatement = paramOAPageContext.getApplicationModule(paramOAWebBean).getOADBTransaction().createCallableStatement(s3, 1);
    System.out.println("s3 = " + s3);
    if(requestId != 0)
    try
    Number number = new Number(requestId);
    callablestatement.registerOutParameter(1, 12);
    callablestatement.setInt(2, number.intValue());
    callablestatement.setString(3, s2);
    callablestatement.setString(4, s1);
    callablestatement.execute();
    String s4 = callablestatement.getString(1);
    System.out.println("Before S4 if statement");
    if(s4 == null || s4.equals(""))
    // throw new RuntimeException();
    System.out.println("URL is null");
    System.out.println(" print ouput url - " + s4 );
    // throw OAException.wrapperException(exception);
    oadbtransactionimpl.putValue("OutputURL", s4);
    System.out.println(" print ouput url - " + s4 );
    }

    Look at the links AJ gave.
    Basically what you will do is create a Data Definition and assign a Data Template to it. Create a (document) Template and assign it to your data definition. You will use the XML Publisher Java API classes to pass parameters to your data template and extract the XML data. Then you will use this in conjunction with your document template and the OAF integration region to present the final output to the user.
    All of these things are in the XML Publisher documentation and Javadocs.

  • Call Xml Publisher report from Jdeveloper

    Hi,
    I am first time integrating XML publisher with Jdevloper.
    I need to call xml publisher report from Jdeveloper.
    I followed all steps from anilpassi link for sample
    its showing error while tring to open pdf file
    Error:
    Adobe Reader could not find 'EmpReport[1].pdf' because it is either not a supported file type or because the file has been damaged.
    Please help ,i m stuvk because of this error.
    below is the code
    EmpCO :
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModuleImpl am =
    (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    am.invokeMethod("initEmpVO");
    // am.invokeMethod("getEmpDataXML");
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModuleImpl am =
    (OAApplicationModuleImpl)pageContext.getApplicationModule(webBean);
    if ("GenerateReport".equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("event fired");
    // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
    DataObject sessionDictionary =
    (DataObject)pageContext.getNamedDataObject("_SessionParameters");
    HttpServletResponse response =
    (HttpServletResponse)sessionDictionary.selectValue(null,
    "HttpServletResponse");
    try
    System.out.println("inside try");
    ServletOutputStream os = response.getOutputStream();
    // Set the Output Report File Name and Content Type
    String contentDisposition = "attachment;filename=EmpReport.pdf";
    response.setHeader("Content-Disposition", contentDisposition);
    response.setContentType("application/pdf");
    // Get the Data XML File as the XMLNode
    XMLNode xmlNode = (XMLNode)am.invokeMethod("getEmpDataXML");
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    xmlNode.print(outputStream);
    ByteArrayInputStream inputStream =
    new ByteArrayInputStream(outputStream.toByteArray());
    ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
    //Generate the PDF Report.
    TemplateHelper.processTemplate(((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    APP_NAME, TEMPLATE_CODE,
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF, null,
    pdfFile);
    // Write the PDF Report to the HttpServletResponse object and flush.
    byte[] b = pdfFile.toByteArray();
    response.setContentLength(b.length);
    os.write(b, 0, b.length);
    os.flush();
    os.close();
    catch (IOException e) {
    System.out.println("Exception1"+e);
    } catch (SQLException e) {
    System.out.println("Exception2"+e);
    } catch (XDOException e) {
    System.out.println("Exception3"+e);
    pageContext.setDocumentRendered(false);
    EmpAMImpl:
    public void initEmpVO() {
    EmpVOImpl vo = getEmpVO1();
    if (vo == null) {
    MessageToken errTokens[] =
    { new MessageToken("OBJECT_NAME", "EmpVO1") };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    } else {
    vo.executeQuery();
    public XMLNode getEmpDataXML() {
    OAViewObject vo = (OAViewObject)findViewObject("EmpVO1");
    XMLNode xmlNode =
    (XMLNode)vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
    return xmlNode;
    Please help !!

    Hi,
    I tried the way suggested by Anil in the above link as well today, but still am getting the same error while openning the pdf .
    Dont know why it shows error that either the file is not a supported file type or because the file is damaged.
    Please suggest way to solve this error or some other way of calling xml report from OAF page.
    Edited by: user13573749 on Apr 10, 2011 9:59 PM

  • How to show the Dashboard Filter Promts in a BI Publisher report?

    Hi,
    I have a problem when trying to pass Dashboard Prompt Filters from OBI Analysis to a Publisher Report?
    Im working in OBIEE 11g. Where I simply can integrate the BI publisher to show the same result set as shown in the Analysis (Answers) Report.
    I have also created dummy tables in my Analysis Report that shows the presentation variables from the prompts and I have also one dummy table that shows a session variable with a String when the DW was updated.
    I use these dummy tables to be able to pass the promt values to BI Publisher.
    The problem I have is that...
    I can see that the Strings I have Prompted in my Analysis Report, but only the default values are shown in my BIP report.
    -It works fine with my session variable that I display as a string in a dummy table as well as in the BIP report.
    -Is there any other way to show the prompted Filters as information in a BI Publisher report??????
    Thanks,
    Ken

    Is there a reason why you don't use the presentation variables directly to filter the BI publisher report?
    If you use the presentation variables, then ensure that the presentation variables associated with the prompt exactly matches the BIP report parameter name. In this case, you can create another datamodel with a sql that selects the parameters. for example: select :param1, :param2 from dual. In that case, the xml will include the parameter values and you should be just able to insert the param fields in the template.
    Thanks!

  • Advantage and disadvantage of xml publisher, report builder and discoverer

    Hi,
    anyone can explain advantage and disadvantage of xml publisher, report builder and discoverer?
    thanks in advance!

    The best way i found was to put a equals and then double quotes... this only works for excel however it will allow you to cut and paste (ie to use the value to search in Oracle) and also to do vlookups.
    In a bit more detail:
    - I used word to generate my default table
    - this created a field INVOICE_NUM
    - in the cell in the table i put = " before the INVOICE_NUM field and then put the closing " afterwards.
    The theory is that excel will concatenate the values together... because it has quotes around it, it will treat it as a string rather than simply a value.
    For any other formats this will not work.
    I'm guessing most people have moved on and resolved this some other way, but just thought I'd share the wealth!

  • Phone Numbers in BI Publisher report woes

    Hi,
    I am having the following issue in BI Publisher reports, with phone numbers.
    Essentially what happens is that BI Publisher displays the phone number with a string of zeros after it (which is in fact the value stored in the Siebel database).
    I wondered if there is a way round this problem?
    I'll include some information below about how Siebel handles phone numbers.
    How Siebel Handles Phone Numbers:
    1) There is List of Values with Type PHONE_FORMAT.
    Inside the LOV's is a string of zeros (0) a different number/with/without spaces/ etc defined for each country.
    The 'Order' column of the LOV contains the country code.
    Next, there is two different scenarios about what will happen to the phone numbers you enter in Siebel:
    1) You enter the phone number EXACTLY as specified in the PHONE_FORMAT LOV.
    Result:
    UI Display:
    In the Siebel UI the phone number will be displayed correctly.
    For the Object Manager you entered it in, the country code would be trimmed off the front if you entered it.
    For other Object Managers, the phone number would be displayed e.g. with +44 before.
    Database Level:
    The phone number is stored WITHOUT additional zeros after.
    BIP report based on the field:
    THe BIP report always displays the database value (in this case without zeros).
    2) You enter the phone number DIFFERENTLY to as specified in PHONE_FORMAT LOV.
    Result:
    UI Display:
    In the Siebel UI the phone number will be displayed correctly.
    For the Object Manager you entered it in, the country code would be trimmed off the front if you entered it.
    For other Object Managers, the phone number would be displayed e.g. with +44 before.
    Database Level:
    The phone number is stored WITH additional zeros after (I guess they represent the formatting in some way).
    BIP report based on the field:
    The BIP report always displays the database value (in this case with the zeros).
    Finally, just to say we work across the whole of Europe, Middle East and Africa which includes a great many different countries.
    Each of these countries can have different length phone numbers, and there may be cases were a country has more than 1 number of digits in a phone number.
    (So trimming the number is not very helpful)
    Does anyone have any experience of getting BI Publisher to display phone numbers 'correctly' or 'how they are displayed in the Siebel UI?'
    Any help you can offer would be appreciated.

    Please post the details of the application release, database version and OS along with BI Publisher.
    Is the issue with all reports or specific one(s) only?
    Do you have the patches in the following docs applied?
    Overview of Available Update Patches for Oracle BI Publisher Enterprise 10g [ID 797057.1]
    Overview of Available Update Patches for Oracle BI Publisher Enterprise 11g [ID 1276869.1]
    Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]
    BI Publisher 10g RTF Template Changes Alignment Settings for Numbered Lists [ID 1418504.1]
    Thanks,
    Hussein

  • Error when publishing report to remote crystal 2008 server

    In attempting to publish a report to a remote crystal server (see code below) I get this exception. 
    Since the server is on a remote host, it doesn't make sense to me to set the BOBJHome property or pass the file path.  This is why I am using the addUniqueFile() with the byte[] parameter file contents. 
    Is this the cause?  Is there a better way?  Please let me know if anyone has ideas. 
    Thanks,
    --Jeff.
    [http-8080-Processor25] ERROR gov.nrc.nsts.reporting.backend.helpers.PublishCrystalReportHelper - Could not publish report, exception:
    com.crystaldecisions.sdk.occa.managedreports.reportadd.internal.b: Adding Crystal Report "6cc6326cc9dbc0" failed. An internal error occurred.
          at com.crystaldecisions.sdk.occa.managedreports.reportadd.internal.d.a(Unknown Source)
          at com.crystaldecisions.sdk.occa.managedreports.reportadd.internal.d.refreshReportObjectProperties(Unknown Source)
          at com.crystaldecisions.sdk.plugin.desktop.report.internal.m.refreshProperties(Unknown Source)
          at gov.nrc.nsts.reporting.backend.helpers.PublishCrystalReportHelper.execute(PublishCrystalReportHelper.java:99)
         public void execute() {
              try {
                   // Ensure that the new parent is a folder
                   String query = "SELECT * FROM CI_INFOOBJECTS "
                       + "WHERE SI_ID = '" + cmsId + "'";
                   IInfoObjects parents = oInfoStore.query(query);
                   if (parents.size() != 1) {
                        resultSet.addException(new Exception("Parent Element not found: CMSID="+cmsId) );
                        return;
                  IInfoObject parent = (IInfoObject) parents.get(0);
                  // Enforce business logic
                  if ((parent instanceof IFolder)==false) {
                       // Can't add folder to a non-folder
                        resultSet.addException(new Exception("Parent element must be a Folder: " + parent.getTitle()));
                        return;
                   //You need to set the CeEnterpriseContext.BOBJ_ENTERPRISE_HOME property first
                   //in order to upload new reports because the runtime needs to have access
                   //to some utility files located in the Business Object Home directory
                   //Modify this to point to your Business Objects installation directory
                   //String BOBJHome = "C:\\Program Files\\Business Objects";
                   //Retrieve the system properties
                   //Properties properties = System.getProperties();
                   //Set the Business Objects home directory
                   //properties.setProperty(CeEnterpriseContext.BOBJ_ENTERPRISE_HOME, BOBJHome);
                   //Update the system proeprties
                   //System.setProperties(properties);   
                   //Retrieve the PluginMgr object.
                   IPluginMgr oPluginMgr = oInfoStore.getPluginMgr();
                   //Use PluginManager to retrieve the Report plugin, which is needed to publish a new report.
                   IPluginInfo oPluginInfoNewReport = oPluginMgr.getPluginInfo("CrystalEnterprise.Report");
                   //Create a new InfoObjects collection to add the new report to
                   IInfoObjects oInfoObjects = oInfoStore.newInfoObjectCollection();
                   //Add the newly created report plugin to the oInfoObjects collection. This will create
                   //a new InfoObject based on the type of plugin passed in.
                   oInfoObjects.add(oPluginInfoNewReport);
                   //Retrieve the newly created report InfoObject
                   IInfoObject oInfoObjectNewReport = (IInfoObject)oInfoObjects.get(0);
                   //Set the report name and file location
                   InstanceNameBean inb = (InstanceNameBean)Helper.getDto(params, InstanceNameBean.class);
                   oInfoObjectNewReport.setTitle(inb.getName());
                   //FilePathBean fpb = (FilePathBean)Helper.getDto(params, FilePathBean.class);
                   //oInfoObjectNewReport.getFiles().addFile(fpb.getPath());
                   byte[] reportContents = (byte[])Helper.getDto(params, byte[].class);
                   oInfoObjectNewReport.getFiles().addUniqueFile(reportContents);
                   //Set the parent folder for the new report.
                   oInfoObjectNewReport.properties().setProperty(CePropertyID.SI_PARENTID, cmsId);
                   //Refresh the report properties to update the new report information before
                   //committing the changes to the InfoStore
                   IReport oReport = (IReport)oInfoObjectNewReport;
         -->          oReport.refreshProperties();  <-- !!throws exception here!!
                   //Commit the new collection to the CMS using the commit method. This publishes the new report.
                   oInfoStore.commit(oInfoObjects);
              } catch (SDKException e) {
                  logger.error("Could not publish report, exception: ", e);
                   resultSet.addException(e);

    This is an example of a stored procedure that is trying to be linked to a new report as the only datasource.
    If I remove the parameter I can create a report, however this will return all of the results of thw query to the report, rather than the desired results. If I add the parameter on the Crystal Report, the stored procedure then has to return all of the results to Crystal and then perform the filtering of records. By using a parameter in the stored procedure, you should be able to do all of the filtering as part of the query on the databse server, making this more efficient.

  • Problem in XML Publisher Report submission from OAF Pages

    Hi,
    I am trying to submit Concurrent Program from OAF Page which is an XML Publisher Report.
    The request is Submitting and Completing successfully but when we open to view the out put we are able to view the HTML tags.
    We checked the same Concurrent program by submitting from the SRS window After completing if we click on view output the rtf file is getting opened correctly.
    I tested with normal rdf report it is working fine with standard Concurrent program used in OAF
    So my doubt is
    Does the Standard Concurrent program used in OAF supports the rtf reports.
    Please suggest if any modifications to be done in the Concurrent program
    Krishna

    Krishna
    Modified your code a little bit.Use this
        public int submitCPRequest(String shipmentId) {
        System.out.println("into submitCPRequest");
            OAPageContext pageContext;
            OAWebBean webBean;
        try {
    OAApplicationModule am =pageContext.getApplicationModule(webBean);
        OADBTransaction tx = (OADBTransaction)am.getOADBTransaction();
        java.sql.Connection pConncection = tx.getJdbcConnection();
        ConcurrentRequest cr = new ConcurrentRequest(pConncection);
        String applnName = new String("XXAPL"); //Application that contains the concurrent program
        System.out.println("ApplName"+ applnName);
        String cpName = new String("XXAPLPOSMPRD"); //Concurrent program name
        System.out.println("Concc Name"+ cpName);
        String cpDesc = new String(" APL PO Shipping Material Pickup Request"); // concurrent Program description
        // Pass the Arguments using vector
        // Here i have added my parameter headerId to the vector and passed the
        //vector to the concurrent program
        Vector cpArgs = new Vector();
        cpArgs.addElement(shipmentId);
        System.out.println("Args"+ cpArgs);
        // Calling the Concurrent Program
        int requestId = cr.submitRequest(applnName, cpName,cpDesc, null, false, cpArgs);
        cr.addLayout("XXAPL", "XXAPLPOSMPRT", "ENG", "US" , "RTF");
        System.out.println("Req Id"+ requestId);
        tx.commit();
        return requestId;
            catch (RequestSubmissionException e) {
            System.out.println("Into Exception");
            OAException oe = new OAException(e.getMessage());
            oe.setApplicationModule(this);
            throw oe;
            catch(Exception exception)
            throw OAException.wrapperException(exception);
        }Thanks
    AJ

  • Pulling Signature into an XML Publisher report for Recruitment letters

    Hi All,
    I'm trying to create signed recruitment letters for the Talent Acquisition module and am not quite sure how to handle this technically.. I assume some customizations are in order...
    I guess some of the questions I have are:
    1) Is there OOTB functionality to handle Signatures in PS?
    2) Do i store the image in the database or on an accessible network/local drive location?
    3) Can XML Publisher handle this type of request?
    4) Is there any documentation out there to explain this in more detail?
    5) Any advice on how to proceed?
    I also have a company logo they want pulled into the XML Publisher Report.. i assume it would be a simliar effect.
    Anyway, I was hoping someone out there may have some advice on how to proceed.
    Regards,
    Greg

    Below excerpt from Oracle XML Publisher Core Components Guide
    Images
    XML Publisher supports several methods for including images in your published document:
    Direct Insertion*
    Insert the jpg, gif, bmp, or png image directly in your template.
    URL Reference*
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the
    following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter:
    url:{'http://www.oracle.com/images/ora_log.gif'}
    You can also build a URL based on multiple elements at runtime. Just use the
    concat function to build the URL string. For example:
    url:{concat(SERVER,'/',IMAGE_DIR,'/',IMAGE_FILE)}

  • Passing a list of items from APEX to a Bi Publisher report

    I currently have Bi Publisher report that is parameter driven based on items selected from an APEX application. Currently, the user select one value for the parameter and the value is passed in the URL string and the report produces as expected. Now the user wants to be able to select items from a checkbox list and the items checked are the values to be passed. Has anyone ever dealt with this type of request and if yes, could you please point me in the right direction. I search the forum and I couldn't find any topics that dealt with my situation.

    Try using the "get content from textedit" action. More specifically, use your Applescript to dump the urls into a textedit doc and then use the "get contents..." action to feed the "get specified urls" action.

  • Large export file when application contains a BI Publisher report

    Anyone have an idea why an application export file grows dramatically when a BI Publisher report template is added to an application? I have an application that was 400+ KB and went to 88+ MB just by adding one report query and RTF template. This results in taking over an hour to import the application.

    Each RTF Report layout is converted to an ASCII string to allow the import routine to load the rtf as part of the application.
    If your template has any embedded graphics e.g. a logo then this SIGNIFICANTLY increases the size of the ASCII encoding of the template.
    Hope this helps.

  • Bind Variables with AND in String causing Issues in XML & Report Outputs

    Hi all,
    I'm creating a BI Publisher report (10.1.3.2) and am experiencing an issue with the interprutation of Bind Variables in the Data Template.
    Here is an example of some of the Data template
    <dataTemplate name="BudgetDataBU" description="BudgetDataBU" dataSourceRef="DLXN">
       <parameters> 
          <parameter name="p_Year" dataType="Integer" include_in_output="true"/>
          <parameter name="p_Measure" dataType="character" include_in_output="true"/>
          <parameter name="p_Currency" dataType="character" include_in_output="true"/>
          <parameter name="p_Version" dataType="character" include_in_output="true"/>
       </parameters>
       <dataQuery>
          <sqlStatement name="BusUnits">
               <![CDATA[SELECT DISTINCT CC.BUSINESS_UNIT as BUSINESS_UNIT
                        FROM   DLXN_FACT_DATA_DET FD,
                               DLXN.COST_CENTRE CC
                        WHERE FD.COST_CENTRE = CC.COST_CENTRE
                        AND FD.CAL_YEAR    = :p_Year
                        AND FD.Currency      = :p_Currency
                        AND FD.Measure      = :p_Measure
                        AND FD.Version        = :p_Version                                
                        AND CC.DLXN_VIEW = 'Delexian' ]]>
               </sqlStatement>
           <sqlStatement name="Details">
               <![CDATA[SELECT DLXN_FACT_DATA_DET.VERSION,
                               DLXN_FACT_DATA_DET.CURRENCY,
                               DLXN_FACT_DATA_DET.CAL_YEAR as CAL_YEAR,
                               SUM(nvl(DLXN_FACT_DATA_DET.JAN_AMT,0)) as JAN_AMT,
            </sqlStatement>
        </dataQuery>The problem is with the :p_Measure Bind Variable but it could just as easily be any of the other character parameters.
    The particular string value that is causing a problem is "Travel and Expenditure". I believe it is due to the "AND" in the string but this string value cannot be changed in the database to say "Travel & Expenditure".
    I have thought about using a REPLACE function in the SELECT statement but see this as an ugly solution.
    Any input greatly appreciated.
    Kind Regards,
    Gary.

    We remove this restriction ,fix included in BI Publisher July 2009 update for 10.1.3.4.x. The patch number is 8704846.

  • OBIEE / BI Publisher report question

    Hi, quick OBIEE / BI Publisher question. We have a requirement to produce a very formatted, complex report. All of the data exists in OBIEE - but there are multiple subject areas needed to answer the questions (thus multiple Answers queries).
    Assuming I can create an Answers report with the raw data for each section (i.e. a "header" section, "detailed cost" section, "budget" section, etc. - each of which would be done in a separate Answers query), is it possible to use BI Publisher to then "string together" each of the separate sections into one integrated report?
    I'm not very BI Publisher literate. I know how to use an Answers query as the "source" for a BI publisher report. But I'm not sure how to have multiple Answers queries embedded on a single BI Publisher report.
    Thanks in advance!
    Scott

    Hi Scott,
    In your BIP report you'll need to create a separate "Data Set" for each Answer. Then all you need to do is click on "Data Model" and select "Concatenated SQL Data Source" as the Main Data Set. This will combine the results into a single xml result set.

Maybe you are looking for

  • My ipod 5th gen cannot connect to any locked wifi servers, it is under a year old, and im wondering if it is a technical prob, can i get i fixed or replaced

    WiFi problems I think.... Should I bring it to a store to get it checked out?  Whenever I type my password for the WiFi connection, it always says its incorrect and I sometimes can't even connect to the unlocked WiFi servers too

  • PSA in BW 7.0

    hi all, In the version BW 3x,  RSA1-->modeling there was a PSA icon and now in BW 7.0 there isn't. How do i can see it?? thank  you very much

  • IPOD 30GB

    Hello. I've read much of the forum but 1st issue is the photo slideshow on my IPOD 30 GB. Downloaded pictures used to display full screen and scroll automatically. Perfect! Now the slideshow displays three tiny photos while scrolling. Have altered th

  • Fs00 bdc problem in ticking checkbox fields

    Hello All, I have written bdc for tcode FS00 for gl master record upload but im getting error while uploading. In flat file i have putted value 'x' for posting without tax allowed, manage in local currency,open item and line item but when im running

  • Contact sheet - just 2 pictures - How?

    Hi, I'm just trying, in iPhoto - to make an 8x10 print where I've placed 2 - 5x7 prints (one on top of the other) on the paper. I'm trying to do that very simple exercise, and can't seem to make it work. Or . . . just take 3 or 4 prints and resize th