Two or More parameters in the SQL Source Window

Hi,
I have a Crystal Reports which uses an SQL Query as the source. I have a Report Date Range in the Crystal Reports but I want to improve the performance by embedding the parameter in the SQL Command. One parameter in the SQL Command is fine but more than that, I'm getting the following error:
Failed to retrieve data from the database.
Details: ORA-00911 : invalid character
Database Vendor Code: 911
Is there a configuration that I should do before adding two or more parameters?
Thanks.

Hi,
The expression is something like this:
... where CLOSED_DATE >= {?Start Date} and CLOSED_DATE <= {?End Date}
I also tried to use the BETWEEN IN function but got the same error. The CLOSED_DATE, Start Date, and End Date are Date Time.
Thanks.

Similar Messages

  • Adding more statements to the sql commands window

    Hi, I'm using oracle database express edition10g and I just started using oracle.
    And I'm having a problem adding more then one statement inside the sql commands gui window.
    I write:
    CREATE TABLE "testTable" (
         "field1" VARCHAR2(2),
         "field2" NUMBER(2,0),
         "field3" NUMBER(2,0),
         CONSTRAINT "Test_PK" PRIMARY KEY("field1")
    Oracle reports: table created
    I write
    DROP TABLE testTable;
    CREATE TABLE "testTable" (
         "field1" VARCHAR2(2),
         "field2" NUMBER(2,0),
         "field3" NUMBER(2,0),
         CONSTRAINT "Test_PK" PRIMARY KEY("field1")
    Oracle reports: ORA-00911: invalid character
    I remove the ; char
    ORA-00933: SQL command not properly ended
    I look in the help files and it sais that ; / and nothing is allowed to end a operation.
    I gues ; is a valid char so it's reporting something else?
    I tried pasting my code inside wordpad and even retyping it. Mayby I have a hidden char? =>same error.
    When I run drop and create seperatly it works.
    When I run both sql statements inside sql+ it works
    What m I doing wrong?

    To run multiple SQL in one shot, you need to save them as SQL batch file,
    Save your statements as recreate.sql
    DROP TABLE testTable;
    CREATE TABLE "testTable" (
    "field1" VARCHAR2(2),
    "field2" NUMBER(2,0),
    "field3" NUMBER(2,0),
    CONSTRAINT "Test_PK" PRIMARY KEY("field1")
    );Then call it from SQLPlus,
    @recreate.sql

  • ERROR: MyService.jws:715:There are two or more operations with the same schema-element 'ns0:MyNameSpace' on the input message in a web service file or callback interface.

    I have two web service operations that have the same complex type as their input
    parameter. I want to map this type to an existing schema. I can successfully
    do this with the first operation using XQuery but when I attempt to do this with
    the second operation I get the following error:
    ERROR: MyService.jws:715:There are two or more operations with the same schema-element
    'ns0:MyNamespace' on the input message in a web service file or callback interface.
    ERROR:      SUGGESTION: Use different schema-element values for each of those operations.
    How can I use different schema-element values? The input parameters are to be
    mapped to the same schema and same element since they are the same for both operations....

    I am having the same problem. How did you resolve this..?? could you please tell me the solution??
    Thanks
    Shari

  • Can we assign two repeating frames to have the same source(group)?

    hi all,
    can we assign two repeating frames to have the same source(group)?..pls reply soon... bye..

    You can assign the same source group to two repeating frames.
    For more information on repeating frames, refer to the Oracle Reports Building Reports manual available on OTN: http://www.oracle.com/technology/documentation/devsuite.html

  • Is there a way to work with two or more app at the same time on iPhone or iPad

    Is there a way to work with two or more app at the same time on iPhone or iPad?

    What i am attempting to achieve is to work with at least two app at the same time. For example: select any picture from my albums to attach them in an email. Another example is get data from an app to use it with the calc app. And there are more exaples for it. And for sure I need support for an iPad air. I mencioned the other tablet just to try to be a bit clearer.

  • How to avoid that two or more people altering the same Sales Order

    I'm looking for a way to avoid that two or more people altering the same Sales Order at the same time.
    If someone has entered a Sales Order in the system and something needs to be adjust it can be done by two or more people at the same time. The problem is that when someone is saving these changes, the changes of another person, who is still working on the same order, get lost.
    So what we need is an alert that someone is already using this order and that no other person can make any changes at that time. So the order needs to be blocked for altering for any other person at that time.
    To avoid this I think you have to do something with the Stored Procedure. Or has someone a more simple and better solution. So far I didn't find a standard option in Business One neither a solution in this forum.
    Best regards,
    Tim

    Tim,
    There is nothing in the application settings in Business One that could be used to prevent this.  You may post this to the SDK forum as well and perhaps there is a way to achieve this through SDK.

  • How to avoid that two or more people alter the same Sales Order same time

    I'm looking for a way to avoid that two or more people altering the same Sales Order at the same time.
    If someone has entered a Sales Order in the system and something needs to be adjust it can be done by two or more people at the same time. The problem is that when someone is saving these changes, the changes of another person, who is still working on the same order, get lost.
    So what we need is an alert that someone is already using this order and that no other person can make any changes at that time. So the order needs to be blocked for altering for any other person at that time.
    To avoid this I think you have to do something with the Stored Procedure. Or has someone a more simple and better solution.
    I've already put this thread in the Business One forum and someone suggested to put it in the Business One SDK forum, as there isn't a solution in Business One itself.
    So if someone can give me a direction for a solution I would be very pleased.
    Best regards,
    Tim

    Hi Tim,
    The only thing that comes close to what you want in standard SBO is Data Ownership. However, this can't stop someone editing a document that is already being edited.
    You can't use stored procedures to track which document is open because the SBO_SP_TransactionNotification proc (which is the only one that you are able to customise) is triggered when a document is updated or added (or cancelled or closed) and not when the document is actually being edited in the user-interface.
    You could do this by writing an addon that uses the UI API to trap events in the sales order form. In theory, a sales order is being edited if the sales order form is in Update mode (ie in order for the form to be in Update mode, the user must have selected an existing document and changed the value of at least one field). You can trap the event of the user changing a value and then log the user and document in a table. When other users try to edit the same document, you could check the table and then prevent them changing values. When the first user clicks on the update button (or cancels the update or closes the form etc etc) you can remove the lock on the document. However, I have doubts as to how robust it would be. The problem with this kind of locking solution is that you sometimes get 'stranded' locks (eg user was editing a document when their workstation crashed) and the solution can end up being more troublesome than it is worth.
    Kind Regards,
    Owen

  • Two or more users editing the same script file in cq5, is it possible?

    In cq5 is possible two or more users editing the same jsp file? There is a lock system preventing simultaneous editing of the same file?
    Thanks,
    Gabriel

    you really should use eclipse and maven to work with multiple developers. something like [1] will be helpful
    [1] http://www.cqblueprints.com/xwiki/bin/view/Blue+Prints/The+CQ+Project+Maven+Archetype

  • TS1424 i cannot play my videos or shows on itunes any more. i get the message saying "windows can check online for a solution to the problem" " i tunes has stopped working"

    i cannot play my videos or shows on itunes any more. i get the message saying "windows can check online for a solution to the problem" " i tunes has stopped working"

    Hi marymike,
    The crash signature is simalr to that mentioned in the thread: https://forums.adobe.com/thread/644139
    Please try the suggested steps mentioned and check.
    Regards,
    Rave

  • Where's the SQL*Plus Windows GUI?

    Is the SQL*Plus Windows GUI included in XE?

    Thanks, SQL Developer is perfect. It's strange that SQL Developer isn't bundled with Express Edition. SQL*Plus reminds me of Yazoo, big hair and the 1980's.
    Interestingly SQL Developer seems to be very similar to DBVisualizer. Do you know if that's an accident or did Oracle white label DBVisualizer perhaps?

  • FEBA - How to post two or more transactions at the same time?

    Hi,
        one of our banks sends the statemets with many lines that belongs to the same transaction. We have to post partially one line, and afterwards the other line. Any of you know how to post two lines at the same time from the bank statement?
    Thank you in advance,
    Miguel

    Hi,
    I'm sorry for replying so late.
    The solution I reached was to change the a few things in the standard.
    Now I have a new "context menu item". I select two or more transactions and I right-click the mouse. I select that "context menu item" and the next part of the code adds the total amount of the transactions to look for the correct post for the first transaction. Once posted automatically, the next transaction is posted automatically by the system.
    I hope you understand my English. I've problem with technical FI terms.
    Here you are the code:
    First I added a new contextual menu item:
    CL_FEBAN_ALV_GRID=============CCIMP
    call method e_object->add_function
        EXPORTING
            fcode = 'BS_POST_ITEMS'
            text = text-002.
    *{ INSERT DHTK904078 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        call method e_object->add_function
            EXPORTING
                fcode = 'ZBS_POST_ITEMS'
                text = text-Z02.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        call method e_object->add_function
            EXPORTING
                fcode = 'BS_KILL_ADVICE'
                text = text-004.
    CL_FEBAN_ALV_GRID=============CCIMP
    when 'BS_POST_ITEMS'.
        call method cl_feban_propagator=>raise_event
            EXPORTING
                i_event = 'POST_ITEMS'
                i_ref_to_item = l_ref_to_item.
    *{ INSERT DHTK904078 2
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        when 'ZBS_POST_ITEMS'.
            call method cl_feban_propagator=>raise_event
                EXPORTING
                    i_event = 'ZPOST_ITEMS'
                    i_ref_to_item = l_ref_to_item.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        when 'BS_LOCK_ITEMS'.
            call method cl_feban_propagator=>raise_event
                EXPORTING
                    i_event = 'LOCK_ITEMS'
                    i_ref_to_item = l_ref_to_item.
    CL_FEBAN_PROPAGATOR===========CM001
        when 'POST_ITEMS'.
            raise event post_items
                exporting i_ref_to_item = i_ref_to_item.
    *{ INSERT DHTK904078 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        when 'ZPOST_ITEMS'.
            data: zvalor(1) value '' .
                export zvalor from 'X' to memory ID 'ZFEBA01'.
                raise event post_items
                    exporting i_ref_to_item = i_ref_to_item.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        when 'LOCK_ITEMS'.
            raise event lock_items
                exporting i_ref_to_item = i_ref_to_item.
    Now, I proceed to calculate the total amount of the selected transactions to look for the correct one to post.
    LNEW_FEBAF01
    *     user parameter
            l_feban_position type c.
            field-symbols: <items> type item_tab_type.
    *{ INSERT DHTK904077 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        data: zvalor(1) value '',
            zkwbtr type kwbtr,
            kwb type kwbtr.
        import zvalor to zvalor from memory ID 'ZFEBA01'.
        if ( zvalor is not initial ).
            if not i_ref_to_item is initial.
                assign i_ref_to_item->* to <items>.
                loop at <items> into h_item.
                    select single kwbtr
                        into kwb
                        from febep
                        where kukey = h_item-kukey and
                            esnum = h_item-esnum.
                            zkwbtr = zkwbtr + kwb.
                endloop.
            endif.
            export zkwbtr from zkwbtr to memory ID 'ZKWBTR'.
        endif.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
        refresh g_picked_items.
        if not i_ref_to_item is initial.
            assign i_ref_to_item->* to <items>.
            loop at <items> into h_item.
                move-corresponding h_item to h_picked_items.
                append h_picked_items to g_picked_items.
            endloop.
        endif.
        submit rfebbu00 and return
            user sy-uname
            with anwnd = r_doc->*-anwnd
            with s_kukey in s_kukey
            with s_esnum in s_esnum
            with buber = g_posting_area
            with mregel = '1'
            with function = 'C'
            with mode = g_mode
            with p_bupro = g_bupro.
    *{ INSERT DHTK904077 2
    *--> Miguel Estu00E9vez - 17/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        if ( zkwbtr is not initial ).
            select single kwbtr
                into kwb
                from febep
                where kukey = h_kukey-low and
                    esnum = h_esnum-low.
                    zkwbtr = zkwbtr - kwb.
            export zkwbtr from zkwbtr to memory ID 'ZKWBTR'.
        endif.
    *<-- Miguel Estu00E9vez - 17/06/2008
    *} INSERT
        refresh s_kukey.
        refresh s_esnum.
        clear h_kukey.
        clear h_esnum.
    endloop. "loop over all picked items
    call function 'CUSTOMIZED_MESSAGE'
        EXPORTING
            i_arbgb = 'NEW_FEBA'
            i_dtype = '-'
            i_msgnr = '110'.
    RFEBBU00
    * original transaction currency provided and posting area = 2.
            ftclear-selvon = febep-fwbtr. "INSERT - mpEURO
        ENDIF. "INSERT - mpEURO
        CONDENSE ftclear-selvon NO-GAPS.
    *{ INSERT DHTK903977 1
    *--> Miguel Estu00E9vez - 16/06/2008
    * RIPI 24/04/2008 - Conciliaciones
    * Permitir conciliar mu00E1s de un apunte a la vez
        data: zkwbtr type kwbtr.
        import zkwbtr to zkwbtr from memory ID 'ZKWBTR'.
        if ( zkwbtr is not initial ).
            ftclear-selvon = zkwbtr.
            clear zkwbtr.
        endif.
    *<-- Miguel Estu00E9vez - 16/06/2008
    *} INSERT
    APPEND ftclear.
    ** Begin of comment C5053248
    * perform druck_buzei_ftclear using ftclear-agkon.

  • Hi, iTunes 11.1 don't tell me the duration of two or more tracks from the same album, which iTunes 10. did. How come? It is possible that the new version lacks such a possibility? Thanks

    Hi, thanks to whoever will be able to respond - which the Apple assistance on line in Italy could not do, after minutes of conversation!
    The point is that I cannot see anymore the total duration of two or more audio tracks selected from the same CD, but only the duration of the whole CD.
    With the previous version of iTunes this was very easy, as I simply clicked on the tracks the interested me and I suddenly had the total time.
    It makes no sense that Apple provides a new version which lacks one of the endless options of the program, therefore I hope it's only my faul in not being able to understand what to do. Otherwise, please tell me how can I downgrade and go back to iTunes 10....
    Paul Meadow

    Press CTRL+/
    tt2

  • Reference Book: Can I write a book in ID in which ther are two or more commentaries on the body text?

    What I want to do, is to write a book with two or more commentaries.
    I guess I need, either:
    1) 2 or more sets of footnotes, so that the commentaries can be properly accessed from the main body text, or
    2) a main "body text-box" with two other text boxes per page, and then some sort of gimmick to "tell" ID which comment is "attached" to which part of the main text, Can this be done? with scripts?
    Thank you very much

    Is there some other reason why you're breaking up T1, or are you thinking that it will help performance?
    There are very few reasons why one would ever want to take a table "T1" and break it up like that -- partitioning is by far a better, more correct solution.

  • Passing parameters to the SQL Report from a text box in jsp

    Hi All,
    I want to dynamically generate the SQL Server Reporting Services by passing the query parameter from the url like this :
    "http://localhost/Reports/Pages/Report.aspx?ItemPath=%2fDashboardReports%2fHorse_Profile&rs:Command=Render&rs:HorseID=117415"
    Where horseid id my parameter which is needed by report to generate the required data.
    This query paramter value is picked from the text box on my jsp page.
    But my problem is when i go to this url it says the message
    "The 'HorseID' parameter is missing a value ".
    I have done a lot of search on this topic. Everybody says that we can pass the values from the url like i am using. But still its not working.
    Any body has any idea please give me some idea.
    Regards.

    If you receive a picture via email or text message in ios 7 and when you press the action icon to save the picture and you do not get the option to save to your camera roll. Press and hold on the the image and you will get an overlay pop up to save the image. I have no idea why some attachments don't have option in action menu to save in the camera roll but by experimentation and earned frustration I found the above to work in certain situations.
    Be well and have fun and feel rewarded in your frustrations. For without challenges, life would be an utter bore.

  • Probelm with the  sql editor window

    hi
    i ahve installed sql developer 1.5.1
    when i run the sql command the result pane display has the overlapped columns.
    at times the result rows are shown twice.
    there is some issue with the editor used in the sql editor window

    You should upgrade to 1.5.3 if you can.
    These type of display issues are often a result of problems with java and the display adapter.
    What version of java are you using?
    What operating system and version are you using?

Maybe you are looking for

  • Photosmart Premium all-in-one series C309a

    got a new router and computer.  downloaded drivers tried to install wireless connection and it failed saying   "The wireless radio is not functioning."  What does that mean and how do i fix it? Thanks Liz

  • Urgent : output in excel from reports6i

    I am running reports 6i on the web and we want the output in excel. we have applied the patch 11 so that we can output in excel. what r the things to be changed in reports and elsewhere so that i can get the report output in excel I have changed the

  • JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..

    JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client.. I am getting below error when i m trying to access oracle db using oracle 11g client. It works with earlier oracle client versions. how do i resolve this. is there any issue w

  • Photos messed up in my catalog now that I'm using Trial of LR5

    I recently started a trial of LR5.  I chose to update my LR4 catalog to be used in LR5, but first I copied the whole Lightroom folder for back-up.  So several of my photos in the updated catalog are messed up and say their's an error accessing them. 

  • How do I get the fan to stop operating?

    The fan on my macbook pro is constantly operating. how can i get it to turn off.