Not getting out put using LIKE operatior

Hi,
i've face a problem. i'm not getting output from the following SQL statement by using LIKE operator.
SELECT UPPER (dest)
,dest_code
,rate
,osname
FROM lcr
WHERE :from_date >= effectivedate
AND :TO_DATE <= tilldate
AND UPPER (osname) = NVL (UPPER (:os_name), UPPER (osname))
AND UPPER (dest) LIKE
|| '%'
|| UPPER (:dest) --:dest=MEXICO
|| '%'
|| '''';
but the following SQL returns values.
SELECT UPPER (dest)
,dest_code
,rate
,osname
FROM lcr
WHERE :from_date >= effectivedate
AND :TO_DATE <= tilldate
AND UPPER (osname) = NVL (UPPER (:os_name), UPPER (osname))
AND UPPER (dest) LIKE '%MEXICO%';
Is it possible to retrieve date from first SQL statement?
if yes the help me.

Please use the following statement,
SELECT UPPER (dest)
,dest_code
,rate
,osname
FROM lcr
WHERE :from_date >= effectivedate
AND :TO_DATE <= tilldate
AND UPPER (osname) = NVL (UPPER (:os_name), UPPER (osname))
AND UPPER (dest) LIKE
'%'|| UPPER (:dest) --:dest=MEXICO
|| '%';No need for '''' .

