Quated string pass within function

sql_str1 varchar2:=SELECT * FROM CN_SMSC WHERE FILE_NAME_ID_KEY =''FCDR21-7399.FCDR1'' AND NETWORK_ELEMENT_ID_KEY=''10013'' AND CALL_START_TIME_SLOT_KEY= TO_DATE(''06-11-2006 09:15:00AM'',''DD-MM-YYYY HH:MI:SS AM'' )
values is SELECT * FROM CN_SMSC WHERE FILE_NAME_ID_KEY =''FCDR21-7399.FCDR1'' AND NETWORK_ELEMENT_ID_KEY=''10013'' AND CALL_START_TIME_SLOT_KEY= TO_DATE(''06-11-2006 09:15:00AM'',''DD-MM-YYYY HH:MI:SS AM'' )
i want to pass sql_str1 as a parameter of dump_csv
dump_csv(SQL_STR1,',','E:\NETWORK_ELEMENT_ID_KEY',TEXT_FILE_NAME)
then it return
ORA-00933: SQL command not properly ended
ORA-06512: at "SYS.DBMS_SYS_SQL", line 826
ORA-06512: at "SYS.DBMS_SQL", line 32
ORA-06512: at "TEST.DUMP_CSV", line 19
ORA-06512: at line 1
i think it should be problem of quated string
when i am hard coded this value it is working fine in my proc.

