SELECT statement does not work if characters ## are contained in field

Hi Experts,
I have the following statement:
select single field1
    from table1
    into var1
    where field2 = text.
This is a very simple statement that is working for me almost always correct. However there is a situation where the system is not able to find the record in my table. If text is equal to JAN##2011 the system won't deliver a result even if I have an entry in table1 with exactly this value.
TABLE1
field1 field2
rome JAN##2011
paris JAN2011
only if text is JAN2011 the select will find a result.
all fields are defined as CHAR.
Thanks in advanced

Hi Alberto,
probably ## is not ## :-).
is the visible representation used by ABAP to show any non-displayable characters as control characters like TAB, CR, LF, FF and the like.
In debugger you can switch to HEX display of values, if you see something like 0A0D you can find this using CL_ABAP_CHAR_UTILITIES constant attributes.
Regards
Clemens

Similar Messages

  • Zen Micro 5gb - Playlist on the fly with "add to selected" often does not work (AD HOC 'playlis

    I've found ad-hoc playlist made from ADD TO SELECTED often does not work. Here are other issues:?. Does not add? at all OR only adds after first song selected played2. Cannot swith from ARTISTS to SONGS w/o killing list. This will kill the ongoing list.3. If I make mistake and hit the PLAY button, it wipes out the entire list I'd already made. Any of these issues resolved in Zen Vision M?

    try reloading the firmware and if that doesnt work try opening the case and cleaning it if there is anything in there. the button may be stuck. and if that doesnt work i dont know what else to sugjest. it seemed to work for me.

  • Double click select all does not work in web site's search area after going back.

    After updating from Firefox ESR v24.8.1 to v31.20 double click select all does not work in a search area after going back or searching again with the same input. It happens before clicking search icon and searching for something else double click select all does not work except it works for one word that's all.
    This issue is with all new Firefox ESR and None ESR I have tried. Also the issue is on all web sites like www.softpedia.com for example.

    Bugzilla has a different login system, unfortunately.

  • Multi-select LOV does not work in forms

    the multi select LOV does not work in the form.
    the LOV works individually but in the form it does not work. it does not allow multiple selection from the list.
    is there a workaround for this or is this a bug ...?
    any ideas ...?
    thanx a lot.
    null

    Right, we cannot store more than one value in a single column in a table :), we were getting a lot of requests to support multiple select LOVs but requirements were contradictory if not mutually exclusive.
    The only sense it makes is when used together with user-defined object types (nested tables for example) but the current [application building]infrastructure we have does not support this. However, we are looking into this and this feature maybe implemented in a future release.

  • SELECT DISTINCT does not work - Another Problem!

    Dear All
    Previous Post
    I just posted a thread, which has been answered by an expert. It's here:
    SELECT DISTINCT does not work. Why?
    My original problem was that the Query returned duplicate records, and SELECT DISTINCT did not work.
    The solution was to change this select:
    T0.[U_SupInv]      AS 'Link'
    ... to this:
    CAST(T0.[U_SupInv] as nvarchar(100))      AS 'Link'
    The amended Query worked.
    New Problem
    I just discovered that resolving the problem created a new one.
    The field U_SupInv (Link) is in fact a UDF.
    I created it so that all Suppliers' Invoices could be Scanned to pdf files, and these pdf could be linked
    to the respective AP Invoice.
    Originally, when I clicked 'Link' in my Query results, the pdf scan pops up.
    When the Query is amended by adding CAST, the link becomes dead.
    Help
    Could anyone tell me how I can make SELECT DISTINCT work, as well keeping the LINKS live?
    The main purpose of my Query is to help users view the pdf scans by clicking on the links.
    Thanks
    Leon Lai
    Here's my Original Query
    SELECT
    T0.[UpdateDate] AS 'Update Dt',
    T0.[TaxDate] AS 'Doc Dt',
    CASE T5.[TransType]
         WHEN '18' THEN 'PU ' + CONVERT(VARCHAR(6), T0.[DocNum])
         WHEN '19' THEN 'PC ' + CONVERT(VARCHAR(6), T0.[DocNum])
    END 'SAP Ref.',
    T1.[ImportLog]     AS 'Ship #',
    T0.[CardCode] + '' AS 'Supplier #',
    T0.[CardName]      AS 'Supplier Name',
    T0.[DocTotal]      AS 'Rs',
    T1.[BlockNum]      AS 'Reqn #',
    T0.[DocNum]        AS 'Doc No',
    T0.[U_SupInv]      AS 'Link'
    FROM klship.[dbo].[OPCH] T0
    INNER JOIN klship.[dbo].[PCH1] T1 ON T0.[DocEntry] = T1.[DocEntry]
    INNER JOIN klship.[dbo].[OJDT] T5 ON T0.[TransID] = T5.[TransID]
    WHERE
    (T0.[UpdateDate] >= '[%2]' AND
    T0.[UpdateDate]  <= '[%3]' AND
    T0.[U_SupInv] IS NULL)
    OR
    (T0.[UpdateDate] >= '[%4]' AND
    T0.[UpdateDate]  <= '[%5]' AND
    T0.[U_SupInv] IS NOT NULL)
    FOR BROWSE

    Dear István Korös,
    Thanks a lot for your answer.
    I will test your suggestion tomorrow, as it's night and I am returning home now.
    However, I do not think it will suit my requirements for the foll reasons:
    - I worked hard to get rid of the need to enter anything in the @Scan2 field.
    - This UDF was created solely as a text of instruction for my staff.
       Unfortunately I had to fill in something to make the Query work.
    - The problem is that if the user forgets to click the drop-down arrow and leaves @Scan2
       blank, the query does not work.
    - With the help of another expert, I succeeded in ignoring @Scan2 altogether.
    - I posted only a simplified version of my Query on the forum, without the codes relating to eliminating the
      need to enter something in @Scan2, so you may not be aware of my requirement.
    - I hope you understand my reluctance. But I will try your suggestion nevertheless.
    My Suggestion
    I think using PCH1.VISORDER may be the solution.
    If we select only those rows where visorder = 0, then
       - there will be no duplication
       - I need not use SELECT DISTINCT
       - All my LINKS to pdf files will be live because I need not use CAST
       - I may retain that part of my Query which permits ignoring @Scan2 altogether.
    - A Dream!-
    The problem is that I don't know how and where  to place that VISORDER.
    If you think I may be right, could you help me along that line?
    Best Regards
    Leon Lai

  • Added field to dynamic selection screen does not work in FBL5N

    hi,
    we have added KNA1-KATR5 to the selection screen of FBL5N by using logical database DDF using "view CUS" but it does not work.
    Our system is 6.0
    is there any OSS note or program that we should add?
    many thx.

    Refer This:
    Additional field selections in FB03

  • Selection Tool does not work

    Hi, everyone, I noticed that the Selection tool (V) does not work properly, I use Ai CS3, and I can`t resize,move or select any object or text, Can anyone help me?
    Thanks a lot
    Diana

    Sounds like "Preferences>Selection & Anchor Display>Object Selection by Path only" is on.

  • Dictionary and selecting words does not work for Japanese documents

    iOS 5 includes both English and Japanese dictionaries. However, it seems that dictionary function does not work for Japanese PDF documents, nor can I select any Japanese words in Adobe Reader. Please fix this!
    Thanks,
    Kenny

    You can start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")<br />

  • When i paint either black or white on layer mask it erases picture pixels also path selection tool does not work

    when I paint either in black or white on layer mask it erases picture pixels also path tool does not work

    I would try resetting your preference file first:  http://www.lightroomforums.net/showthread.php?14226-Resetting-(or-Trashing-)-the-Lightroom -Preferences-file
    Also, install the latest version 4.4.1 would probably be a good idea.

  • Select Statement is not working

    Hi All,
    I am working on Master Data Text Datasource customer exit. Reading only restricted records using select statement if it is valid then those records move into I_T_DATA. If not they are not going to read.
    I have written the following code .
    Data : ls_rotextstr2 TYPE ROTEXTSTR2. '' Extrct Struct Name
    *&Assigning values language and chart of accounts to variables
    Data : lc_zspras TYPE SKAT-SPRAS VALUE 'E',
    lc_Zktopl TYPE SKAT-KTOPL VALUE 'GCOA',
    lc_zsaknr TYPE SKAT-SAKNR.
    LOOP AT I_T_DATA INTO ls_rotextstr2.
    gi_tabix = SY-TABIX.
    SELECT SINGLE SPRAS KTOPL SAKNR FROM SKAT INTO
    (lc_zspras, lc_Zktopl, lc_zsaknr)
    WHERE SPRAS = lc_zspras
    AND KTOPL = lc_Zktopl.
    IF SY-SUBRC EQ 0.
    MODIFY I_T_DATA FROM ls_rotextstr2.
    ENDIF.
    ENDLOOP.
    Here select statement reading all records like other than 'EN" and 'GCOA' and going to Subrc condition.
    Please some one take a look at the programme and tell me where I am making mistake. I just want the records that are language = 'EN' and Chart of Accounts = 'GCOA'.
    Your suggestions are very help full to me,
    Thanks
    Ganesh.

    Hi,
    Try this..
    types : begin of s,
    spras type skat-spras,
    ktopl type skat-ktopl,
    saknr type skat-saknr,
    end of s.
    data i_t_data type standard table of s with header line.
    Data : ls_rotextstr2 TYPE ROTEXTSTR2. " Extrct Struct Name
    *&Assigning values language and chart of accounts to variables
    Data : lc_zspras TYPE SKAT-SPRAS VALUE 'E',
    lc_Zktopl TYPE SKAT-KTOPL VALUE 'GCOA',
    lc_zsaknr TYPE SKAT-SAKNR.
    *gi_tabix = SY-TABIX.
    SELECT SPRAS KTOPL SAKNR FROM SKAT INTO
    table i_t_data
    WHERE SPRAS = lc_zspras
    AND KTOPL = lc_Zktopl.
    Edited by: Kamini Rawat on Mar 19, 2008 5:56 AM

  • Customer Exit  ---  Select statement is not working

    Hi All,
             I am working on Master Data Text Datasource customer exit. Reading only restricted records using select statement if it is valid then those records move into I_T_DATA. If not they are not going to read.
           I have written the following code .
    Data : ls_rotextstr2 TYPE ROTEXTSTR2. '' Extrct Struct Name
    *&Assigning  values language and chart of accounts to variables
    Data : lc_zspras     TYPE SKAT-SPRAS VALUE 'E',
           lc_Zktopl     TYPE SKAT-KTOPL VALUE 'GCOA',
           lc_zsaknr     TYPE SKAT-SAKNR.
    LOOP AT I_T_DATA INTO ls_rotextstr2.
    gi_tabix = SY-TABIX.
    SELECT SINGLE SPRAS KTOPL SAKNR FROM SKAT INTO
    (lc_zspras, lc_Zktopl, lc_zsaknr)
    WHERE SPRAS = lc_zspras
    AND   KTOPL = lc_Zktopl.
    IF SY-SUBRC EQ 0.
    MODIFY I_T_DATA FROM ls_rotextstr2.
    ENDIF.
    ENDLOOP.
    Here select statement reading all records like other than 'EN" and 'GCOA' and  going to Subrc condition.
    Please some one take a look at the programme and tell me where I am making mistake. I just want the records that are language = 'EN' and Chart of Accounts = 'GCOA'.
    Your suggestions are very help full to me,
    Thanks
    Ganesh.

    Hi,
    Apply the following changes :
    Data : ls_rotextstr2 TYPE ROTEXTSTR2. '' Extrct Struct Name
    Data : lc_zspras TYPE SKAT-SPRAS VALUE 'E',
    lc_Zktopl TYPE SKAT-KTOPL VALUE 'GCOA',
    lc_zsaknr TYPE SKAT-SAKNR.
    LOOP AT I_T_DATA INTO ls_rotextstr2.
    gi_tabix = SY-TABIX.
    SELECT SINGLE SPRAS KTOPL SAKNR FROM SKAT INTO
    (lc_zspras, lc_Zktopl, lc_zsaknr)
    WHERE SPRAS = lc_zspras
    AND KTOPL = lc_Zktopl.
    IF SY-SUBRC NE 0.
    DELETE I_T_DATA INDEX gi_tabix.
    CONTINUE.
    ENDIF.
    ENDLOOP.
    hope it works...
    regards,
    Raju

  • Select button does not work

    I have a Classic Ipod 60G and I have almost 6,000 songs on it. I also have my contacts from outlook and my photos from Adobe Photoshop. It is only half full. It is stuck on "songs" and I cannot choose the music I want to hear and I cannot access my photos, settings, contacts, etc. I've upgraded Itunes automatically and am currently on Version 10 and my music is synced with Itunes and any new music automatically downloads to my Ipod. But cannot hear them because my select button will not click to change from songs to "playlist or artist". What do I do? My old Ipod, a 15G classic has no problem, but my newer 60G has a stuck program or a stuck button. Which is it?

    I also had the same problem. After reading many suggestions on how to fix, I tried the one that seems to work for many people.  I plugged my apple tv into my pc ( itunes) and it automatically asked if I would like to restore it and  that it will download any updated software.  I followed the instructions and when it was complete I tried it out and it worked perfectly. When Apple TV is plugged into your pc it does not need any power. Also you need to use a micro usb to connect it.  Hope this will help!
    There was a problem for a short while (see link below) but as of a few days ago you no longer have to do anything special to update the Apple TV2 since Apple released v4.4.2.  All you need to do is go to Setttings > General > Update and it will automatically update to v4.2.2 from any earlier version.
    http://support.apple.com/kb/TS4107

  • HT1414 I have intelos and my Iphone does not work in some areas or in my house. I have had Apple replace it 2 times with the same problem. My android worked fine in all places....what's wrong with this? It's killing my business!! Any ideas to fix it??

    Please help me understand why my I phone 4s is not working in some places and my HOME!! I have been to Apple 3 times and Intelos 5 times and no one knows whats wrong and they are telling me that no one else is having this problem. It's hurting my business because I can't get calls at home. I paid a lot of money for this and may have to pay to get out of it.  I thought Apple was a good company but am changing my mind quick.

    OK, restart in Safe Mode, this will clear some caches. It's possible one or more is corrupt. To restart in Safe Mode when you hear the start up tone hold down the Shift Key until you see a progress bar. Let it fully boot then restart normally and test.
    Also I am assuming you have checked Finder - Preferences  - General and see what boxes are checked in "Show these items on desktop." You can also mount an item in Disk Utility, simply highlight it and then look in the File menu for Mount.....

  • Select tool does not work

    Select tool has quit working.  Click on it and the snap shot tool appears.  All other tools work fine.  Uninstalled and reinstalled reader but problem remains.

    The Selext Tool works only on actual text; on a scanned document when it has been treated with OCR.
    Or does the same thing happen when you do it on a text document like http://helpx.adobe.com/pdf/adobe_reader_reference.pdf ?

  • Search does not work correctly when including user name field

    I'm attempting to search for the word authenticator in my previous posts. I'm typing authenticator in the search box, my user ID (mthompson) in the username field, and selecting the appropriate datd range. There are no results found.
    That is wrong. When I click on the 'Your Control Panel' link, I very clearly see my previous posts containing that term.
    Why doesn't this work?

    The search functionality on these forums doesn't allow for a username to be entered, but it does allow for a User ID. this is the ID associated with your user when you hover over a link to your own user.
    In your case it's: 476329

Maybe you are looking for

  • Bapi purchase order

    Hy Gurus, Are there a Bapi with input the purchase order number and output the purchase order open quantity and delivery date? Thanks. Josy

  • Need help in displaying value in DATAPROVIDER

    Suppose i drag an EJB component method "getALL( ) "into the datable. This getALL ( )returns a collection of 'Person' value object Person( ){ String name; String address; Integer telephone' Collection Cars; Theoritically, i can display all the particu

  • Need instructions for Enhanced Cable Tech "Liberty" VGA adapter....

    Hi! I'm trying to get my old PowerMac 8500 up and running. The only display I have that is (well, should be...) compatible is an old Apple Studio Display 15" Flat Panel (Rev B.). This is the second iteration of that display, with the VGA connection,

  • Caused by: oracle.xdo.parser.v2.XMLParseException: Start of root element ex

    Hello I am new to XML and I have written an XML Data template from scratch (not from .rdf). It's a very basic sql statement that returns 4 pieces of data to print on file folder labels. The results look great in Template preview mode. However, when I

  • Master Data conflict between different sources

    Hello Experts, We have conflict in Master data which is getting extracted from different R3 systems. So we have maintained the transcodifiction by adding Prefix ID of logical system ID for the second R/3 system where we have a confict in the Master d