Similar Messages

  • File to db scenario not getting out put

    In file to db scenario not getting output(mysql db). giving error for receiver dat there is no action attribute in xml docment..
    what could be da reason??

    The XML document must have the following schema in this case:
    <root>
      <StatementName1>
    <dbTableName action=”UPDATE” | “UPDATE_INSERT”>
        <table>realDbTableName</table>
    <access>
    <col1>val1</col1>
    <col2>val2new</col2>
    </access>
    <key1>
    <col2>val2old</col2>
    <col4>val4</col4>
    </key1>
    <key2>
    <col2>val2old2</col2>
    </key2>
    </dbTableName>
      </StatementName1>

  • How to debugg a script when the Required out put is like Fax  or email

    Hi this is Durga Prasad i have small doubt in scripts can any one clarify that one plz  normally we will do that one with activating debugger but when a special requirement is like fax or e mail    how we will do that one
    "how to debugg a script when the Required out put is like Fax  or email"
    Thanks in advance
    Durga Prasad.

    Hi
    DEBUG Smartform:
    1) One way to debug smartform is to debug the Function Module of that smartforms.
    If you want to debug particular smartform node that the solution would be,
    insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
    So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
    2) SFTRACE can be used for debugging SMARTFORMS.
    Read More here.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    script
    1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.
    It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.
    2). Another way to set the SAPScript debugger is to run program RSTXDBUG.
    When you debug Print program it is same as you debug any other ABAP program. While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.
    As per ur question there is nothing new with script debugging,
    it is same as normal report debugging...
    SMARTFORMS DEBUGGING
    For smartforms debugging you can do this.
    1. Execute the smartform (execute button in SMARTFORMS transaction)
    2. Take the generated function module and display it in SE80.
    3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.
    Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis
    Tcode - SFTRACE
    Re: How to Debug a Smartform
    Debug of smartform and sapscript.
    Debugging SmartForms
    Debugging of a subroutine pool.
    SCRIPT
    There are 2 separate kinds of debugging available when you try to debug scripts.
    1. Debugging the print program : This is the normal debugging we do for our report programs.
    2. Debugging the script itself : You Can debug a SAP Script by activating debugger in two ways:
    a .In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
    b. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
    refer to the link below
    http://www.howforge.com/how-to-debugging-sapscript-form
    Look at the BLOG here, it is well explained
    /people/sudheer.junnuthula2/blog/2007/01/09/script-debugging
    Regards
    Anji

  • Can not get out of screensaver

    Hello,
    I have a Lenovo R500 with Windows 7. When i leave my computer on for a while without using it gets into a screensaver state where i can not get out of, only by restarting abruptly the computer and so all open programs that are still running. How can i solve this?
    Thanks!
    Johan

    Hi Johan1974,
    Here are a few more details:
     Open Device Manager by clicking the Start button Picture of the Start button, clicking Control Panel, clicking System and Maintenance, and then clicking Device Manager.‌ Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
          In the list of device categories, expand Mice and other pointing devices.
          Right-click the entry for your mouse, and then click Properties.
          In the Mouse Properties dialog box, click the Power Management tab, check the Allow this device to wake the computer check box, and then click OK.
    There are some screenshots here although the instructions are to remove the check because it is advising how to disable it. You will be doing the opposite.:
    Sleep Mode
    ThinkPad: T530 / X1 Gen 2 / Helix - Yoga: Tablet 2 Pro (Win) / Yoga 3 Pro
    If you find a post helpful and it answers your question, please click the "Accept As Solution" button.
    Lenovo Advocate ~ I am not employed by Lenovo or Microsoft. I am a volunteer.
    Microsoft MVP - Consumer Security
    SpywareHammer

  • Phone will not get out of recovery mode/will not update or restore

    Iphone will not get out of recovery mode. I have pressed the home and lock screen at the same time, and nothing happens. I connected it to iTunes to try to update my phone or restore it, and it will not do anything. The progress bar shows up on the screen but does not make any progress and iTunes says it cannot connect to my phone. I have tried everything and went to the AT&T store and they told me to contact Apple support. What do I do now?

    You will have to restore it from Recovery Mode

  • TS3276 Why can i suddenly not send out mail using mail through my ntlworld account

    Why can I suddenly not send out mail using Apples Mail. My mail server is Ntlworld. I can send mail by going to Safari and loging into my mail account, but i would prefer to continue using Apples mail and my address book. Does anyone know what my problem could be. I haven't altered any settings.

    Why can I suddenly not send out mail using Apples Mail. My mail server is Ntlworld. I can send mail by going to Safari and loging into my mail account, but i would prefer to continue using Apples mail and my address book. Does anyone know what my problem could be. I haven't altered any settings.

  • IPhone5s not getting wifi connectivity using iBaton router-BSNL broad band

    I have been using my IPhone5s over BSNL Wifi router and due to some erro I have replaced the same with iBaton router. After replacing it I am  not able to connect my Iphone to the wifi. I have used the normal method to search the wifi router and keyed in the wifi password, but the Iphone5s is not getting connected to wifi (its always in search mode). I am able to connect my laptop and Samsung S3 with out any difficulty and can browse the sites. I have tried few methods found over the net to connect the Iphone using static ip, though for few seconds the phone is getting connected to the wifi, it again goes back to the search mode of wifi
    Anticipate your valuable suggestions to fix the issue
    P.R.Nambiar

    Hello prnambiar,
    The article linked below details some useful troubleshooting steps that can help resolve issues with connecting to your Wi-Fi network.
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398
    Cheers,
    Allen

  • I can not get sound when using Petville, on Face Book.

    I use my room mates computer, sometimes, as it is a desktop, but he owns it, and has an account for me (I have an old lap top). He is away for Government training in California, and I ABSOLUTELEY CAN NOT mess up his settings...but, I do not think I can, because I am not listed as an administrator. I play Petville, as a silly game, to wind down, but, I can not get SOUND, on this computer anymore...don't know why. Sure there is a reasonable explanation. It worked before, now it does not. At one time I clicked on NO SOUNDS in the control p[anel (maybe I do have administrator priveledges)...changed it to Windows default, added sounds, customized it & named it, on my user name-not his. For the life of me, I cannot figure this out-but after clicking this and that, I realized it is something about applications, and what is compatible with Mozilla/Firefox. HELP!

    See:
    * [[No sound in Firefox]]
    * [[Video or audio does not play]]
    You can click the Volume icon on the Windows Taskbar near the clock and click the Mixer link at the bottom to open the mixer.<br />
    You can adjust the volume level for each application in that window, so make sure that Firefox is not muted or set at a low level.<br />
    You will only see the Firefox program in the Mixer if you are on a website that plays sound.<br />

  • ALV Report In Background.. Generating same out put using ABAP Extracts

    Hi
        We are running ALV reports and generating out put in background using Extracts. We are having a discussion that SAP doesn’t recommend to execute ALV reports using batch and generate report output , as it heavily load for spool ... we are coming across some problem when I analyze Sm37 ... I found an error " ABAP framework unable to initialize " .
    I want an input/suggestion what you guys think about it?
    Thanks in Advanced...
    Bye

    Nope... We’re using some batch id which use to run background job, as I am also in SAP Security, I just verify it has all the security to run the report . As this report is running fine if we ran it other then batch id ... as before it was running fine .
    Thanks
    Message was edited by: Saquib Khan

  • JPF not getting invoked when using PageURL

    Team Portal -
    I am having a problem with creating links to other portlets.
    I have one page flow portlet that checks for the "page" input parameter to redirect
    to different pages.
    Now, another portlet needs to have links to the different pages within the page
    flow portlet. I am using the PageURL to create the links -
    PageURL gotoPageLink1 = PageURL.createPageURL(request, response, "linksPortetPage");
    gotoPageLink1.addParameter("page", "page1");
    PageURL gotoPageLink2 = PageURL.createPageURL(request, response, "linksPortetPage");
    gotoPageLink2.addParameter("page", "page2");
    and so on.
    However, all these links go to Page1. It seems that the begin action in the linksPortlet
    does not get called.
    Help please.
    Thanks
    Fumi

    Team Portal -
    I am having a problem with creating links to other portlets.
    I have one page flow portlet that checks for the "page" input parameter to redirect
    to different pages.
    Now, another portlet needs to have links to the different pages within the page
    flow portlet. I am using the PageURL to create the links -
    PageURL gotoPageLink1 = PageURL.createPageURL(request, response, "linksPortetPage");
    gotoPageLink1.addParameter("page", "page1");
    PageURL gotoPageLink2 = PageURL.createPageURL(request, response, "linksPortetPage");
    gotoPageLink2.addParameter("page", "page2");
    and so on.
    However, all these links go to Page1. It seems that the begin action in the linksPortlet
    does not get called.
    Help please.
    Thanks
    Fumi

  • I have a first generation ipod touch. I use a wireless router to get on the internet. My connection has frozen and I can not get out of a google search screen. Any help is appreciated. Ray.

    I have a first generation ipod touch. I use a wireless router to get my internet connection. It is frozen on opening up a website and will not release. Even when I power down and restart it goes back to the same failed connection. Any ideas greatly appreciated. Ray.

    - Try resetting the iPod. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings>Safari and delete cookies, cach and history.
    - Restore the iPod

  • I have 34.0.5 and am still getting the black and pages don't open, in addition I am not getting an error message like I used to, HELP!

    I will be watching something and get a black screen. I open a new page and I get a black screen that never opens into the page. These problems only started with my recent update. I can refresh and it doesn't seem to do anything - HELP!
    The other weird thing is that I don't get the firefox popups I used to that would close it and fix the problem. Not that I liked it having to shut down, but at least it then worked.

    It seems to be better with the first solution. I will come back if it doesn't work. Thanks!

  • Table space not getting cleaned after using free method (permanent delete)

    Hi ,
    We are using the free method of the LIB OBJ, to permanently delete the objects. As per documentation, the ContentGarbageCollectionAgent will be cleaning the database which runs in a scheduled mode. But the log of that ContentGargabageCollectionAsgent shows, all zero for objects without reference, objects cleared,etc. I.e the table space remains the same before and after deleteing all the contents in the cmsdk database. But the agent is running as per the schedule but just comes out doing nothing.
    Can anbody put some light on this issue.
    thanks
    Raj.

    Hi Matt,
    Thanks for replying. It's been a very long time waiting for you ;)
    ---"Are you running the 9.2.0.1, 9.2.0.2, or 9.2.0.3 version of the Database?"
    we are using 9.2.0.1
    ---"If you installed the CM SDK schema in the "users" tablespace ......."
    Yes we are using USERS tablespace for our Development.
    I ran the query. The result is:
    SYSTEM MANUAL NOT AFFECTED
    USERS MANUAL NOT AFFECTED
    CTXSYS_DATA MANUAL NOT AFFECTED
    CMSDK1_DATA MANUAL NOT AFFECTED
    (USERS belongs to develpoment cmsdk schema. And CMSDK1 for Prod CMSDK schema)
    From the results I see only "Manual", but still I don't see the tablespace size being coming down. Both table space sizes (USER and CMSDK1) always grows higher and higher.
    Also to let you know, We use ORACLE EM Console (Standalone) application to see the oracle databse information online. Will there be any thing to do with the tool we use to see the table space sizes. We make sure we always refresh it before making a note.
    So is there anything else I can see. Once I saw the ContentGarbageCollection agent to free 1025 objects and deleted 0 objects. But I don't see any change in the table space size. I am little confused b/w freed and deleted.
    thanks once again for your response Matt.
    -Raj.

  • Vendor Account not getting automatically cleared using F.13 (OB74)

    Dear Sir / Mam,
    I want to clear vendor account open item based on assignment field.
    for this
    1. I configured OB74 as below
    YAIN     K     0     9999999999     ZUONR (where YAIN = COA)
    2. One of my vendor account # 300031 is appearing as below
    Assignment              DocumentNo      Type          Doc. Date          Amount in local cur.
    TestF.13                100000034            SA           17.02.2012                   275.00
    TestF.13                5100000266          RE            20.05.2010                   275.00-
    3. I executed T-Code F.13 and I selected CoCode, FY, Flagged Select Vendor Option & selected Vendor Account Number and executed in Production Run where in I am getting the following message.
    I  Program started by:           " CSPL
    I  Start date     " 17.02.2012  Start time     " 23:44:04
    S  No customer documents selected
    S  No G/L account documents selected
    I  Only accounts with debit and credit postings are included
    I  Stop date      " 17.02.2012  Stop time      " 23:44:05
    There after If i go and check the vendor account the open item are still open!
    I want to clear it through T-Code F.13 as I have mass documents be cleared like this.
    (Therefore I am not clearing it through F-44)
    Please guide me as where am I going wrong.
    Thanks In Anticipation
    Regards
    Chirag Shah

    Dear Jessica,
    In OB74,
    I have Put my chart of accounts - YAIN,
    Account type K,
    From / To accounts  as 0 to 99999999 (as they are numbered/charactered in the master record),
    criteria 1 is ZUONR.
    Account doesn't have Zero Balance but there are few line items with comman assignment text total of which is ZERO in Doc Currency (As I have shown in query)
    in F.13
    Clearing date is tried as 17-02-2012 as well as 18-02.2012
    Unticked Test run (= Production RUN)
    and executed.
    But still it shows the given below details, gives the same message and not clearing the line items.
        CoCd AccTy Account number   G/L           Open Items    Clrd Items
        1000 K     0000300031       0030021002            9             0       
    Thanks & Regards
    Chirag Shah

  • Sir i want to synchronize 3 vi's using occurence fn but i am not getting how to use occurences

    i have no. of variables,in multiple vi's and if value of any bariable changes in any vi other vi need to do something.i know i can use occurences but i do not know how to implent them

    Hi Nirmal,
    I have noticed that you have been trying to help out.
    Let me offer some feedback, please.
    Normal globals are OK if you have a value that is written by one entity ONLY. Multiple readers are are just fine. More than one writter can quickly lead to race conditions so they are habitually avoided by many experienced developers.
    There is a common construct used in LV that is called by a number of different names i.e. LV2 global or Functional global.
    Do a search on this site for many discusions toughting the benifits of a functional global.
    I find that there are a number of benifits found in using these functional globals.
    The first that comes to mind is that these constructs have a diagram so you can control exactly how they operate. (This is something that frustrated me when I was first starting out w/LV. What do you mean I can't get at the diagram?!)
    Another benefit is that they take advantage of the nature of a "non-reentrant" VI in that only one entity can access a time thereby reducing the chances of race conditions. To do the same thing using normal globals, you have to build the global into an action engine or resort to using semaphores.
    Next, they allow for the encapsulation of code. This is very helpful when you have situation where some shared data structures needs to be read, modified, and then written back. Doing this type of operation using normal globals is a disaster waiting to happen.
    Next, LV2 globals can be served from one machine to another by using VI server techniques. Everything works the same as if the LV2 global was on the local machine.
    Next, large blocks of data can be manipulated "in-place" (i.e. the operation is performed on the data in a single buffer instead of being copied, modified and then written back). ALL of the top entries in the LabVIEW Zone Dictionary Challenge used a variation on this construct.
    So,
    If the situation indicates that there is a single writter and multiple reads, globals are fine. Otherwise a LV2 global should be concidered.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • Ovi store - The Nokia Account authentication syste...

    Hey nokia people, I've been getting this message for the whole week now, and i can't see anything in the announcements section. If there's something wrong with your systems it would be prudent to announce about it, especially prolonged outages. Can a

  • Problems saving in a WorkBook analizer 7.0

    Hi gurus, i got a IP Query, when i use the save button in analizer but in query execution, this works fine,  then i put the query in a WB and create the same save button, but this doesnt work, it meant, doesnt create or change values in the KF, what

  • HR Monthly Payroll Report

    Dear experts, I am going to develope Below ALV report . I need Fucntion modules from which  i can get these below data Basic Salary Housing Allowance Transportation Allowance Over time Total Incoem Loan Leave Other Deductions Total Deductions Net Sal

  • How do I  install Photoshop Elements 10 to a secondary drive?

    How do I  install Photoshop Elements 10 to a secondary drive? I have a solid state drive as the primary drive and a secondary drive that has much more storage where I would like to install PSE, but there is no option to pick the drive when you instal

  • Unable to download epson printer driver

    I am unable to download epson printer driver for rx580. Exe files not supported? other than boot camp and suggestions?