SAPscript DEFINE using double quotes.

Hello all,
It is OK to use double quotes in a DEFINE statement so an apostrophe will print?
<u>Example:</u>
:/Define &TITLE& = "That's all there is"
which will then print <i>That's all there is</i>
It worked in a test I created, but is this the best approach?  Is there a better solution?
Thank you
Bill Lomeli

Hi,
In the Script, Normally we define the varialbes using DEFINE and assign the text to it with Single codes ...
Syntax: /: DEFINE &symbol_name& = 'value'
/: DEFINE &subject& = 'Your letter of 7/3/95'
The value assigned can have a maximal length of 60 characters. It may itself contain other symbols. A symbol contained within the value assigned to another symbol is not replaced with its own value at the point at which the DEFINE command is executed. Rather, this replacement is made when the symbol defined in the DEFINE command is called in the text.
/: DEFINE &symbol1& = 'mail'
/: DEFINE &symbol2& = 'SAP&symbol1&'
Regards
Sudheer

Similar Messages

  • Use double quotes in column alias

    Hi,
    I would like to alias a column that would look something like this <University "John Smith"> (without <,> chars).
    I know in oracle when you use aliases you need to enclose the column name in double quotes if there are "special" characters.
    In other words how can I write the query below:
    select 1 as University "John Smith" from dual;
    Thank you
    Edited by: orange_square on Jan 14, 2010 7:39 AM
    Edited by: orange_square on Jan 14, 2010 7:40 AM
    Edited by: orange_square on Jan 14, 2010 7:40 AM

    I might be wrong but I don't think you can use double quoted text inside another double quoted string. I don't think there's an escape character for it.
    But maybe you could use single quotes? Not sure it will suit your needs.
    SQL> select 1 as "University ""John Smith""" from dual;
    select 1 as "University ""John Smith""" from dual
    ORA-03001: unimplemented feature
    SQL> select 1 as "University 'John Smith'" from dual;
    University 'John Smith'
                          1
    SQL>

  • Re: Using double quotes with CellWrapper parameter on rwservlet

    I'm on 11.1.2 on Windows 2008 and I cannot for the life of me get a delimited report to generate with a double-quote cell wrapper.
    I've tried every suggestion that I can find, including the ones in this thread, but nothing seems to work.
    I reliably used delimiter=',' and cellwrapper='"' with 9i and 10g reports, but I can't find anything that does the trick in 11g.
    Any hints?
    Thank you!

    A little update....
    I was able to successfully generate a comma-separated report with a double-quote cellwrapper by creating a wrapper.cmd file as above with only the following contents:
    cellwrapper='"'
    BUT... I could only get this to work if I submitted the job using a URL to rwservlet. It still doesn't work with rwclient or rwrun. It's better than nothing, but I'd really like this to work with rwclient.
    FYI

  • Using environment variable / double quotes in "Arguments" in "Server Start"

    I have an admin server, NodeManager, and 1 managed server, all on the same machine (windows). I am trying to enter something similar to this to the arguments field in the Server Start tab:
    -Dmy.property=%USERPROFILE%\someDir\someJar.jar
    But when the managed server is started it throws this exception:
    Error opening zip file or JAR manifest missing : %USERPROFILE%\someDir\someJar.jar
    It appears that the environment variable is not being translated into it's value. It is just passed on to the managed server as plain-text. I tried surrounding the path with double quotes (") but the console validates the input and does not allow this: *"Arguments may not contain '"'"*
    Even editing the config.xml file manually cannot work, as the admin server fails to startup after this:
    <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: [Management:141266]Parsing failure in config.xml: java.lang
    .IllegalArgumentException: Arguments may not contain '"'.>
    I also tried using %20 to no avail, it is just passed as %20.
    I thought that perhaps this had something to do with the spaces in the value of %USERPROFILE% (which is "C:\documents and settings.."), but the same thing happens with other env. variables which point to other directories with no spaces.
    _My question:_
    Is there any supported way of :
    using double quotes? what if i have to reference a folder with spaces in it's name?
    reference an environment variable? What if i have to rely on it's value for distributed servers where i do not know in advance the variable's value?
    Edited by: 937622 on Sep 28, 2012 1:02 AM

    There is workaround : http://stackoverflow.com/questions/12629395/weblogic-using-environment-variable-double-quotes-in-arguments-in-server
    Just posting here for reference. Let's see if we get a different answer from anyone else.

  • Double quote encapsulated identifiers in sql developer 1.5.1

    hello,
    i migrated a mysql database to oracle using the sql developer 1.5.1 on linux. unfortunately i'm using some reserved words in my table name / columns. how is it possible to generate an import script that uses double quote encapsulated identifiers? in the migration workbench, there is an option named "Create ANSI-compilant names" which should do what i need, but i cannot find this option in sql developer.
    thank you for your help. regards,
    sebastian

    I'm not sure what your question is; Did you migrate successfully? How do you generate an import script? What is failing? Can you provide an example?
    K.

  • Ping and editing and double quotes

    Couple of issues using the Ping to comment and send email.
    1) It appears that using double quotes in either a comment on a Ping invite or a Recent Activity Item appears to cause problems. When referencing other songs/album/content I tend to quote them in the recent activity item comment and this causes an error.
    2) Not sure exactly how this happens, but a couple of times I have managed to delete my whole comment. It seems to occur when deleting in the middle of paragraph of text. Anyway, when this occurs the undo does not seem to work.
    Anybody notice these behaviors?

    Thanks for the tip! This worked for me for my invitation to friends to the "Ping" service. Non-specific error with quotes, but with Quotes removed, works fine.

  • MySQL will only let me use backticks (not single or double quotes)

    What the hell is going on here? This worked fine until a recent update.
    SELECT * FROM "table";
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"table"' at line 1
    SELECT * FROM 'table';
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''table'' at line 1
    SELECT * FROM `table`;
    (table prints normally here)
    12 rows in set (0.00 sec)
    The error happens both in the mysql client, phpmyadmin, and all my php scripts. How do I make it accept single and double quotes?
    Phpmyadmin has this to say about the mySQL installation
    Server: Localhost via UNIX socket
    Server version: 5.1.50
    Protocol version: 10
    User: root@localhost
    MySQL charset: UTF-8 Unicode (utf8)
    Last edited by Krause (2010-10-16 10:18:16)

    Hello
    In the SQL Standard, table and column names don't have to be between quotes, only values can be (for instance if you have spaces in a value).
    Just call "SELECT * FROM table;", that's all.

  • Double quotes in function and procedure names when using impdp

    When viewing a function in the original database, it looks like:
    CREATE OR REPLACE FUNCTION TA_ACTIVITY_D_GEN_FNC
    After doing an expdp and impdp to restore a development database, it now looks like
    CREATE OR REPLACE FUNCTION "TA_ACTIVITY_D_GEN_FNC"
    and also has 2 blank lines at end of function.
    This causes us problems when trying to use various utilites to compare differences in production and development. Now every function and procedure shows up as being different.
    Can someone please explain why and what can be done to avoid this from happening?
    Edited by: user6116705 on Jun 15, 2010 7:52 AM

    from old exp, here is the first line of the create procedure statement:
    CREATE FORMAT71 PROCEDURE "SECURE_DML"
    You can see the double quotes. I don't understand why you wouldn't see the same compare issue with old exp. I was wondering what you were using for compare since it would let me know where to look for anything that has changed from the original create to the create performed by data pump. I remember there being an issue in this area. I just don't remember if it was extra spacing, upcasing, or something else or multiple changes. You could contact Oracle support to see if there is a fix and if it is backported to your version.
    The only other way you can possibly fix this (and it would be a huge pain) would be to run impdp with a sqlfile and then edit the sqfile to remove the double quotes and to remove any extra spacing/extra lines. A patch from Oracle would certainly be easier if one was available.
    Dean

  • Converting data to char in double quotes.

    I need to create a comma separated txt data load file. Each column has to be within double quotes.
    "Material","Plant","SOrg" .....
    Currently I am doing something like this. ..
    Loop at table, for each field, concatenate " field value ".
    But I find this solution to be cumbersome as I have to change the data type for each field to character. Is there a better way to accomplish this?
    Thank you.

    You can create simple Method or Subroutine or a Macro for this purpose.
    If you have lot of fields, you can even use RTTS to get the field names and field-symbols instead of writing all the fields.
    TYPES:
      BEGIN OF lty_data,
        fld1 TYPE char10,
        fld2 TYPE dmbtr,
      END   OF lty_data.
    DATA: li_data TYPE STANDARD TABLE OF lty_data.
    DATA: lwa_data LIKE LINE OF li_data.
    DATA: lv_char TYPE char255.
    DEFINE _con.
      lv_char = &1.
      condense lv_char.
      concatenate &2 '"' lv_char '"' into &2 .
    END-OF-DEFINITION.
    lwa_data-fld1 = 'c1'.
    lwa_data-fld2 = '12345.23'.
    APPEND lwa_data TO li_data.
    lwa_data-fld1 = 'c2'.
    lwa_data-fld2 = '72345.23'.
    APPEND lwa_data TO li_data.
    DATA: lv_output TYPE string.
    LOOP AT li_data INTO lwa_data.
      _con lwa_data-fld1 lv_output.
      CONCATENATE lv_output ',' INTO lv_output.
      _con lwa_data-fld1 lv_output.
      WRITE: / lv_output.
      CLEAR: lv_output.
    ENDLOOP.
    Regards,
    Naimesh Patel

  • Newline character within double quotes in csv file

    I have an external table defined as follows:
    CREATE TABLE EXT_MASTER
       (     "SOME_CODE" VARCHAR2(255 BYTE),
         "FAX_NUMBER" VARCHAR2(255 BYTE),
         "WEB_ADDRESS" VARCHAR2(255 BYTE),
       ORGANIZATION EXTERNAL
        ( TYPE ORACLE_LOADER
          DEFAULT DIRECTORY "SOME_DIR"
          ACCESS PARAMETERS
          ( RECORDS DELIMITED BY NEWLINE
              NODISCARDFILE
              LOGFILE 'master.log'
              BADFILE 'global.bad'
              SKIP 1
            FIELDS TERMINATED BY ','
              OPTIONALLY ENCLOSED BY '"'
              LRTRIM
              MISSING FIELD VALUES ARE NULL
          LOCATION
           ( 'Master.csv'
       REJECT LIMIT UNLIMITED;In my datafile I have newline characters within double quotes. This seems to be illegal using the above definition for the table.
    Is there a way to make Oracle ignore newline characters in csv files when they are enclosed in double quotes? Or should I ask my data provider to remove them?

    Here is what i got on 10.2.0.3 (don't think it might be different on 9i):
    SQL> select * from t;
    ID         TEAM_ID    TEAM_NAME
    col1       co         col3
               l2
    col11      col12      col13
    col21      col22      col23
    SQL> !cat a.txt
    "col1","co
    l2","col3"
    "col11","col12","col13"
    "col21","col22","col23"
    SQL> select * from t;
    ID         TEAM_ID    TEAM_NAME
    col1       co         col3
               l2
    col11      col12      col13
    col21      col22      col23The external table definition is:
    CREATE TABLE t(
      "ID" VARCHAR2(255 BYTE),
      "TEAM_ID" VARCHAR2(255 BYTE), 
      "TEAM_NAME" VARCHAR2(255 BYTE)
       ORGANIZATION EXTERNAL
        ( TYPE ORACLE_LOADER
          DEFAULT DIRECTORY "SOME_DIR"
          ACCESS PARAMETERS
          ( RECORDS DELIMITED BY 0x'220A'
        BADFILE 'a.bad'
        LOGFILE 'a.log'
        FIELDS TERMINATED BY ',' LDRTRIM
        MISSING FIELD VALUES ARE NULL
        REJECT ROWS WITH ALL NULL FIELDS
          ( "ID" CHAR(255)
            TERMINATED BY "," ENCLOSED BY '"',
            "TEAM_ID" CHAR(255)
            TERMINATED BY "," ENCLOSED BY '"', 
            "TEAM_NAME" (*+1) CHAR(255)
            TERMINATED BY "," 
          LOCATION
           ( 'a.txt'
       REJECT LIMIT UNLIMITED;Best regards
    Maxim

  • SSRS Report Returning Double Quote string from a Single Quote String

    Hi, I'm getting weird thing in resultset from SSRS report when executed. When I pass parameter to a report, which passes String that has single quote value to a split function , it returns rows with double quote. 
    For example  following string:
    'N gage, Wash 'n Curl,Murray's, Don't-B-Bald
    Returns: 
    ''N gage, Wash ''n Curl,Murray''s, Don''t-B-Bald
    through SSRS report.
    Here is the split function Im using in a report.
    CREATE Function [dbo].[fnSplit] (
    @List varchar(8000), 
    @Delimiter char(1)
    Returns @Temp1 Table (
    ItemId int Identity(1, 1) NOT NULL PRIMARY KEY , 
    Item varchar(8000) NULL 
    As 
    Begin 
    Declare @item varchar(4000), 
    @iPos int 
    Set @Delimiter = ISNULL(@Delimiter, ';' ) 
    Set @List = RTrim(LTrim(@List)) 
    -- check for final delimiter 
    If Right( @List, 1 ) <> @Delimiter -- append final delimiter 
    Select @List = @List + @Delimiter -- get position of first element 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    While @iPos > 0 
    Begin 
    -- get item 
    Select @item = LTrim( RTrim( Substring( @List, 1, @iPos -1 ) ) ) 
    If @@ERROR <> 0 Break -- remove item form list 
    Select @List = Substring( @List, @iPos + 1, Len(@List) - @iPos + 1 ) 
    If @@ERROR <> 0 Break -- insert item 
    Insert @Temp1 Values( @item ) If @@ERROR <> 0 Break 
    -- get position pf next item 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    If @@ERROR <> 0 Break 
    End 
    Return 
    End
    FYI: I'm getting @List value from a table and passing it as a string to split function. 
    Any help would be appreciated!
    ZK

    Another user from TSQL forum posted this code which is returning the same resultset but when I execute both codes in SQL server it works and return single quote as expected.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8d5c96f5-c498-4f43-b2fb-284b0e83b205/passing-string-which-has-single-quote-rowvalue-to-a-function-returns-double-quoate?forum=transactsql
    CREATE FUNCTION dbo.splitter(@string VARCHAR(MAX), @delim CHAR(1))
    RETURNS @result TABLE (id INT IDENTITY, value VARCHAR(MAX))
    AS
    BEGIN
    WHILE CHARINDEX(@delim,@string) > 0
    BEGIN
    INSERT INTO @result (value) VALUES (LEFT(@string,CHARINDEX(@delim,@string)-1))
    SET @string = RIGHT(@string,LEN(@string)-CHARINDEX(@delim,@string))
    END
    INSERT INTO @result (value) VALUES (@string)
    RETURN
    END
    GO
    ZK

  • How to print/post double-quotes on reportserver

    Hi, I am using rwservlet and cannot send double quotes. I can escape single quotes with another single quote, but double doublequotes do not work. I have tried url-encoding and html encoding, and even their combination, but report server just refuses to generate the PDF with a string with a double quote.
    this is my URL:
    http://rs-server:7778/reports/rwservlet?cmdkey&report=somereport.jsp&desformat=pdf&TESTSTRING=aaaaaaaa&destype=cache&ACTUSER=19
    now I would need in TESTSTRING to have double quotes
    PS: tried BI Oracle Business Intelligence 10g (10.1.2) and forms and reports 10g

    PostScript printer - send it to the printer port e.g. LPT1: with a simple copy.
    Non-PostScript printer - you'll need to buy a PostScript RIP, or perhaps use Acrobat Distiller to convert the PostScript to PDF, then print the PDF with Acrobat's API - see the Acrobat SDK. (This is not possible with the free Reader).

  • How to globally change straight double quotes to curly open and close?

    I am editing with InDesign (5.5) some documents created by others. I suddenly noticed that the double quote marks were straight, not curly, in one document and Find/Change does not seem to offer and option to distiguish the open (left) double quote mark from the right (close) when starting with double straight quotes. Any suggestions?
    And--unrelated--why is so hard to get to a page where you can actually post a question?
    Thanks!
    Jill

    Since the position of a double quotation mark determines its shape, it is easiest to use GREP with Find/Change. You can (1) find a straight quotation mark at the beginning of a word/phrase and change it to left quotation marks, and then (2) find a straight quotation mark at the end of a word/phrase and change it to right quotation marks.
    (1)
    Find what:
    ~"([\l\u\)[:punct:]])
    This finds a straight quotation mark in front of any character or punctuation.
    Change to:
    \x{201C}$1
    This puts a left quotation marks in front of what was behind the straight quotation mark.
    (2)
    Find what:
    ([\l\u\)[:punct:]])~"
    This finds a straight quotation mark behind any character or punctuation.
    Change to:
    $1\x{201D}
    This puts a left quotation mark behind what was behind the straight quotation mark.
    I would find/change the first hits one at a time, and when you are confident that it works for your documents, go ahead and Change All.

  • Add double quotes (") surrounding each field in GUI_DOWNLOAD

    Experts,
    Does anyone know if it is possible to add double quotes (") to all fields in .txt file using FM GUI_DOWNLOAD besides manually concatenate the quotes into each field before calling the FM?
    For example, output need to be:
    "0000123" "NAME1" "   200.00"
    Any advice is greatly appreciated.
    Best regards,
    Minami

    If you are interested, here is a complete solution.
    report zrich_0001.
    data: it001 type table of t001.
    data: xt001 type t001.
    data: iflatf type table of string.
    data: xflatf type string.
    data: filename type string.
    data: field_value type string.
    field-symbols: <fs>.
    * Selection Screen
    selection-screen begin of block b1 with frame title text-002 .
    parameters: p_file type localfile default
                'C:Test.txt'.
    selection-screen end of block b1.
    start-of-selection.
      select * into table it001 from t001.
      loop at it001 into xt001.
        do.
          assign component sy-index of structure xt001 to <fs>.
          if sy-subrc <> 0.
            exit.
          endif.
          concatenate '"' <fs> '"' into field_value.
          if sy-index = 1.
            xflatf = field_value.
          else.
            concatenate xflatf field_value into xflatf separated by space.
          endif.
        enddo.
          append xflatf to iflatf.
      endloop.
      filename = p_file.
      call method cl_gui_frontend_services=>gui_download
             exporting
                  filename                = filename
                  filetype                = 'ASC'
             changing
                  data_tab                = iflatf.
    Regard,
    Rich Heilman

  • Text Entry Box--Advanced Actions--Conditional Statement--Double quotes in literal input value

    Hello forums,
    I'm new to the forums (and Captivate in general), but I'm having a real problem carrying out a tutorial design and I think you may be my only hope.  Let me explain what I want to do and the difficulty that I'm having:
    I'm an instruction librarian at a university, and I'm designing an interactive tutorial for English 100 students to complete in order to become familiar with how to search the library catalog.  What I've done is taken a screenshot of the catalog search page, made it the background of a slide in Captivate (vers. 6), and placed a text entry box over the search bar in the screenshot.  The idea is for the students to conduct a simulated search by choosing one of three suggested search string formulations, and depending on the search string they enter, the tutorial will jump to a slide featuring a screenshot of what the actual search results would look like.  The idea is to emphasize the use of keywords over full-sentence phrases, and the use of double quotation marks to enclose multi-word search terms.
    So I've set the action for the TEB to "Execute Advanced Actions" and then created some IF/THEN statements in the "Advanced Actions" pop-up window (with action type set to 'conditional'). The script is such that if the student enters the first search option (how does sleep affect college students) in the TEB, the tutorial jumps to 1 slide, if they enter the second option (college students AND sleep), featuring a Boolean operator (AND), the tutorial jumps to a 2nd slide, and if they enter the third option ("college students" AND sleep) with the double quotes around "college students" and the Boolean operator, the tutorial should jump to a 3rd slide.  This action script works fine for the first two input options, but I can't make it work for the third search option.
    I think that it has something to do with the fact that the third input option features double quote marks, and this seems to throw off the script (I tried a quote-less input value for the third IF/THEN just to make sure that it would work jumping to the 3rd slide and it did), and I'm wondering if anyone has any suggestions as to how I can get around this issue.  Again, I need it to work so that if the student enters "college students" AND sleep, with the quote marks and the Boolean operator, the tutorial will jump to a slide showing the search results if those search terms were used in a real search of the catalog.
    I'd be extremely grateful for any help that anyone here can give me, we've been trying to make our online tutorials more engaging and interactive (and therefore more interesting), and I think this would be a great way to teach students about using quotes in their catalog searches.
    Thank you for your time and consideration.
    Andrew Wilk
    College Library
    UW-Madison

    The tutorial is for a "how to use catalog searching" instruction in an undergraduate library session.  We use boolean operators (AND, OR, NOT) to combine search terms, ex. to search for books about the sleeping habits of college students, I would enter "college students AND sleep."  Because "college students" is a multi-word phrase to describe one concept, I need to put quotation marks around the phrase to prevent the catalog from searching for the individual words separately, so the most correct search becomes ["college students" AND sleep] with quotation marks around only "college students," a user-typed "AND," and the word "sleep" (no q-marks).
    A colleague of mine worked out a pretty cool (if complicated) solution that I'll share if anyone is interested.  Since the q-marks where the problem, we've set it up so that the TEB validates the response for the search string with q-marks around "college students." If they enter it correctly, the tutorial jumps to the corresponding slide. The attempt # is set to 1, and if the user fails to enter the validated phrase (they misspell or use one of the other response options) then the TEB is set to run an Advanced Actions Script in which the other two options are scripted in IF/THEN statements that cause, when the term is entered correctly, the tutorial to jump to their corresponding slides. We've created another tab of IF/THEN statements that say that if the response is NOT equal to one of these response options, then the slide restarts (technically the slide "jumps" back to itself and starts over) and the user gets another chance to start the cycle over again.
    I know this is confusing (I had a really hard time explaining it in words), so if anyone is interested I could make a Jing video when I have some time.
    Thank you for all your suggestions

Maybe you are looking for