SQL Functions Supported by RDBMS Adapter

Hi,
Where can I find the list of SQL Functions supported by RDBMS Adapter?
I am retrieving date from Oracle 9i using RDBMS Adapter 8.1 SP2.However when I use any SQL Function (like to_char, to_date) in select query the service creation fails with a parsing exception.
Please help me resolving this.I want a date to be selected as a string in a particular format.
Thanks,
Vishvjit

Sorry,just got the resolution in Known Limitations of the adapter Release Notes. Actually we have to create a service of arbitory sql for using SQL Functions in the query.

Similar Messages

  • SQL function support within cfquery

    Are all SQL statements supported by <cfquery>?
    I'm tring to use FORMAT() with no luck.
    p.s. using MySQL db

    I am doing simple math within a query of query.
    Specifically:
    <cfquery dbtype="query" name="qClubRecord">
    SELECT
    SUM(WIN) AS WINS,
    SUM(LOSS) AS LOSSES,
    SUM(TIE) AS TIES,
    SUM(WIN)/(SUM(WIN) + SUM(LOSS) + SUM(TIE)) AS WIN_PERCENTAGE
    FROM
    qGetRecords
    </cfquery>
    This works.
    My problem arises when displaying. I would like to show only 2 decimal places.
    Now, I'm using <cfgrid> with format="html", so I can't use numberFormat.
    I should be able to solve this problem within SQL. After a quick look I found the FORMAT() statement.
    Works as advertised from the command line, but incorporating into <cfquery> fails (whether QoQ or not).
    So I'm stuck.
    <cfquery dbtype="query" name="qClubRecord">
    SELECT
    SUM(WIN) AS WINS,
    SUM(LOSS) AS LOSSES,
    SUM(TIE) AS TIES,
    FORMAT(SUM(WIN)/(SUM(WIN) + SUM(LOSS) + SUM(TIE)),2) AS WIN_PERCENTAGE
    FROM
    qGetRecords
    </cfquery>
    Thank you both for answering.

  • Invoking PL/SQL function (via DB Adapter) with in parameter (BPEL newbie)

    Hi!
    Using: JDeveloper: 10.1.3.3.0, OAS: 10.1.3
    I'm new to BPEL, and now I have a simple problem:
    anyway to pass in parameter value with PL/SQL function call via DB Adapter?
    PL/SQL function like this:
    >>
    create or replace function f_test_bpel (p_in in number)
    return number
    is
    begin
    return p_in;
    end;
    >>
    For example (audit part of invoke in BPEL Console. Output always null :( ):
    >>
    Invoke_F_TEST_BPEL
    [2008/01/10 15:51:39] Invoked 2-way operation "F_TEST_BPEL" on partner "F_TEST_BPEL".less
    - <messages>
    - <Invoke_1_F_TEST_BPEL_InputVariable>
    - <part name="InputParameters" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/MYDB/F_TEST_BPEL/">
    <P_IN>7</P_IN>
    </InputParameters>
    </part>
    </Invoke_1_F_TEST_BPEL_InputVariable>
    - <Invoke_1_F_TEST_BPEL_OutputVariable>
    - <part name="OutputParameters" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/MYDB/F_TEST_BPEL/">
    <F_TEST_BPEL>
    </F_TEST_BPEL>
    </OutputParameters>
    </part>
    <part name="response-headers" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    </part>
    </Invoke_1_F_TEST_BPEL_OutputVariable>
    </messages
    >>
    Regards

    Adding more to what 'Arcturus' has put across :
    1) You can check your input & output arguments to a PL/SQL function/procedure using an assign activity, in which you tend to assign a source variable to a target variable.
    Here, you can check to see, if the input & output to the DB Adapter are correct, if not, you can always recreate the adapter.
    2) You can also check the schema of the PL/SQL function, to check if it has the right inputs & outputs.
    It'd be a .xsd file in the format of <SCHEMA_NAME-OF-FUNCTION.xsd> viz. SCOTT_EMPDETAILS.xsd

  • Unable to retreive the return value of pl/sql function using DB Adapter

    Dear Experts,
    I am using DB Adapter in my BPEL Process. Using DB Adapter I am invoking a PL / SQL function. I am able to send two input parameters for the pl/sql function. But I dont know how to retrieve the return value from the function. Please suggest me.
    Thanks,
    Rajesh

    Yes I am returning a value from PL/SQL function.
    Please see the code segments below,
    FUNCTION "TD_INSERT" (a TDINIT_TYPE, stops TDDETAIL_TABLE )
    RETURN VARCHAR2
    AS
    td_no Number;
    td_id Number;
    stop TDDETAILFULL_TYPE;
    length number;
    BEGIN
    insert into TD_INIT values( ----passing all the values here --------- );
    select max(tdno) into td_no from TD_INIT ;
    length := stops.count;
    for i in 1.. length loop
    stop := stops(i);
    insert into TD_DETAIL_FULL values(
    td_no, ------- );
    end loop;
    commit;
    RETURN td_no;
    END;
    Thanks,
    Rajesh

  • Support of PL/SQL Functions in Data Modeler

    Hello,
    Sorry if this question has already been answered, I searched the forum but got 215 hits on data modeler + pl/sql functions.
    So my question is:
    Stored Procedures are already supported by the physical model (11g) of data modeler, but I could not find any method
    to create pl/sql functions via data modeler - neither in the documentation nor on the user interface. Is this
    currently not supported?

    Is this currently not supported?There will be support for functions and packages in next release.
    Philip

  • Transaction support in RDBMS event adapter

    I am using RDBMS adapter v7.0 SP2.
    1) Does anyone know if the reading of a database record (event) from an Oracle
    DB, its transfer to the WLAI_EVENT_QUEUE JMS queue and execution by the RDBMS
    adapter of the "Post SQL query" on the originating database are all executed within
    a single transaction? I can find no evidence of this in any BEA documentation
    so any reference would also be gratefully received.
    2) Assuming there is a transaction to transfer the event to the WLAI_EVENT_QUEUE,
    is the transaction used by the Event Processor to transfer the event from the
    WALI_EVENT_QUEUE to the BPM Event queue a new and independent transaction? I believe
    so.
    Thanks.

    In all the BPELs, make sure you are adding the preferredPort property on the partnerlinks for the esb services. You need to give this to force the BPEL->ESB calls to use the esb bindings rather than the soap bindings.
    I think this is old info, but the preferredPort property is mentioned at the bottom: http://bpel.us.oracle.com/engineering/knowledgebase/DD/DDProps.htm

  • Do Report Builder support custom SQL Functions

    Hi All,
    I’m new to SSRS Report builder. I had written a SQL query which executes really well when I run in Management Studio. I tried to put that same query in new report to everyone can easily access.  I build the DataSource and connection successfully tested. 
    At the time of creating new Dataset, I pasted same query and that’s where I got stuck.
    Is it possible to add custom SQL Functions in the Report Builder SSRS?
    The Syntax of method is as follow
    Create Function [dbo].[ufn_Sqlstatement]( @str as varchar(max)) RETURNS varchar(max)
    Thanks in Advance

    You do not need to put the create function script into the query. It only needs to be executed once. Instead, run it on the database server. Then, simply call the function from your query:
    SELECT dbo.ufn_SQLstatement('select * from table')

  • Invoking a PL/SQL function from BPEL throws fault.

    Hi, I'm trying to invoke a PL/SQL function that inserts data in to a table from a BPEL via DB Adapter. The process, when I test it, throws a runtime fault as follows:
    *Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'EmpRegister' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. AddEmployee:EmpRegister [ EmpRegister_ptt::EmpRegister(InputParameters,OutputParameters) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/DBConn_215'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/DBConn_215. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.*
    Also, the fault description was a s follows:
    *JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/DBConn_215'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/DBConn_215. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server.*
    I know, it looks like a JCA adapter error, but when I do a DB to DB table synchronization with this connection factory, no problems happen. Is ther any special procedure I should follow in mapping input data to db schema?

    HI,
    I am working on BPEL process and human workflow...
    I created a process and a Data control and now can see it as JCA Adapter in console..in this adapter I am executing a sql procedure.. we can execute in in BPEL process through invoke activity, now my requirement is how to invoke this data control through custom java code. please help...\
    now i have two wsdl files.
    RegistrationUpload.wsdl(process name)
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="RegistrationUpload"
    targetNamespace="http://xmlns.oracle.com/RegistrationUpload_jws/RegistrationUpload/RegistrationUpload"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:client="http://xmlns.oracle.com/RegistrationUpload_jws/RegistrationUpload/RegistrationUpload"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         TYPE DEFINITION - List of services participating in this BPEL process
         The default output of the BPEL designer uses strings as input and
         output to the BPEL Process. But you can define or import any XML
         Schema type and use them as part of the message types.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <wsdl:types>
              <schema xmlns="http://www.w3.org/2001/XMLSchema">
                   <import namespace="http://xmlns.oracle.com/RegistrationUpload_jws/RegistrationUpload/RegistrationUpload" schemaLocation="xsd/RegistrationUpload.xsd" />
              </schema>
         </wsdl:types>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         MESSAGE TYPE DEFINITION - Definition of the message types used as
         part of the port type defintions
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <wsdl:message name="RegistrationUploadRequestMessage">
              <wsdl:part name="payload" element="client:process"/>
         </wsdl:message>
         <wsdl:message name="RegistrationUploadResponseMessage">
              <wsdl:part name="payload" element="client:processResponse"/>
         </wsdl:message>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PORT TYPE DEFINITION - A port type groups a set of operations into
         a logical service unit.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <!-- portType implemented by the RegistrationUpload BPEL process -->
         <wsdl:portType name="RegistrationUpload">
              <wsdl:operation name="process">
                   <wsdl:input message="client:RegistrationUploadRequestMessage"/>
              </wsdl:operation>
         </wsdl:portType>
         <!-- portType implemented by the requester of RegistrationUpload BPEL process
         for asynchronous callback purposes
         -->
         <wsdl:portType name="RegistrationUploadCallback">
              <wsdl:operation name="processResponse">
                   <wsdl:input message="client:RegistrationUploadResponseMessage"/>
              </wsdl:operation>
         </wsdl:portType>
         <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         PARTNER LINK TYPE DEFINITION
         the RegistrationUpload partnerLinkType binds the provider and
         requester portType into an asynchronous conversation.
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
         <plnk:partnerLinkType name="RegistrationUpload">
              <plnk:role name="RegistrationUploadProvider">
                   <plnk:portType name="client:RegistrationUpload"/>
              </plnk:role>
              <plnk:role name="RegistrationUploadRequester">
                   <plnk:portType name="client:RegistrationUploadCallback"/>
              </plnk:role>
         </plnk:partnerLinkType>
    </wsdl:definitions>
    uploadDataToPermananentDB.wsdl
    <?binding.jca uploadDataToPermananentDB_db.jca?>
    <wsdl:definitions name="uploadDataToPermananentDB"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/RegistrationUpload/RegistrationUpload/uploadDataToPermananentDB"
    xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/DAMSMGR/TEMP_TO_PERMANENTDB/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/RegistrationUpload/RegistrationUpload/uploadDataToPermananentDB"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
    <plt:partnerLinkType name="uploadDataToPermananentDB_plt">
    <plt:role name="uploadDataToPermananentDB_role">
    <plt:portType name="tns:uploadDataToPermananentDB_ptt"/>
    </plt:role>
    </plt:partnerLinkType>
    <wsdl:types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/DAMSMGR/TEMP_TO_PERMANENTDB/"
    schemaLocation="xsd/DAMSMGR_TEMP_TO_PERMANENTDB.xsd"/>
    </schema>
    </wsdl:types>
    <wsdl:message name="args_in_msg">
    <wsdl:part name="InputParameters" element="db:InputParameters"/>
    </wsdl:message>
    <wsdl:portType name="uploadDataToPermananentDB_ptt">
    <wsdl:operation name="uploadDataToPermananentDB">
    <wsdl:input message="tns:args_in_msg"/>
    </wsdl:operation>
    </wsdl:portType>
    </wsdl:definitions>
    please help me how to call the data adaper from my java code..
    hope i will get some hint in this forum...
    Edited by: user13370040 on Mar 22, 2011 5:55 AM

  • How to distinguish built-in SQL functions of PL/SQL?

    I m having a hard time to figure out which functions are used ONLY in SQL statements and which are used in regular expr(ie, variable assignment,). Can anyone show me a list of each or perhaps a URL to look for?
    I have searched through either the developer's guide and reference but couldn't find any appropriate indication in one place that make it clear.
    For instance, I thought I can use CAST function in a variable assginment like the following:
    declare
    cursor myCur is SELECT Value_varchar2(1) FROM table WHERE id = 1;
    myRec myCur%ROWTYPE;
    var_a NUMBER(1);
    begin
    OPEN myCur;
    FETCH myCur INTO myRec;
    CLOSE myCur;
    var_a := CAST(myCur.Value_varchar2(1) AS NUMBER(1));
    DBMS_OUTPUT.PUT_LINE('var_a = ' || TO_CHAR(var_a));
    end;
    . It seems like CAST function can ONLY be used in SQL statement, but no doc so far states that?!
    Edited by: HappyJay on 2010/05/12 12:05

    Sorry to bother you, Bob!
    I think I might already found the list. Is it the following list?
    ---------------------- QUOTED FROM Oracle® Database PL/SQL Language Reference 11g Release 2 (11.2)Part Number E10472-06
    SQL Functions in PL/SQL Expressions
    In PL/SQL expressions, you can use all SQL functions except:
    Aggregate functions (such as AVG and COUNT)
    Analytic functions (such as LAG and RATIO_TO_REPORT)
    Data mining functions (such as CLUSTER_ID and FEATURE_VALUE)
    Encoding and decoding functions (such as DECODE and DUMP)
    Model functions (such as ITERATION_NUMBER and PREVIOUS)
    Object reference functions (such as REF and VALUE)
    XML functions (such as APPENDCHILDXML and EXISTSNODE)
    These conversion functions:
    BIN_TO_NUM
    These miscellaneous functions:
    CUBE_TABLE
    DATAOBJ_TO_PARTITION
    LNNVL
    NVL2
    SYS_CONNECT_BY_PATH
    SYS_TYPEID
    WIDTH_BUCKET
    PL/SQL supports an overload of BITAND for which the arguments and result are BINARY_INTEGER.
    When used in a PL/SQL expression, the RAWTOHEX function accepts an argument of data type RAW and returns a VARCHAR2 value with the hexadecimal representation of bytes that comprise the value of the argument. Arguments of types other than RAW can be specified only if they can be implicitly converted to RAW. This conversion is possible for CHAR, VARCHAR2, and LONG values that are valid arguments of the HEXTORAW function, and for LONG RAW and BLOB values of up to 16380 bytes.
    ----------------------

  • Using HANA SQL Functions in select list of CDS Views

    Dear Expert,
    Kindly please let me know if we can use the HANA SQL Function (Ex: ADD_DAYS, SECONDS_BETWEEN) in the select list of CDS Views?
    If I create a CDS like below I get error that timestamp is not supported.
    For Example:
    @AbapCatalog.sqlViewName: 'ZMR_H_CA'
    @EndUserText.label: 'CAG A'
    define view viewname
    with parameters start_ts:abap.dec( 15, 0 ) , end_ts:abap.dec( 15, 0 )
    as select from table {
    key resource_key,
    TO_TIMESTAMP(begtstmp) as start_tmp,
    TO_TIMESTAMP(begtstmp) as end_tmp
    where
    (begtstmp > $parameters.start_ts or endtstmp > $parameters.start_ts )
    and
    (begtstmp < $parameters.end_ts or endtstmp < $parameters.end_ts )
    Thanks,
    Giri

    Hi Giri,
    the list of provided features can be found in the ABAP Language Documentation (F1 in the CDS View).
    As CDS in ABAP is abstracted from the database layer, the database features are not directly accessible. That means, you cannot use any HANA or MaxDB feature available. So the answer to your question is no. The reason for this is, that ABAP CDS views can be created on all SAP-supported databases, hence, we can only provide those features, supported by all databases.
    Having said this, there are some exception, e.g. the CDS views with input parameters, which are not supported by all databases. In these cases, you'd have to additionally use the utility class CL_ABAP_DBFEATURES (see http://scn.sap.com/community/abap/blog/2014/10/10/abap-news-for-740-sp08--abap-core-data-services-cds) for more details.
    Best,
      Jasmin

  • SQL functions in Script Logic

    I want to build a script logic but the dimensions that I am testing do not have the fields I want in the format I want. In my case I would like to test the "Start" property in the Employee dimension. The property represents the employee start date but is a var char in the format dd.mm.yyyy rather thna a date field. I want to test whether it is five years prior to the date being processed.
    My time dimension has a year property and a monthnum property. Each of these are varchar. I can write SQL that would convert these to a date and compare them with the start property on the employee dimension.
    Can I  do iinsert SQL functions in the When statement. An example would be
    *When convert(datetime, substring(employee.start,4,2) + '/' + substring(employee.start,1,2) + '/' + substring(employee.start,7,4))
    Can I use  SQL functions in the Is statement? An example would be
    *Is <DateAdd(YY,-5 , convert(datetime, Time.Monthnum + '/01/'' + time.year)
    Finally when I use such techniques and look at the log by using "show log" in the logic debugger I see no reference to the SQL I used. It is as if the generated SQL has not made use of my functions. Instead all I seee are the extract statements from the three fact tables. Is this normal? Is there a way to see what SQL is really being generated and run?
    At the moment it seems my only option is to make changes, try running it and hope I get an output. If no records are written I can't be sure whether it is because embedding SQL function is not supported or because I have made some other error.

    No, the "BPC SQL" script logic doesn't allow for this extensive use of real SQL within the scripting syntax. As a concept, it's best to think of "BPC SQL" script logic as, "this unique BPC logic syntax will generate real SQL code when it's executed."
    There's very little real SQL that you can use within the syntax itself, and definitely not within the WHEN or IF statements.  Nothing like cast, convert, substring, etc. (Except you CAN use these, a little bit, in a *SELECT statement. But I don't see how that will solve your current problem.)
    Plus, when you consider how the logic engine processes a set of data, it's helpful to think of it in terms of selects & reading through a recordset. So in that regard, a SQL background can be helpful, in understanding the concepts. (Sort of helpful, except when it confuses you, or frustrates you since you don't have all the power you want.)
    Anyway, to solve your problem, you might be able to restate the problem, and then use something like this code, which is valid syntax:
    *WHEN TIME.TIMEID
    *IS >= VERSION.FirstPlanMonthTimeID
    In this case, FirstPlanMonthTimeID is set up in the version dimension as, for example, 20090400 (representing 2009.APR). This timeID is set by BPC automatically when processing the time dimension, and I need to ensure that my Version property value is set to match it.
    A key point is that in BPC fact tables, the time dimension is stored as TIMEID (not ID, unlike all the other dimensions), and can be used for comparative evaluation in script logic WHEN/IF. The comparison property needs to be stored as an 8-digit integer value. If your time dimension has days in it (along with months), check the TIMEID after processing, and you should see the pattern for assigning values to TIMEID for days and months, etc.
    Normally, TIMEID is assigned pretty sensible and stable values. If it doesn't meet your logic requirements, you can create another property (be careful of USERTIMEID, since that has a specific purpose in the system which I've never fully understood) and assign that whatever (integer) values make sense.

  • Call PL/SQL Function in ABAP over XI

    Hi all,
    is it possible to call a PL/SQL function in a BW-ABAP over XI and to get back the return value of the function. What proxy do i need and how should the coding look like if it is possible.
    I am thankful for every little help.
    Peter

    You can do a client proxy to JDBC scnario in XI. If you have a stored procedure on the Database side you can call it using SQL XML message type.
    Search for the JDBC receiver adapter documentation on help.sap.com
    VJ

  • Materialized View with column based on PL/SQL function returning object

    I have the following problem - it is known that materialized view wants PL/SQL functions used in it to be DETERMINISTIC. And it appears that a function which returns SDO_GEOMETRY cannot be DETERMINISTIC - I can add DETERMINISTIC modifier to my function which returns sdo_geometry based on USNG grid ID and save the package, and it compiles and runs fine with regular queries, but when it comes to materialized view (mview), the following error is thrown:
    ORA-12018: following error encountered during code generation for "SCHEMA"."MVIEW_NAME"
    ORA-00932: inconsistent datatypes: expected NUMBER got MDSYS.SDO_GEOMETRY
    Looks like DETERMINISTIC modifier is not fully supported for object types. I have tried to use SDO_CS.FROM_USNG Oracle's function, and it appeared that this function is also non-deterministic - I cannot refresh mview with P or F on-demand refresh method (see http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14223/refresh.htm#i1008349 for a list of on-demand refresh methods). Without that function I can refresh mview with P or F flags.

    Hi,
    Yes, the Chart Series can be based on "Function Returing SQL Query" and the "SQL" would be something like:
    DECLARE
    vSQL VARCHAR2(1000);
    BEGIN
    vSQL := 'SELECT NULL LINK, ENAME LABEL, SAL VALUE FROM EMP ORDER BY ENAME';
    RETURN vSQL;
    END;You should tick the "Save query without validation" underneath that. Without this, there is a validation error - the ; at the end is required to get the chart to function correctly but the validator sees this as an error.
    You would need to create this separately from the report. No matter how you did it, the chart would still run a SQL statement to generate the output. If you wanted to use the "same data", then you could create a collection using the PL/SQL and base both the report and the chart on the collection instead.
    Andy

  • DB Functions Supported in UNX

    Are DB Functions supported in UNX universes? We are on BI4.1 SP3 and trying to use an Oracle DB function that will return a numeric field based on the user who is logged into Business Objects:
    OWOD_DW.GET_BUDGET(@Variable('BOUSER'))
    The GET_BUDGET is an Oracle DB function that expects the user id, checks the budget amount field in db table, and returns budget amount and sets it to Budget object in universe.
    We have UNV universes that call Oracle DB functions, for example calculating number of working days. The processing is done on DB side and returns number of days and continue to work fine...
    Thank you for your time.
    ~Molly

    Thank you both for your answers!
    @Odie_63: Your sample worked for me, as well. I was able to find the root cause of why my statement had not worked: I was using a wrong path. Interestingly enough though, the correct result was returned if I did not use a function in the path, so it masked the root problem.
    sample XML document (shortened) : <ObjectEvent>
      <action>ADD</action>
    </ObjectEvent>correct path:SQL> SELECT EVENT_ID, ACTION   FROM EVENTSCHEMA.event x,     XMLTABLE ('/*' passing EVENTXMLTEXT
                     COLUMNS                
                            ACTION  VARCHAR(10)  PATH  'action'
      EVENT_ID ACTION
          1004 ADDwrong path, but still works:SQL> SELECT EVENT_ID, ACTION   FROM EVENTSCHEMA.event x,    XMLTABLE ('/*' passing EVENTXMLTEXT
                     COLUMNS                
                            ACTION  VARCHAR(10)  PATH  '/*/action'
      EVENT_ID ACTION
          1004 ADDfunction applied to the correct path works: SQL> SELECT EVENT_ID, ACTION    FROM EVENTSCHEMA.event x,   XMLTABLE ('/*' passing EVENTXMLTEXT
                     COLUMNS                
                            ACTION  VARCHAR(10)  PATH  'fn:lower-case(action)'
      EVENT_ID ACTION
          1004 addfunction applied to the wrong path does not work: SQL> SELECT EVENT_ID, ACTION  FROM EVENTSCHEMA.event x,    XMLTABLE ('/*' passing EVENTXMLTEXT
                     COLUMNS                
                            ACTION  VARCHAR(10)  PATH  'fn:lower-case(/*/action)'
      EVENT_ID ACTION
          1004Thanks again! I'm glad I can use the XQuery functions and don't have to find a workaround.
    -- Daniela

  • "Like" sql function not working  in Business Service

    Hi all,
    I have created a query with few Joins (Processing around 4-5 tables).It has Two scenarios, One with Equals and the other with Like function.
    SELECT
    ST.STREET,
    ST.DECOMPLEMENT,
    ST.STATE,
    LC.LOCALITY,
    DS.DISTRICT,
    ST.CDZIP,
    SP.street_type
    FROM
    STREET ST,
    DISTRICT DS,
    Locality LC,
    Street_Type SP
    WHERE
    ST.CDZIP LIKE ?
    AND ST.STARTDISTRICT = DS.DISTRICT (+)
    AND ST.LOCALITY = LC.LOCALITY (+)
    AND ST.STREET_TYPE = SP.street_type (+)
    When There is an Equal Sign after Where clause, The query gives desired output. But when there is a LIKE it does not give any output at all. How can i use this Query using perform operation.

    Hi Arun,
    How are you using it? Using DB Adapter / X-Query function? I have run similar SQL Queries easily through DB Adapter.
    Regards,
    Anuj

Maybe you are looking for

  • Dynamically changing the WHERE clause in detail VO in Master Detail

    Hi, I want to develop a search functionality, results will be in a table, which will have an inline table displaying the details per row found. I have a MD defined trough viewlink. I do change the master VO at runtime (set the entire SQL), based on t

  • Packaged function not compiling

    This one is driving me mad as I cannot see any possible reason for it. I have two packages containing functions. They are both owned by one schema, different to the schema I am using to build my form. They are both granted execute to public and have

  • How to integrate KXEN result with own apps?

    Dear Experts, When I was trying the Association Rule of KXEN (SAP infinityinsight 7.0), I do not find a good way to integrate the trained result rules into my own App. When I got a group of rules, the only way I could think is to save the rule list i

  • Import part of the sequence from another project

    I'm working on about the fifth edit of a project and now want to move part of a sequence (about 40 clips) from one project to another. I understand I could import the entire sequence and then delete all but the portion I want, or delete all but the p

  • Placement of application specific property and xml files

    I have multiple .jars inside a .ear file. These jars need to values pulled from a xml file or a properties file. I need this file to reside in one place and not inside each jar. What is the recommended way of doing so. thx for any help.