Can you define "single quote" character as a constant

Hello all,
I want to do something like this:
CONSTANTS: q type c value ' .   " << thats a single quote character
DATA: final_string type string,
          VAL1(12) type c,
          VAL2(12) type c.
concatenate q val1 '-' val2 q into final_string. .
How can I define the single quote character as a constant?
Thanks

Hello Ed,
FAQ.
You can declare single quote as constant
If you are aware for single quote (') SAP uses an escape character which is the single quote itself('). Hence for every single quote you have to add an additional single quote.
CONSTANTS: q type c value ''''.
Suhas

Similar Messages

  • Can I quote a single quote character so that I can use it in Replace()

    Hi. How can I quote a single quote character so that I can use it in the Replace() function below. I'm attempting to query first_name records that contain a '.
    select first_name, last_name
    from ttms.prospect
    where instr(first_name,"'") > 0
    ERROR at line 3:
    ORA-00904: "'": invalid identifier

    Hi,
    String literals are enclosed in single-quotes (not double-quotes).
    To use a single-quote within a string literal, use two of them:
    WHERE   INSTR (first_name, '''') > 0In Oacle 10 (and up) you can also use Q-Notation:
    WHERE   INSTR (first_name, q'[']') > 0but you may find this more confusing for short literals containing only one single-quote.
    Edited by: Frank Kulash on Mar 11, 2009 4:52 PM

  • Can you define motion paths in Captivate 8 responsive projects?

    I haven't purchased Captivate 8 yet. Just wondering, can you define motion paths in responsive projects?

    Motion effects are not supported for responsive projects, motion paths have no sense.

  • Can you import stock quotes automatically?

    new to numbers. How can you import stock quotes and banking information into Numbers?

    Users have written scripts to import stock quated from the web for the old version of Numbers, but I haven't heard of anyone who has done this for Numbers V3, and it may not be possible since an Applescript Dictionary hasn't been found for V3.
    Jerry

  • How can you define a different homepage for a user?

    Hi
    I am fairly new to Application express, I have created an application but I would like to define a different homepage for a user when they login. Of course I can modifiy the PLSQL code:
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    With a different page, however I would like to setup a different home page depending on the user that logs in - I tried setting up a conditional process specifying P_101_USERNAME but this did not work...any ideas on how this can be achieved?

    Hi
    Thank you for your response, I have created the function:
    create or replace function "GETDEFPAGE"
    (auser in VARCHAR2)
    return VARCHAR2
    is
    Defpage number;
    begin
    select DefaultPageNumber into Defpage from users_table where username='aUser';
    return Defpage;
    end;
    Can you please assist me on how I can call the function in the login process within the block:
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    );

  • Can you define custom regions?

    I'd like to be able to create a region chart in Power Map but rather than using regions that are recognized such as postcodes or counties, I'd like to be able to define my own, in my case the areas that my sales branches cover.
    I have a file which has all the coordinates for each branch to map the outlines.
    Is this possible at the moment / is it in the September update?
    Regards,
    Alexis

    Alexis, can you submit this feature suggestion via the Smile and Frown button in the UI?
    This goes directly to the product team.
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Can't search single Chinese character in Walkman

    I fond that, there is search issue with Walkman app build in Z1 Compact.
    When search the title of song with Chinese, I MUST give more than one Chinese character.
    I can NOT search songs with single Chinese character, it will find nothing. (without warning or alert)
    For example, If there is a song named "深愛".
    I can found it by search "深愛", but the song can't be found by search "深" or "愛".
    The main problem is:
    it makes the songs which name is only one character could never been found.
    Could please fix this issue? Thanks.

    Still no response after 2 weeks...

  • How can i concatenate single quote to a field symbol

    hi
    i have a senario where i have to concatenate a single quote (') to the field symbol. it is simple but i' m not able to do that.
    concatenate ''' <f> ''' into lv_f.
    CONCATENATE lv_condition_temp lv_f INTO
                                   lv_condition_temp
                                           SEPARATED BY space.
    this is the code which i used. could someone help me in solving this...
    thanks & regards,
    subha....

    hi
    i tried using the following code
    data : lv_text(10) type c.
    concatenate ''' <f> ''' into lv_text.
    it is giving me a spelling or incorrect comma error.
    thanks & regards,
    subhashini.

  • Can you define an event programmatically?

    Does anyone know how to define an event programmatically for a form object using JavaScript? My example is this:
    I am passing form fields to a validation function in a JavaScript object by calling scriptObj.addToValidation(this); from the field initialize event.
    The field object is added to a JavaScript array so I can check for null values of potentially hundreds of fields with one block of code. What I also want to do is define the click and enter events for each object programmatically from the addToValidation(obj) function while iterating through the array. This way I wont need to add code in each field in the design view, my goal is to take as much code out of the form fields as possible and put it into a script object using an object-oriented approach.
    A path I was looking down was trying to access the event by: fieldObject[i].event__change = ... If you print the event__change or event__enter to the javascript console you can see it is an XFAObject but I cant find any doco about these objects and dont know if Im on the right track.
    Hopefully this makes sense, please talk to me LC gurus!!

    Hi Thom,
    Thanks for your insights. Adding 2500 scripts through field duplication would be a solution, in which each field call a generic function according to:
    scriptObject.DoStuff(this, xfa.event);
    It's doable, although it's against my religion. :>
    I found out I can still propagate events down the object chain (or "up" according to Adobe's documention, a metaphor I find counter-intuitive) by manually adding the tag
    listen="refAndDescendents"
    to an event tag of the parent subform. To my relief, even though subforms don't listen to Change activities, the event does get propagated to children who do.
    On add-ins to Designer - are you referring to the experimental macro feature introduced in ES2?
    http://blogs.adobe.com/formfeed/2010/01/designer_es2_macros.html

  • How can I define a default character enconding for Firefox 4?

    Dear Sirs,
    I would like to know how can I change the character encoding of Firefox 4 to Western (ISO-8859-1) and keep that character enconding as the default every time I open Firefox 4.
    I have noticed the every time I change the default character encoding from Unicode (UTF-8) to Western(ISO8859-1) and close Firefox 4, when I open Firefox 4 the character encoding returns to the Unicode (UTF-8) character encoding.
    I would like to keep the Western (ISO8859-1) as the default character encoding. How can I do that?
    Best regards,
    IMeMine

    If the server sends an encoding then Firefox will always switch to that encoding.<br />
    The default is only used on pages where the server does not send en encoding via the HTTP response header and the code doesn't specify the encoding via a meta tag.
    There is usually no need to change the encoding from the default setting Western (ISO-8859-1).
    It is probably better to try an Auto-Detect setting (e.g. View > Character Encoding > Auto-Detect > Universal) if you have a problem on specific websites.

  • Can you define constants in Report Painter?

    Hi, I'm new to Report Painter and SAP in general. I was just wondering if it's possible to define constants that are visible across reports. e.g. In the header text for all our reports, we want our company name to be displayed. But instead of hardcoding it, we want to retrieve it from a constant or variable.
    Does anyone know if this is possible?

    Hi Andrew,
    Thanks for the response but this isn't exactly what I was looking for. From my understanding, the "Sel. Parameters" button allows you to access and display values that were entered by the user in the selection screen of the report (correct me if I'm wrong). What I'm aiming for is something like a global variable defined on the backend that all reports can access.
    I've looked at the other buttons that you pointed out, but it seems like I'm only able to use some pre-defined tables and fields. Does this mean that there isn't any way for me to define and use my own customized variables for reports?
    Thanks,
    Carlo
    Edited by: CarloInting on Jul 21, 2009 5:45 AM

  • Reading Single Quote Character from Microsoft Word

    Hi,
    I do a cut and paste from Microsoft Word into a JTextPane. I am trying to catch the "curly quote" and use the following code.
    current = /* text of JTextPane)
    for (i = 0; i < current.length(); i++) {
    Character cx = new Character(current.charAt(i));
    if (cx == '\222')
    return true;
    Now, nothing gets returned even though \222 is in the document.
    When I do a
    System.out.println (current)
    It prints
    \222When I do a
    if (current.charAt(0) == '\222')
    False is returned....
    Is there something I am misssing???
    Thanks

    Print out Integer.toOctalString(of all the chars). You should see 222 there somewhere. If you don't, the characters is not \222.

  • How can you determine if a character in a string is numeric or alphabetic?

    Hello all,
    I've been trying this one for awhile now, and can't find any way to do it.
    I am reading a character string out of a text file. The string is a number. I need to convert that number to it's decimal equivalent -- this is not a problem, I can do this easily.
    The problem comes in when I'm reading the string from the text file. I want to be able to be sure that they didn't have a typo and insert an alphabetic character into the number. For example, typing 50o instead of 500. If I convert this example, I will read 50. I want it to flag an error instead, but I cannot figure out how to read the string and determine if there are alphabetic and numeric characters in the string I'm
    reading.
    Any help would be greatly appreciated.
    Dave Neumann
    [email protected]

    You can also use the "Scan from String" function. If the "remaining string" output is not a null string, or the error output is reporting an error, something went wrong with the conversion.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Can you define key commands / shortcuts in PSE6?

    Hello,
    working in PSE 6  in mac OSX Leopard, I often wonder why some commands and menus have shortcuts while others do not.
    Wouldn't it be rather practical to have the possibility to write your own shortcuts to practically any function / action of the app?
    One I really miss is for the contrast / lightness menu for example, and some more.
    as fas as I know, there is no such function in PSE6 as of now, or is there?
    Any plans to implement it in future releases?
    Thanks!

    Well in OS X, you can define a Shortcut for any function in the  menu bar.
    Go to OSX Systemprefs -> Keyboard and mouse and select "Keyboardshortcuts". Here you can add shortcuts for any function in the menu of any App.
    However if you want to create some shortcuts for something that is not in the menu (brushes adjustments etc.) you will fail, and I dont think that there is any way to define/adjust shortcuts like in PS CS4.

  • Can you auto shrink quotas on a volume for a particular user until it reaches a limit?

    On a Server 2012R2 machine, we use quotas on the root of a drive to limit the amount of space users have in their home directory.  Some users we have to temporarily increase their quota if they are working on a big project.  But is there any mechanism
    or script or scheduled task that we could use that will on a regular basis check that users quota, and if there is room to lower it, it will, but only lower it back down to a set value (or as close as it can get to that set value at the time it runs)?
    That way eventually they will get back down to what their "normal" quota was, before we had to temporarily bump it.

    just a thought…
    there has quota logging option: log event when a user exceeds their quota limit…. Create a scheduled task to trigger on the event, then configure Action to perform a script to get back down to what their "normal" quota… I don’t know
    if has this script…
    Best,
    Howtodo

Maybe you are looking for

  • Access to a site from the Internet not working, but is for other sites on the same SP

    Greetings, My environment: SP 2013 Enterprise w/ SP1 installed 2 servers in the farm, 1 for SQL, 1 for SP Both servers are VMs running on Hyper-V, SQL is a bit underpowered when it comes to memory, SP is fine 5 web applications running, including a M

  • 10.4.11 printer?

    I have an acquaintance that has an iMac G5 PowerMac12,1. The processor is a PowerPC G5 (3.1). It seems the latest OS it can run is 10.4.11. Anyway their multifunction printer died and have since bought two and both of them don't have drivers for them

  • Bridge open up in a preview mode not photoshop as it should

    when i double click a photo it goes to a preview does not open in photoshop

  • Flarcreate: How to create a master image?

    Hello! I want to create a flash archive of a master system which should be used to install a number of clone systems. Also I want to create differential archives to update the clones. But after creating the first archive and installing it on a clone,

  • Choosing External HD

    Dear all,      A few months ago I purchased a Buffalo Passport USB 3.0 Harddisk 1TB. I was using it for storing media and I have been keeping it plugged in almost all day because I watch movies off of it. All of a sudden, it started making a clicking