Please help creating data model where query has & in select

Below is the actual code of the part of select having a problem.
When I had '&' instead of chr(36), a window opens up saying 'Please enter values for lexical references in sql then has *&' and empty box and check box then flex field.
So I replaced '&' with chr(36) below
After I put the code in, it is asking me the question ====>
'Do you want to create a bind parameter? : //wwwapps.ups.com/WebTracking/processInputRequest?sort_by
,'=HYPERLINK("http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status'||CHR(36)||'tracknums_displayed=1'||CHR(36)||'TypeOfInquiryNumber=T'||CHR(36)||'loc=en_US'||CHR(36)||'InquiryNumber1='||mbl.tracking_number||CHR(36)
||
'track.x=0'||CHR(36)||'track.y=0","'||mbl.tracking_number||'")' "Tracking Link (Click to Track)",

Hi,
Looks like no more problems creating data models after replacing the '&' and ':' with their chr(x) counterparts. But when they I run the report, it shows the hyperlink code below instead of the hyperlink tracking number they can just click on. Also when I try the query in toad, it works.
=HYPERLINK("http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=&track.x=0&track.y=0","")

Similar Messages

  • Problem in creating DATA Model from SQL SERVER 2008 in BI PUBLISHER

    Dear Team,
    I connect BI Publisher with SQL SERVER 2008 But On creating Report on BI,when we create data model...dataset,
    i select the tables but when i click on RESULT i am geting this error.
    error--
    [Hyperion][SQLServer JDBC Driver][SQLServer]Invalid object name 'DBNAME.DBO.TABLE'.
    please resolve this problem...
    Thanks,
    Him
    Edited by: h on Aug 22, 2011 6:31 PM

    Hi David,
    The things I said are not a fix for this problem.
    If your RCU installation worked, then you do not have to worry about modifying the createfr.sql.
    Edit:
    I've just tracked the problem. It appears that when using the query builder, BI forgets to add the " sign.
    For example:
    This query will give the hyperion error.
    select     "table"."field"
    from     "database.user"."table"
    To correct it write it like this:
    select     "table"."field"
    from     "database"."user"."table"
    Edited by: EBA on Nov 14, 2011 10:21 AM

  • Can we use session variables in BI publisher's Data Model SQL Query?

    Hi Experts,
    We need to implement Data level security in BI Publisher 11g.
    In OBIEE we do so by using session variables, so just wanted to ask if we can use the same session variables in BI Publisher as well
    ie can we include the where clause in the Data Models SQL Query like
    Where ORG_ID = @{biServer.variables['NQ_SESSION.INV_ORG']}
    Let me know your views on this.
    PS: We are implementing EBS r12 security in BI Publisher.
    Thanks

    Read this -> OBIEE 11g: Error: "[nQSError: 23006] The session variable, NQ_SESSION.LAN_INT, has no value definition." when Creating a SQL Query using the session variable NQ_SESSION.LAN_INT in BI Publisher [ID 1511676.1]
    Follow the ER - BUG:13607750 - NEED TO BE ABLE TO SET A SESSION VARIABLE IN OBIEE AND USE IT IN BI PUBLISHER
    HTH,
    SVS

  • Issue while creating Data Model in BI Publisher and logging into xmlpserver

    Hi All,
    We are facing an issue in OBIEE 11.1.1.5.
    If we are logging with Non Admin Id (other than weblogic) and select New Data Model, a blank screen is coming. Where as, if we use Admin Id, we are getting screen as usual for creating data model. There were some blogs mentioning to change Priviledges for  SOAP access, but that approach is also not working.
    Further, we are also not able to open xmlpserver with Non Admin Id.
    Any help or pointers would be great.
    Regards,

    how about pasting the content of your data template here, so that forum members can see what could be the problem.

  • I need to add a new computer and take off a old one but can't find the site or place to turn it off i can only have two computers but i got three please help let me know where to go to shut one off to put the new one on?

    i need to add a new computer and take off a old one but can't find the site or place to turn it off i can only have two computers but i got three please help let me know where to go to shut one off to put the new one on?

    Hello,
    the way is written there Activation & deactivation help >>> (see there only to understand the procedure) Common activation problems >>> "Activation limit reached for [product]. This serial number has already been activated on 2 computers." "Maximum activations exceeded."
    >>> How to deactivate or sign out >>> A single license for Adobe software lets you install the applications on two computers—for example, at home and at the office. However, you can use the software on only one computer at any given time.
    If you want to install the software on a third computer, deactivate the software on the computer on which you will no longer use the software. Then, activate the software on the new computer.
    Hans-Günter

  • Please help to re-write this query using exists or with

    Hi please help to re-write this query using exists or with, i need to write same code for 45 day , 90 days and so on but sub query condition is same for all
    SELECT SUM (DECODE (t_one_mon_c_paid_us, 0, 0, 1)) t_two_y_m_mul_ca_
    FROM (SELECT SUM (one_mon_c_paid_us) t_one_mon_c_paid_us
    FROM (
    SELECT a.individual_id individual_id,
    CASE
    WHEN NVL
    (b.ship_dt,
    TO_DATE ('05-MAY-1955')
    ) >= SYSDATE - 45
    AND a.country_cd = 'US'
    AND b.individual_id in (
    SELECT UNIQUE c.individual_id
    FROM order c
    WHERE c.prod_cd = 'A'
    AND NVL (c.last_payment_dt,
    TO_DATE ('05-MAY-1955')
    ) >= SYSDATE - 745)
    THEN 1
    ELSE 0
    END AS one_mon_c_paid_us
    FROM items b, addr a, product d
    WHERE b.prod_id = d.prod_id
    AND d.affinity_1_cd = 'ADH'
    AND b.individual_id = a.individual_id)
    GROUP BY individual_id)
    Edited by: user4522368 on Aug 23, 2010 9:11 AM

    Please try and place \ before and after you code \Could you not remove the inline column select with the following?
    SELECT a.individual_id individual_id
         ,CASE
            when b.Ship_dt is null then
              3
            WHEN b.ship_dt >= SYSDATE - 90
              3
            WHEN b.ship_dt >= SYSDATE - 45
              2
            WHEN b.ship_dt >= SYSDATE - 30
              1
          END AS one_mon_c_paid_us
    FROM  items           b
         ,addr            a
         ,product         d
         ,order           o
    WHERE b.prod_id       = d.prod_id
    AND   d.affinity_1_cd = 'ADH'
    AND   b.individual_id = a.individual_id
    AND   b.Individual_ID = o.Individual_ID
    and   o.Prod_CD       = 'A'             
    and   NVL (o.last_payment_dt,TO_DATE ('05-MAY-1955') ) >= SYSDATE - 745
    and   a.Country_CD    = 'US'

  • Create data models using interactive reporting

    Hey guys,
    I was wondering how you create data models using interactive reporting. An simple example would be great? I would really appreciate if I could get an answer.
    Also, I wanted to understand a real world situation that you guys might have faced with creating data models, etc...thanks a ton :-)
    -- Adi

    Your question is not that much clear on what you are asking for.
    But for reference please have a look at the below doc which explain the Integration with IR and webanalysis what you require.
    IR and WebAnalysis with Essbase
    Thanks,
    ~KKT~

  • Error when creating data model - Internal Server Error

    When trying to create a new Data Model in BI Publisher (11.1.1), we are getting a “Internal Server Error” message and the page to create data models wont display. We are able to login to BIP with any user, but we cant do anything else… (seems due to a null pointer exception, as shown in this message):
    +[ServletContext@605092857[app:bipublisher module:xmlpserver path:/xmlpserver spec-version:2.5 version:11.1.1]] Servlet failed with Exception+
    java.lang.NullPointerException
    We’ve examined bipublisher.log and we get several warnings:
    Component: AdminServer
    Module: oracle.xdo
    Message: SawUtil.setUserHome - Unable to lookup user home: weblogic
    Component: AdminServer
    Module: oracle.xdo
    Message: java.rmi.RemoteException:  access denied for user to path /users/weblogic.; nested exception
    Then, we get this errors in sawlog0.log:
    Component: OBIPS
    Module: saw.soap.catalogservice
    +Message:  Invalid path () --+
    File:webcatalogsoaphandler.cpp
    Line:877
    Location:
    saw.soap.catalogservice
    saw.SOAP
    saw.httpserver.request.soaprequest
    saw.rpc.server.responder
    saw.rpc.server
    saw.rpc.server.handleConnection
    saw.rpc.server.dispatch
    saw.threadpool
    saw.threads
    AuthProps: AuthSchema=Impersonate-soap|IMPERSONATE=weblogic|NQ_SESSION.AUTHINITBLOCKSONLY=******|PWD=******|UID=BISystemUser|User=weblogic
    ecid: e7cc62fc411b9afe:30699382:1389a0e0d36:-8000-000000000000257b,0:4
    ThreadID: 4180
    This same error repeats for files webcatalogsoaphandler.cpp and localwebcatalog.cpp.
    Access to SOAP is explicity granted to BISystemUser (via Manage Privileges ) and we haven’t changed any security policies…
    Any ideas why this is happening and how to solve it?
    Thanks in advance.
    Regards
    Edited by: user8021127 on 19-jul-2012 1:12

    Did you find a solution to this?

  • Please help, i used to have various colors to select from when selecting FILL in Keynote such as red, now I only have a few pastel colors. I cannot seem to fix this problem to get the original colors back. Can someone please advise what I need to do.

    Please help, i used to have various colors to select from when selecting FILL in Keynote such as red, now I only have a few pastel colors. I cannot seem to fix this problem to get the original colors back. Can someone please advise what I need to do.

    i have on my ipad2 and re-download it - but I can't afford to loose the presentation that I currently have ....??
    Are you using Keynote on an iPad?
    If so you posted in the wrong forum, this is the Keynote Mac discussion and it is a different application. I dont know how the iPad works at all, so I cant help you, post in the Keynote iOS discussion.
    If you are using a Mac, the colours palette is accesed by clicking on the colour well (arrowed) and then selecting a colour chip or changing the color in the colour wheel.

  • Please help me with the proper query for the below problem

    Hi,
    I have a table RATE which have two columns RT_DATE (date) and RATES(number).
    This table have following data.
    RT_DATE
    RATES
    1-JAN-2007
    7
    2-MAR-2008
    7.25
    5-JAN-2009
    8
    8-NOV-2009
    8.5
    9-JUN-2010
    9
    I wanted to get the rate of interest on 8-DEC-2009.
    Output will be 8.5 as this given date is in between 8-NOV-2009 and 9-JUN-2010. Could you please help me with proper query?
    Regards,
    Aparna S

    Hi,
    That sounds like a job for the LAST function:
    SELECT  MIN (rates) KEEP (DENSE_RANK LAST ORDER BY rt_date) AS eff_rate
    FROM    rate
    WHERE   rt_date < 1 + DATE '2009-12-08'
    MIN above means that, in case of a tie (that is, 2 or more rows with the exact same latest rt_date) the lowest rates from that latest rt_date will be returned.  In rt_date is unique, then it doesn't matter if you use MIN or MAX, but syntax demands that you use some aggregate function there.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for your sample data, and also post the results you want from that data.
    Point out where the statement above is getting the wrong results, and explain, using specific examples, how you get the right results from the given data in those places.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002#9362002

  • Data Model - SQL Query

    Hi everyone,
    Hopefully someone can point me in the right direction.
    I have the following SQL in the Data Model type SQL Query.
    select * from ap_invoices
    This select statement is not return any rows from the view but does so from sqlplus.
    I am using BIP 10.1.3.4.1 and have setup the EBS Security model.
    What am i doing wrong, is there some setup i am missing?
    Do i need to use a different security model for BIP?
    please help
    thankyou.

    Hi
    AP_INVOICES is a view as you know, its based on the ORG_ID being set when you select from it. Im thinking that when you just use select * from AP_INVOICES in BIP. Its unaware of your org id and its not setting it for you when you run a query, so its not returning data. Two options:
    1. Use a data template and in the pre-fetch trigger set the org context. Just like you might have in an Oracle Report. Data templates are very powerful and provide everything OReports does in EBS incl triggers and flex extensions
    2. Use the AP_INVOICES_ALL table and set the org id in the query where clause.
    Both approaches need for you to know the org id you want to set. The security integration you have will not have this ie it does not pass it when the user logs on. I guess as you have a report folder for every responsibility you could hard code the org id into the reports in a given folder. Or you could add it as a parameter to the report for the user to fill out.
    The level integration just does not quite go far enough at the moment to handle the org and therefore the org views.
    hope this is clear
    Regards
    tim

  • Need help with Data Model for Private Messaging

    Sad to say, but it looks like I just really screwed up the design of my Private Messaging (PM) module...  *sigh*
    What looked good on paper doesn't seem to be practical in application.
    I am hoping some of you Oracle gurus can help me come up with a better design!!
    Here is my current design...
    member -||-----0<- private_msg_recipient ->0------||- private_msg
    MEMBER table
    - id
    - email
    - username
    - first_name
    PRIVATE_MSG_RECIPIENT table
    - id
    - member_id_to
    - message_id
    - flag
    - created_on
    - updated_on
    - read_on
    - deleted_on
    - purged_on
    PRIVATE_MSG table
    - id
    - member_id_from
    - subject
    - body
    - flag
    - sent_on
    - updated_on
    - sender_deleted_on
    - sender_purged_on
    ***Short explanation of how the application currently works...
    - Sender creates a PM and sends it to a Recipient.
    - The PM appears in the Sender's "Sent" folder in my website
    - The PM also appears in the Recipient's "Incoming" folder.
    - If the Recipient deletes the PM, I set "deleted_on" and my code moves the PM from Recipient's "Inbox" to the "Trash" folder.  (Record doesn't actually move!)
    - If the Recipient "permanently deletes" the PM from his/her "Trash", I set "purged_on" and my code removes the PM from the Recipient's Message Center.  (Record still in database!)
    - If the Sender deletes the PM, I set "sender_deleted_on" and my code moves the PM from the Sender's "Sent" folder to the "Trash" folder.  (Record doesn't actually move!)
    - If the Recipient "permanently deletes" the PM from his/her "Trash", I set "sender_purged_on" and my code removes the PM from the Sender's Message Center.  (Record still in database!)
    Here are my problems...
    1.) I can't store PM's forever.
    2.) Because of my design, the Sender really owns the PM, and if I add code to REMOVE the PM from the database once it has a "sender_purged_on" value, then that would in essence remove the PM from the Recipient's Inbox as well!!
    In order to remove a PM from the database, I would have to make sure that *both* the Recipient has "purged_on" value and the Sender has a "sender_purged_on" value.  (Lot's of Application Logic for something which should be simple?!)
    I am wondering if I need to change my Data Model to something that allows my autonomy when it comes to the Sender and/or the Recipient deleting the PM for good...
    One the other hand, I believe I did a good job or normalizing the data.  And my current Data Model is the most efficient when it comes to saving storage space and not having dups.
    Maybe I do indeed just need need to write application logic - or a cron job - which checks to make sure that *both* the Sender an Recipient have deleted the PM before it actually flushes it out of my database to free up space?!
    Of course, if one party sits on their PM's forever, then I can never clear things out of my database to free up space...
    What should I do??
    Some expert advice would be welcome!!
    Sincerely,
    Debbie

    rp0428,
    I think I am starting to see my evil ways and where I went wrong... 
    > Unfortunately his design is just as denormalized as yours
    I see that now.  My bad!!
    > the last two columns have NOTHING to do with the message itself so do NOT belong in a normalized table.
    > And his design:
    >
    > Same comment - those last two columns also have NOTHING to do with the message itself.
    Right.
    > The message table should just have columns directly related to the message. It is a list of unique messages: no more, no less.
    Right.
    > Mark gave you hints to the proper normalized design using an INTERSECT table.
    > that table might list: sender, recipient, sender_delete_flag, recipient_delete_flag.
    > As mark suggested you could also have one or two DATEs related to when the delete flags were set. I would just make the columns DATE fields.
    >
    > Once both date columns have a value you can delete the message (or delete all messages older than 30+ days).
    >
    > When both flags are set you can delete the message itself that references the sender and the message sent.
    Okay, how does this revised design look...
    MEMBER --||-----0<-- PM_DISTRIBUTION -->0-------||-- PRIVATE_MSG
    MEMBER table
    - id
    - email
    - username
    - first_name
    and so on...
    PM_DISTRIBUTION table (Maybe you can think of a better name??)
    - id
    - private_msg_id
    - sender_id
    - recipient_id
    - sender_flag
    - sender_deleted_on
    - sender_purged_on
    - recipient_flag
    - recipient_read_on
    - recipient_deleted_on
    - recipient_purged_on
    PRIVATE_MSG
    - id
    - subject
    - body
    - sent_on
    Is that what you were describing to me?
    Quickly reflecting on this new design...
    1.) It should now be in 3rd Normal Form, right?
    2.) It should allow the Sender and Recipient to freely and independently "delete" or "purge" a PM with no impact on the other party, right?
    Here are a few Potential Issues that I see, though...
    a.) What is to stop there from being TWO SENDERS of a PM?
    In retrospect, that is why I originally stuck "member_id_from" in the PRIVATE_MSG table!!  The logic being, that a PM only ever has *one* Sender.
    I guess I would have to add either Application Logic, or Database Logic, or both to ensure that a given PM never has more than one Sender, right?
    b.) If the design above is what you were hinting at, and if it is thus "correct", then is there any conflict with my Business Rule: "Any given User shall only be allowed 100 Messages between his/her Incoming, Sent and Trash folders."
    Because the Sender is no longer "tightly bound" to the PRIVATE_MSG, in my scenario above...
    Debbie could send 100 PM's, hit her quota, then turn around and delete and purge all 100 Sent PM's and that should in no way impact the 100 PM's sitting in other Users' Inboxes, right??
    I think this works like I want...
    Sincerely,
    Debbie

  • Please Help PI Data Dependent Integration Builder Authorizations NOT Workng

    Dear Friends / Experts,
    I had spend many days and explored all Weblog  and links on this website and implemented all the steps required to acheive Data Dependent Integration Builder Security and I am not successful so far. I am just giving up now - Please Help Me ---
    As I said, I already read all the important Forum Links and SAP Web links and Followed Each and Every Step - service.sap.com/instguidesNW04 ® Installation ® SAP XI
    Security Requirement - Data Dependent/Object Level Authorizations in XI / PI
    In distributed teams or in a shared PI environment it might be necessary to limit authorization for a developer or a group of developers to only one Software Component or objects within a Software Component or to specific Configuration Objects.
    Our Environment - PI 7.0 SP 16
    Created a new role in the Integration Builder Design
    u2013Add Object Types of any Software Component and Namespace
    - Enable usage of Integration Builder roles in Exchange Profile
    Integration Builder u2013Integration Builder RepositoryParameter com.sap.aii.util.server.auth.activation to true
    Assign users to the newly created Integration Builder roles
    u2013Create dummy roles in Web AS ABAP, these roles are then available as groups in Web AS Java
    u2013Assign users to these roles
    u2013Assign the Integration Builder roles to the above groups in Web AS Java
    u2013Assign unrestricted roles to Super Users
    Please help - How to validate whether Data Dependent Authorizations are Activated?
    I am working with XI Developers and Basis Team and we did updated all the Required Exchange profile parameters.
    Per this Document - User Authorizations in Integration Builder Tools - Do we need to update the server.lockauth.activation in Exchange Profile. When We updated, It removed Edit Access from all XI Developers in PI
    In both the Integration Repository and the Integration Directory, you can define more detailed authorizations that restrict access to design and configuration objects.
    In both tools, you define such authorizations by choosing Tools ® User Roles from the menu bar. The authorization for this menu option is provided by role SAP_XI_ADMINISTRATOR_J2EE. Of course, this role should only be granted to a very restricted number of administrators. To activate these more detailed authorizations, you must set exchange profile parameter com.sap.aii.ib.server.lockauth.activation to true.
    The access authorizations themselves can be defined at the object-type level only (possibly restricted by a selection path), where you can specify each access action either individually as Create, Modify, or Delete for each object type, or as an overall access granting all three access actions.
    http://help.sap.com/saphelp_nw04/helpdata/en/f7/c2953fc405330ee10000000a114084/frameset.htm
    I was able to control display and maintain access from ABAP Roles, but completely failed to implement Integration Builder Security?
    Are there any ways to check Whether Data Dependent authorization or J2EE Authorizations are activated?
    Thanks a lot
    Satish

    Hello,
    so to give you status of our issue.
    We were able to export missing business component .
    But we also exported some interfaces after that and we had some return code 8, due  to objects still present in change list on quality system (seems after previous failed transports , the change list was not cleared completley...).
    So now we have checked that no objects is present in the change list of quality system and we plan to export again our devs on quality system.
    Hope after that no more return code 8 during imports and all devs transported correctly on quality system.
    Also recommending to read that, which is pretty good.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7078566c-72e0-2e10-2b8a-e10fcf8e1a3d?overridelayout=t…
    Thanks all,
    S.N

  • Error While Creating Date type condition query

    Hi All,
    I am getting following error while creating a multiple condition query.
    ERROR:java.lang.IllegalArgumentException: Unexpected field type for D: java.lang.String
    I am pasting the scrap of the code for review below.
    pls note after removing the condition cond6; it works fine, and cond6 is for date type field.
    for(int j=1;j<7;j++){                          
    fd[j] =trd.getFieldDescriptor(arrayHeaderFieldNames[j]);
    BasisFieldType bft1 =  fd[j].getFieldType();
    if (bft1 == BasisFieldType.C) {
      filterOperator[j] = RelationalOperatorType.CONTAINS;       }
    else{
      filterOperator[j] = RelationalOperatorType.EQUALS;
    order[j] =queryFactory.createSortOrder(fd[j],true);
    cond1 =queryFactory.createCondition(fd[1], filterOperator[1], values[0]);
    cond2 =queryFactory.createCondition(fd[2], filterOperator[2], values[1]);
    cond3 =queryFactory.createCondition(fd[3], filterOperator[3], values[2]);
    cond4 =queryFactory.createCondition(fd[4], filterOperator[4], values[3]);
    cond5 =queryFactory.createCondition(fd[5], filterOperator[5], values[4]);
    cond6 =queryFactory.createCondition(fd[6], filterOperator[6], values[5]);
    Condition cond = queryFactory.createCondition(new Condition[]{cond1,cond2,cond3,cond4,cond5,cond6},LogicalOperatorType.AND);
    Please Help!
    Thanks n regards,
    Kapoorchand.

    Hi,
    well that problem is a long time back -. I only have in mind that the date I had to transfer to the quesry was in a "strange" format. Have a lock into the documentation for the date field - your date field is not recognised as a date field from the quesry engine and so this fails - but unfortunately I have no idea at the moment how I fixed it last time - how I converted my date field......
    Sorry, thast I can not give you the real point - but I will have a lock into the old code - hopefully I find it soon.
    Regards,
    Oliver

  • Please help on Date format

    Please go through the following...
    look at my parameters here:
    1 select rtrim(name)||', '||rtrim(value) from v$parameter
    2* where name like 'nls%'
    SQL> /
    RTRIM(NAME)||','||RTRIM(VALUE)
    nls_language, AMERICAN
    nls_territory, AMERICA
    nls_sort,
    nls_date_language,
    nls_date_format,
    nls_currency,
    nls_numeric_characters,
    nls_iso_currency,
    nls_calendar,
    9 rows selected.
    The problem is i am trying to query data as on 15-dec-05 but the result showing of 14th and 15th.. please help me
    1 select
    2 CR_DATE
    3 from audit_payhd
    4 where cr_date = '15-DEC-05'
    5* and nvouch_no = 'JV50655' or ovouch_no = 'JV50655'
    SQL> /
    CR_DATE
    14-DEC-05
    14-DEC-05
    15-DEC-05
    1 select
    2 CR_DATE
    3 from audit_payhd
    4 where TO_char(cr_date,'DD-MON-YY') = TO_CHAR(TO_DATE('15-DEC-05'),'DD-MON-YY')
    5* and nvouch_no = 'JV50655' or ovouch_no = 'JV50655'
    SQL> /
    CR_DATE
    14-DEC-05
    14-DEC-05
    15-DEC-05
    1 select
    2 CR_DATE
    3 from audit_payhd
    4 where TO_char(TRUNC(cr_date),'DD-MON-YY') = TO_CHAR(TO_DATE('15-DEC-05'),'DD-MON-YY')
    5* and nvouch_no = 'JV50655' or ovouch_no = 'JV50655'
    SQL> /
    CR_DATE
    14-DEC-05
    14-DEC-05
    15-DEC-05
    1 select
    2 CR_DATE
    3 from audit_payhd
    4 where TO_DATE(cr_date) = TO_DATE('15-DEC-05','DD-MON-YY')
    5* and nvouch_no = 'JV50655' or ovouch_no = 'JV50655'
    SQL> /
    CR_DATE
    14-DEC-05
    14-DEC-05
    15-DEC-05

    When I need a condition like
    AND    (nvouch_no = 'JV50655' OR ovouch_no = 'JV50655')I sometimes like to write it as
    AND    'JV50655' IN (nvouch_no, ovouch_no)or even I suppose
    AND    'JV50655' = ANY (nvouch_no, ovouch_no)It's the same thing but it saves you repeating the literal, and it avoids the AND/OR bracketing issue.
    SQL> SELECT empno, ename FROM emp WHERE 'KING' = ANY(ename, job)
    SQL> @xplan
    | Id  | Operation            |  Name       | Rows  | Bytes | Cost  |
    |   0 | SELECT STATEMENT     |             |     3 |    45 |     2 |
    |*  1 |  TABLE ACCESS FULL   | EMP         |     3 |    45 |     2 |
    Predicate Information (identified by operation id):
       1 - filter("EMP"."ENAME"='KING' OR "EMP"."JOB"='KING')

Maybe you are looking for