CREATE OR REPLACE PROCEDURE TEXT_GENERATOR11(TAB_NAME VARCHAR2,NE_ID VARCHAR2,F_NAME_ID_KEY VARCHAR2,
TIME_SLOT_KEY VARCHAR2,TIME_SLOT_KEY_ST VARCHAR) IS
TARGET UTL_FILE.FILE_TYPE;
SRLFILE UTL_FILE.FILE_TYPE;
WRTBUF VARCHAR2(32000);
TEXT_FILE_NAME VARCHAR2(2000);
V_INSERT VARCHAR2(32000);
lv_loop_counter NUMBER;
TYPE PL_REC_SELECT IS RECORD(SEL_FILE_NAME_ID_KEY VARCHAR2(100),SEL_NETWORK_ELEMENT_ID_KEY VARCHAR2(10),
SEL_CALL_START_TIME_SLOT_KEY DATE);
TYPE NT_TABLE_SELECT IS TABLE OF PL_REC_SELECT;
NEST_TAB_SELECT NT_TABLE_SELECT;
SQL_RET NUMBER;
SQL_STR VARCHAR2(32000);
SQL_STR1 VARCHAR2(32000);
SQL_STR2 VARCHAR2(32000);
BEGIN
/*SELECT B.FILE_NAME_ID_KEY,B.NETWORK_ELEMENT_ID_KEY,B.CALL_START_TIME_SLOT_KEY FROM CN_SMSC B,FCT_FILE A
WHERE A.FILE_NAME_ID_KEY = B.FILE_NAME_ID_KEY AND A.EXT_FILE_INDICATOR='0'
AND TRUNC(A.CREATE_TIME_SLOT_KEY)= TRUNC(B.CALL_START_TIME_SLOT_KEY)
AND TRUNC(A.CREATE_TIME_SLOT_KEY)= TO_DATE('06-11-2006','DD-MM-YYYY')
GROUP BY B.FILE_NAME_ID_KEY,B.NETWORK_ELEMENT_ID_KEY,B.CALL_START_TIME_SLOT_KEY*/
SQL_STR:='SELECT B.'||F_NAME_ID_KEY||',B.'||NE_ID||',B.'||TIME_SLOT_KEY||' FROM '||TAB_NAME||' B,FCT_FILE A WHERE A.'||
F_NAME_ID_KEY||' = B.'||F_NAME_ID_KEY||' AND A.EXT_FILE_INDICATOR='||''''||0||''''||
     ' AND TRUNC(A.CREATE_TIME_SLOT_KEY)= TO_DATE('||''''||TIME_SLOT_KEY_ST||''''||','||'''DD-MM-YYYY'''||')'||
' AND TRUNC(A.CREATE_TIME_SLOT_KEY)= TRUNC(B.'||TIME_SLOT_KEY||')'
     ||' GROUP BY B.'||F_NAME_ID_KEY||',B.'||NE_ID||',B.'||TIME_SLOT_KEY;
     lv_loop_counter := 1;
WHILE (lv_loop_counter < LENGTH(SQL_STR ))
LOOP
DBMS_OUTPUT.PUT_LINE(SUBSTR(SQL_STR ,lv_loop_counter,255));
lv_loop_counter:= lv_loop_counter + 255;
END LOOP;
EXECUTE IMMEDIATE SQL_STR BULK COLLECT INTO NEST_TAB_SELECT;
FOR I IN NEST_TAB_SELECT.FIRST..NEST_TAB_SELECT.LAST LOOP
TEXT_FILE_NAME :=NEST_TAB_SELECT(I).SEL_NETWORK_ELEMENT_ID_KEY||'_'||TO_CHAR(TO_DATE(NEST_TAB_SELECT(I).SEL_CALL_START_TIME_SLOT_KEY,'DD-MM-YYYY HH:MI:SS AM'),'YYYYMMDDHHMISSAM')
                              ||'_'||NEST_TAB_SELECT(I).SEL_FILE_NAME_ID_KEY||'.TXT';
DBMS_OUTPUT.PUT_LINE(TEXT_FILE_NAME);
/*DBMS_OUTPUT.PUT_LINE(NEST_TAB_SELECT(I).SEL_NETWORK_ELEMENT_ID_KEY);
DBMS_OUTPUT.PUT_LINE(NEST_TAB_SELECT(I).SEL_FILE_NAME_ID_KEY);
DBMS_OUTPUT.PUT_LINE(NEST_TAB_SELECT(I).SEL_CALL_START_TIME_SLOT_KEY);*/
SQL_STR1:= 'SELECT * FROM '||TAB_NAME||' WHERE ' ||F_NAME_ID_KEY|| ' ='||''''''||NEST_TAB_SELECT(I).SEL_FILE_NAME_ID_KEY||''''''||
' AND '||NE_ID||'='||''''''||NEST_TAB_SELECT(I).SEL_NETWORK_ELEMENT_ID_KEY||''''''||
     ' AND '||TIME_SLOT_KEY||'= TO_DATE('||''''''||NEST_TAB_SELECT(I).SEL_CALL_START_TIME_SLOT_KEY||''''''||','||
     ''''''||'DD-MM-YYYY HH'||CHR(58)||'MI'||CHR(58)||'SS AM'||''''''||' )';
     -- insert into b values(SQL_STR1);
     -- commit;
lv_loop_counter := 1;
WHILE (lv_loop_counter < LENGTH(SQL_STR1 ))
LOOP
DBMS_OUTPUT.PUT_LINE(SUBSTR(SQL_STR1 ,lv_loop_counter,255));
lv_loop_counter:= lv_loop_counter + 255;
END LOOP;
/*select dump_csv( 'SELECT * FROM CN_SMSC WHERE NETWORK_ELEMENT_ID_KEY = ''10013'' AND TRUNC( CALL_START_TIME_SLOT_KEY ) = ''06-NOV-06'' AND FILE_NAME_ID_KEY = ''FCDR21-7399.FCDR2'''
,',','E:\NETWORK_ELEMENT_ID_KEY',TEXT_FILE_NAME) INTO sql_ret from dual;*/
SELECT dump_csv(SQL_STR1,',','E:\NETWORK_ELEMENT_ID_KEY',TEXT_FILE_NAME) INTO sql_ret FROM DUAL;
     END LOOP;
END TEXT_GENERATOR11;
please check it
===================
CREATE TABLE FCT_FILE
FILE_NAME_ID_KEY VARCHAR2(100 BYTE) NOT NULL,
NETWORK_ELEMENT_ID_KEY VARCHAR2(10 BYTE) NOT NULL,
CREATE_TIME_SLOT_KEY DATE NOT NULL,
EXT_FILE_INDICATOR VARCHAR2(2 BYTE)
==========================
CREATE TABLE CN_SMSC
FILE_NAME_ID_KEY VARCHAR2(100 BYTE),
NETWORK_ELEMENT_ID_KEY VARCHAR2(10 BYTE),
CALL_START_TIME_SLOT_KEY DATE,
)

Similar Messages

  • Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string co

    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ _____________________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{             // Ready the variables here for sending to PHP           DepartVars.post_code = "Depart";         // Send the data to the php file           DepartLoader.load(DepartURL);         welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function completedepart(event:Event):void{     if (event.target.data.replyMsg == "success") {             var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload(); NewWindow.focus(); void(0);");             navigateToURL(refreshPage, "_self");         } // Close completeDepart function ////////////////////////////// // Code for the View res Button var viewRes:URLRequest = new URLRequest("view_res.php"); viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void {     navigateToURL(viewRes, "_self"); } ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Code for the Edit Res profile Button var editRes:URLRequest = new URLRequest("edit_res.php"); editRES_btn.addEventListener(MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void {     navigateToURL(editRes, "_self"); } }

    this should be in the as3 forum.  but you need to return name/value pairs from your php file.

  • Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containin

    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ ____________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{             // Ready the variables here for sending to PHP           DepartVars.post_code = "Depart";         // Send the data to the php file           DepartLoader.load(DepartURL);         welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function completedepart(event:Event):void{     if (event.target.data.replyMsg == "success") {             var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload(); NewWindow.focus(); void(0);");             navigateToURL(refreshPage, "_self");         } // Close completeDepart function ////////////////////////////// // Code for the View res Button var viewRes:URLRequest = new URLRequest("view_res.php"); viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void {     navigateToURL(viewRes, "_self"); } ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Code for the Edit Res profile Button var editRes:URLRequest = new URLRequest("edit_res.php"); editRES_btn.addEventListener(MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void {     navigateToURL(editRes, "_self"); } }

    I have a similar problem
    whey I use .txt my code works, but when I change to .dat external file, it get error 1067
    my code:
    import flash.display.Sprite;
    import flash.events.*;
    import flash.net.URLLoader;
    import flash.net.URLLoaderDataFormat;
    import flash.net.URLRequest;
    var loader: URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, loading);
    loader.load(new URLRequest("rssnews.dat"));
    function loading(e: Event): void {
              news_1.text = trace(e.target.data.titulo);
              news_2.text = trace(e.target.data.texto);

  • Unexpected behavior of spreadsheet string to array function

    Hello,
    I found some weirdness in LabVIEW 2011 that I do not understand. In the attached vi, I provide a one-dimensional spreadsheet string separated by spaces. I use the spreadsheet string to array function to convert this spreadsheet string into an array of strings.
    I ran into problems when I wanted to specify a space character as the delimiter.
    The conversion works as intended, if I do not specify a delimiter (i.e., the default tab delimiter is used). But if I specify the delimiter, only the first element of the spreadsheet string is converted. I do not understand this behavior.
    Thanks for your help.
    Peter
    Solved!
    Go to Solution.
    Attachments:
    Test spreadsheet string to array.vi ‏9 KB

    You don't have spaces in your string. You have tabs and of course the default delimiter works. Right click and select '\' Codes Display and see the \t.

  • Searching strings in procedures, function and packages (OWB)

    Hi all,
    I'm working on an OMB script to look for a string in procedures, function and packages in OWB. So far, I found how to do it for functions and procedures:
    string match -nocase \*text_to_find* [OMBRETRIEVE FUNCTION 'my_function' GET PROPERTIES(IMPLEMENTATION)]
    string match -nocase \*text_to_find* [OMBRETRIEVE PROCEDURE 'my_procedure' GET PROPERTIES(IMPLEMENTATION)]
    I have tried something similar for packages but it didn't work. Does someone know how to do this search in packages? Any help will be appreciated.
    Regards,
    Mauricio

    Of course, if you are looking for a match in any source - including procedures and packages not imported into OWB, then OMB+ isn't going to be a ton of help as it won't be aware of those other packages.
    In that case, you can always find those dependencies by doing a standard select owner, name, type, text from all_source where text like '%YOUR_SEARCH_CRITERIA%' query.
    and you can embed that in your OMB+ using the Java/SQL library: How to run SQL from OMB+
    Cheers,
    Mike

  • Length of the string passed to rwcgi60 in Oracle 6i

    Hello,
    I am running the report from the web. The url will be something like
    http://localhost/cgi-bin/rwcgi60.exe?server=repserver+report=.rep+all the input parameters.
    When the length of the string passed from report= execeeds certain limit(indicated by dashes) I am getting the cgi error
    Error: The requested URL was not found, or cannot be served at this time.
    Oracle Reports Server CGI - Unable to communicate with the Reports Server.
    If I remove some of the select criteria then I could execute the report from the web.
    Any body has any soln. for this.
    Thanks in advance,
    Vanishri.

    Vanishri
    The limit is very high and you should not be hitting this problem. There are couple of fixes done in this area. Please apply the latest patch (Patch 10) and try.
    Other solution is you can have a mapped key in cgicmd.dat file and use the key alone in the URL. In the cgicmd.dat file, you have to map say
    key1: REPORT=your_report.rdf USERID=user_name/password@mydb DESFORMAT=html
    SERVER=repserver DESTYPE=cache
    Please refer to the Publishing reports or Reports services manual at http://otn.oracle.com/docs/products/reports/content.html
    Thanks
    The Reports Team

  • Check see if string passed in param matches with substring in the data str

         // method that check to see if the string passed as the param appears as a
         // substring in the data string
         public boolean lookSubstring(String _data)
              for(int i = 0; i < _data.length(); i++)
                   if(_data.equals(dataString.substring(0, _data.length())))
                        return true;     
              return false;
         }I still can't get it right... everything i type in is false...

        /** Returns true iff _data is a substring of the data string. */
    public boolean lookSubstring(String _data)
        return dataString.indexOf(_data) != -1;
    }indexOf() actually returns the index at which _data appears as a
    substring. But, since it returns -1 if _data cannot be found, we can use
    it to check.

  • Error: [msnodesql] Invalid passed to function query

    i create a schedule. 
    I try to run this code:
    var todoItemtable = tables.getTable('TodoItem');
    var item = {text:"blahblah"};
    todoItemtable .insert(item, {
    success: function() {
    console.log('Inserted event: ', item);
    or this:
    var sql = "select * from TodoItem";
    mssql.query(sql, {
    success: function(results) {
    console.log('Success: ', results);
    }, error: function(err) {
    console.log('Error: ', err);
    but always get an error: [msnodesql] Invalid passed to function query. Type should be .
    What is the problem? What am I doing wrong?

    Mal,
    I think that need to provide more information about what you are doing when you get this error. This appears to be a LV error.
    1)What version of LV are you using? What are you doing in TestStand when you get this error?
    2)Is your TestStand sequence calling a VI from which this error is generated? If so what is this VI doing?
    3)Can you isolate the source of this error to a particular VI that is using queues?
    4)How often does the error occur?
    5)The path of Queue Core.vi is \vi.lib\Platform\synch.llb\Queue Core.vi. Can you put some probes on the input of this VI to determine what inputs are causing this error? What are all of the inputs to this VI when the error occurs?
    6)Is queue being created or destroyed? Is an element being added or removed from a que
    ue?
    7)Is this your queue or a queue used by one of LV's VIs?
    Unless someone has had this exact error, then it is going to be difficult to debug without more information. Clearly, the problem is easiest to solve if it is reproducible by others.

  • Wt parameters to pass in  function module for particular kunnr fld

    wt parameters to pass in  function module f4if_int_table_value_request which is mostly preferred in reports instead of search help
    for eg i use select-options s_kunnr for kna1-kunnr & prepare i internal table it_kna1.
    den how 2 pass s_kunnr fld & it_kna1 in dat above FM for creating f4 functionality for particular s_kunnr fld on selection-screen.
    plz send me d code urgently

    Check below code....
      SELECT carrid carrname
                    FROM scarr
                    INTO CORRESPONDING FIELDS OF TABLE itab_carrid.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'CARRID'
                value_org       = 'S'
           TABLES
                value_tab       = itab_carrid
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.

  • Expected type [NUMBER] found [STRING] (["member"]) in function[operator@div

    Hi,
    I am trying to recalculate a figure based on an annual percentage. The script is
    FIX(yr2011, Plan, CC_4363,draft)
    "AC_&&&&&& Salary" ="AC_&&&&&&Salary"* ("pay increase%"/100)
    endfix
    endexclude
    I receive the error "expected type [NUMBER] found [STRING] (["AC_&&&&&&"]) in function[operator@div"
    I looked at this forum and someone suggested using the @match function. I tried
    "AC_&&&&&& Salary" ="AC_&&&&&& Salary"* (@match(Accounts," pay increase%")/100);
    This validated but the salary figure disappeared.
    The reason I am not loading at monthly (level zero) is due to a business requirement. I am having to spread the figures down the months from the total year but if the total year is wrong or missing the montly data obviously disappears too.
    Thanks,
    Nathan

    A few questions:
    1) I see an ENDEXCLUDE, but no starting EXCLUDE. How does that relate to the code?
    2) Do you really have member names with six ampersands in them? Is that even an allowed character? I guess it is but it looks odd as & is the character used to define the usage of an Essbase Substitution Variable. Okay, that was a comment, not a question, I guess.
    3) Do you have a Pay Increase% in every month? Or is it annual?
    3) Why don't you stick the salary value to be allocated into another Account, e.g., "Annual Salary" and place it in a single month. Then your code could look like:
    FIX(yr2011, Plan, CC_4363,draft, "Jan":"Dec")
    "AC_&&&&&& Salary" ="Annual Salary"->"BegBalance" * ("pay increase%"->"BegBalance" / 100)
    endfix
    I created a BegBalance member which you may not have -- chose Dec or Jan as your home for Annual Salary and Pay Increase and go from there. I also forced the calc to happen at the month level -- I am assuming you have months in your app, but maybe not. Salt to taste.
    Regards,
    Cameron Lackpour

  • Passing procedures/functions as arguments ?

    I doubt this is possible but just to make sure: can a procedure or function be passed as an argument to another (or even the same) procedure or function, like in functional programming ? This would help a lot cleaning up a convoluted if-then-else spaggeti piece of code I'm dealing with.
    Thanks,
    George

    It depends on what exactly you want to do. You can pass a function as an argument to a procedure, or another function. The called function gets the result of the parameter function as the argument. You cannot pass a procedure as an argument because a procedure cannot be resolved to a scalar value or collection.
    SQL> CREATE FUNCTION f (p_str IN VARCHAR2) RETURN VARCHAR2 AS
      2  l_ret VARCHAR2(100);
      3  BEGIN
      4     l_ret := 'Hello '||p_str;
      5     RETURN l_ret;
      6  END;
      7  /
    Function created.
    SQL> CREATE PROCEDURE p (p_str IN VARCHAR2) AS
      2  BEGIN
      3     DBMS_OUTPUT.Put_Line(p_str);
      4  END;
      5  /
    Procedure created.
    SQL> exec p(f('World!'))
    Hello World!
    PL/SQL procedure successfully completed.If you want to pass a procedure or function and have the called procedure execute that function then you will need to use dynamic sql.
    HTH
    John

  • Passing xml as string to xmlPanel function

    hello Genius,
    I am using XML2UI feature of Extending Flash. I want to pass
    XML through string in place of xml file in xmlPanel function.
    is there any way to avoid creating 20 xml files and
    distributing them as my planned extension have 20 ui's.
    thanks in advance.

    Hai Shyam,
    I have tried to do as u have mentioned but still its not taking it as a paramater.
    i mean the API say
    parse
    public void parse(InputSource input) throws IOException,
    SAXExceptionParse an XML document.
    The application can use this method to instruct the XML reader to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI).
    Is is any way to convert string to (char stream or byte stream).
    Thanks a lot
    Pooja.

  • Passing a very long string into a function / procedure

    I have a procedure that takes in a string value.
    This can be over 4000 characters long and as you are probably aware - it's not liking it.
    ORA-01704: string literal too long
    01704. 00000 - "string literal too long"
    *Cause:    The string literal is longer than 4000 characters.
    Is there a data type I can use that will handle this?
    or how else should I handle it?
    Thanks in advance.
    Ant
    Edited by: user10071099 on Jun 25, 2010 3:55 PM
    Here's the function in question
    CREATE OR REPLACE FUNCTION GET_COLUNS_AS_LIST( P_SQL CLOB, Add_Equals_Sign Number := 0)
    RETURN CLOB
    IS
    fResult CLOB;
    HNDL NUMBER;
    d NUMBER;
    colCount INTEGER;
    i INTEGER;
    rec_tab DBMS_SQL.DESC_TAB;
    cCRLF VARCHAR(2) := CHR(13) || CHR(10);
    BEGIN
    --INITIIALISE RESULT
    fResult := '';
    HNDL := DBMS_SQL.OPEN_CURSOR;
    if HNDL <> 0 THEN
    DBMS_SQL.PARSE( HNDL, P_SQL, DBMS_SQL.NATIVE);
    d := DBMS_SQL.EXECUTE( HNDL );
    DBMS_SQL.DESCRIBE_COLUMNS( HNDL, colCount, rec_tab);
    FOR i in 1..colCount
    LOOP
    IF Add_Equals_Sign > 0 AND i > 1 THEN
    fResult := ltrim( fResult || '=' || cCRLF || UPPER( rec_tab( i ).col_name ), cCRLF );
    ELSE
    fResult := ltrim( fResult || cCRLF || UPPER( rec_tab( i ).col_name ), cCRLF );
    END IF;
    END LOOP;
    IF Add_Equals_Sign > 0 THEN
    fResult := fResult ||'=';
    END IF;
    ELSE
    fResult := '!!COULD NOT OPEN CURSOR!!';
    END IF;
    RETURN fResult;
    --Tidy Up 
    DBMS_SQL.CLOSE_CURSOR(HNDL);
    END;
    Edited by: user10071099 on Jun 25, 2010 4:53 PM

    @OP The function in your original post worked fine for me. What is you DB version?
    select * from v$version where rownum < 2;
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    select length (rpad(to_clob('select * from all_objects '),8000, '-') || '-') len 
    ,GET_COLUNS_AS_LIST ( lpad(to_clob('select * from all_objects '),8000, ' ') || ' ') collst
    from dual;
           LEN
    COLLST                                                                         
          8001
    OWNER                                                                          
    OBJECT_NAME                                                                    
    SUBOBJECT_NAME                                                                 
    OBJECT_ID                                                                      
    DATA_OBJECT_ID                                                                 
    OBJECT_TYPE                                                                    
    CREATED                                                                        
    LAST_DDL_TIME                                                                  
    TIMESTAMP                                                                      
    STATUS                                                                         
    TEMPORARY                                                                      
    GENERATED                                                                      
    SECONDARY                                                                      
    1 row selected.vr,
    Sudhakar B.

  • How to pass a function with the same argument multiple times and return values in variables?

    The problem I have is I created a function which really is some kind of database.  Basically a bunch of:
    if (a.value == "this number"){
    b.value = "this expression";
    Inside the form are 2 dropdown lists that return numerical values which I want to process through that function and put the return value inside separate variables.
    var a = this.getField("OPE003.EVEN.1.MIP");
    Mip(a);
    var result1 = Mip();
    I tried to overwriting *a* to process the second field
    a = this.getField("OPE003.EVEN.2.MIP");
    Mip(a);
    var result2 = Mip();
    result1 and result2 are put in an array, joined as a string.
    Doing so, I always get the last processing twice as the final result.
    Can I use a function as a batch processing tool that way?

    You are right, I changed the code to what you said but how do I pass another value through my fonction so I can get Result1 and Result2?
    is it
    var a = this.getField("OPE003.EVEN.1.MIP");
    var b = this.getField("OPE003.EVEN.2.MIP");
    var result1 = Mip(a);
    var result2 = Mip(b);
    var c = new Array[result1, result2]

  • Select option how to pass in Function Module

    Hi  Friends
    how to pass direct select-option values in a Function Module and  later how to retrive the values from FM as well ?
    Regards
    Meeta

    Hello Meeta
    You may use a generic table type like RSELOPTION or RSDSSELOPT_T. However, this requires that you shuffle the data from twice from your specific select-options to this generic select-option and vice versa.
    A much simpler way is to import the name of the report from which you want to retrieve its select-options into the function module and within the fm just call fm RS_REFRESH_FROM_SELECTOPTIONS.
    Regards
      Uwe

Maybe you are looking for

  • I recently upgraded iTunes to 11.1.4.62 and then itunes would no longer recognize my iphone 4s and iPod

    I recently upgraded iTunes to 11.1.4.62 and then itunes would no longer recognize my iphone 4s and iPod although I can see the iphone but NOT the iPod on the computer (windows 8.1 Pro).  I checked everything , cable, services, stop and start and auto

  • Cannot unstuff any files with a .sit extension (stuffit files).

    I have had this new Imac with Leopard since the first of December. (love it, by the way) In the past week I have had people email me .sit files and instead of unstuffing, they opened in Text Edit and are a bunch of code. I just needed to download a "

  • Frozen ipod.. I NEED HELP

    Hey, i'm not sure what to do with this one... usually i'm pretty good but i've run into a little speedbump. I have a brand new 1 day old video ipod.. I used it all day today... and just when it was going to die i put it on the plug, while i was still

  • Export for Acro X1 to powerpoint

    Hi, I have an indesign CS6 file which needs to be used for powerpoint. I can save to pdf and export to powerpoint which is great. But for some reason  the document size has extended and some of the pages have rotated (very odd). Has anyone had proble

  • Tha difference of Designer 6i and 9i

    What is the difference of Designer 6i and Designer 9i. Plus, I would like to know wich one I should download and start with if I want to learn designer well.