Character enter in script

Hi,
I am developing a CCX 8.5 premium script and  I need to add a "new line" character in a string variable and  then to save this info inside a xlm file but so far i have not  made it. I have tried with \n\r but not, whole string value stays in the same line, for example:
STRING temp
DOC outputdoc
temp = D[now] + T[now] + "new line"
set outputdoc = temp
how do i do to get that?
Thanks in advance.

Hi,
well, you don't really need a newline character in an XML.
However, you can use System.getProperty("line.separator"). But again, I don't really see the use of it. Basically everything is a binary stream and it's up to the final rendering how it is presented.
G.

Similar Messages

  • Paragraph format and character format in script

    hi expects,
    what is the difference between paragraph format and character format in script?

    Hi Rohit,
    Paragraph formats control the formatting of paragraphs in SAPscript  whereas Character formats are used for text formatting within paragraphs.
    Character formats will have Standard attributes like Bold, Italic, Underline, Font family, Font size etc.
    Paragraph formats will standard attributes of Character formats and in addition to this, they will margins, Indents, tabs, Alignments, Line spacing and delimeters.
    Check this link for Paragraph formats
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802e02454211d189710000e8322d00/content.htm
    Check this link for Character formats
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/802e43454211d189710000e8322d00/content.htm
    Thanks,
    Vinay

  • How to get character entered in JPasswordField

    Hi,
    I am using a JPassword field and i need to get the password entered(i mean the characters entered)
    getText() is depricated so i used getPassword(), but it gave me some other things (%@$#) for what i entered (abcd).
    1) How can i get the exact character. Like if i type "abc" i want to get "abc".
    Thank you

    Yes, but I would think twice about storing the password in the database. That kind of defeats the purpose of having a password. Anyone with basic knowledge of SQL can find it.
    There are some tricky things you can do such as using a hash to make the password illegible in the database, then you would reverse the hash in your program when you read it back again. But even this is not real secure.

  • Strange character in report script unload file.

    I have an Essbase Report script I’m using to create an unload file of my Essbase Data.
    Ever time I run the report script and open the file it has this character on the first line of the file 
    , what are these and how do I suppress them>?
    thanks

    Never mind. Foud out that SUPFEED works fine. The question about page break character affecting SAP is still open though.

  • Unable to print special character in SAP script

    Hi,
      There is an address which needs to be hardcoded in a SAP Script form.
    It looks like:
    Česká republika s.r.o
    Karla Engliu0161e 3219/4
    Česká republika
    IČO:  25635972
    The letters which has got a tilde and sign above them are appearing as a hash '#' in print. I have tried uploading it as an image and as standard text. But still not working. Can someone help please?
    Thanks in advance,
    Anita

    Hello,
    Is your SAP Unicode? If no, then this can get very messy. If yes, I'd start with checking if the font used by the SAPScript supports that character.
    Regards,
    Michael

  • Clarification on character format in scripts

    Hi
    i have a standard from name j_1a_F007_cd_mem. in this form in the main window there is a statement like this <bd>j_1ai02_barcode in the third line. but in this form this <bd> character format has not declared any one. im surprising how this is working with out declaring. can any one please clarify this one how this is working. whether this character format is calling from some where.
    Thanks in advance.
    Rahul.

    hi,
    U will find the Char format <BD> in char fomats along with Barcode format.
    if u don't find them there then reimport the script from client 000 and see.
    You can the find that in the Character formats radio button and there itself you can see the barcode option.
    reward if helpful
    regards,
    sravanthi

  • How can I test for a special character in action script ?

    I have XML which I use within Flex. One off the values passed in is a special character (the infinity symbol). This displays great within the datagrid, but I want to do some other action script rendering based on this. How can I test this in an if statement.
    XML snippit
    <data>&#8734;</data>
    var infin:String = data[column.dataField];
    if (infin == "&#8734;") // This is the bit I can’t work out
                    // Do Something here

    Hi schaerm,
    you have to dig deeper.
    An idea is this one:
    The red marked word is containing the unit - in a coded way. Somewhere in the LV help you can find the description of this coding (I remember a chapter on memory representations of all LV datatypes...). (There surely is an easier or better way - but the example is done quic&dirty.)
    You can also format the number into a string and analyze the unit here...
    Message Edited by GerdW on 02-07-2010 07:21 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Character field with date format alike & character entered

    Hi all,
    I got one character field created ( varchar2 ) for the purposed to let user the enter the date and also any character since it is a character field.
    Hence, my field may contain the following data :-
    Ship_date
    01/10/2010
    07/02/2011
    15/01/2011
    25/01/2011
    31/01/2011
    TBA
    STOP
    11/01/2011
    TBA
    Hence when come to sorting, I will like it to be date format like sorting so that the earlier date will display first then only follow by the character. The expected result will be :-
    ship_date
    01/10/2011
    11/01/2011
    15/01/2011
    25/01/2011
    31/01/2011
    07/02/2011
    STOP
    TBA
    Trying to do the normal sorting, it does not exactly sort on the date format, as it only sort on the first two character on the date hence I am not getting the correct sorting on this.
    01/10/2011
    07/02/2011
    11/01/2011
    15/01/2011
    25/01/2011
    31/01/2011
    STOP
    TBA
    Could someone help me on this. Thanks.
    Lim

    Hi, Lim,
    sm**** wrote:
    Hi all,
    I got one character field created ( varchar2 ) for the purposed to let user the enter the date and also any character since it is a character field.That's a very bad idea. Use a DATE column for storing dates. Have another, separate column for VARCHAR2 data.
    Hence when come to sorting, I will like it to be date format like sorting so that the earlier date will display first then only follow by the character. The expected result will be :-
    If you must deal with the table as it is:
    ORDER BY  CASE
              WHEN  TRANSLATE ( ship_date
                        , '012345678'
                        , '999999999'
                        ) = '99/99/9999'
              THEN  SUBSTR (ship_date, 7)
                 || SUBSTR (ship_date, 4, 2)
           END
    ,       ship_dateThe CASE expressionj sorts anything the looks like a date ('99/99/9999' where '9' stands for any digit) first, in order by the last 4 digits, then the middle 2 digits. The first 2 digits are sorted by the second ORDER BY expression.
    I will like it to be date format like sorting so that the earlier date will display first then only follow by the character. The expected result will be :-
    ship_date
    01/10/2011
    11/01/2011
    15/01/2011
    25/01/2011
    31/01/2011
    07/02/2011That must be a mistake. I don't believe you want January to come after October and before February, but if you do, you can change what comes after THEN in the CASE expression.

  • HELP! My iTunes won't open after entering in script!

    I was getting really annoyed every time I tried to listen to something in VLC player and when I'd hit the "pause/play" button, iTunes would open and start playing. So I searched around for a fix for this and all I could find was some script to stop iTunes from opening.
    Well, it didn't help my VLC problem, now all that happens when I hit the "pause/play" button is a weird jump in my dock as if the ghost of iTunes is trying to open, which is also the same thing that happens when I try to open iTunes at all.
    Anyways, I need some sort of reverse script for this, the only one I could find was:
    sudo chmod a+x /System/Library/CoreServices/rcd.app/Contents/MacOS/rcdand that did not work at all. Pleeease someone who's good with script and Terminal help meee!

    I had similar problem this time and last time when I upgrade/update iTune, and subsequently solved the problem through the help of this person. You may give it a try and see if this works for you. It works for me now and then. Good luck.
    https://discussions.apple.com/thread/3800524
    Oliver

  • Special Character in Filename script - how do I escape it.

    Hello All. I'm attempting to call a file in sqlplus on a linux box. The file name has a special character.
    ex: i$_my_script.sql
    I've attempted to use
    @i$_my_script.sql
    @i\$_my_script.sql
    @i\\$_my_script.sql
    @"i$_my_script.sql"
    @'i$_my_script.sql'
    @'i\$_my_script.sql'
    All to no avail. I could have sworn I'd called a similar file with $ in the filename before but now I can't get it to work. Preference would be to no have a special character in the filename ... but the file is coming in from a source I don't have control over. I could rename the file but the file resides in a source control system and I'd prefer not to have to rename it every time I want to compile it.
    Thanks in advance.
    edit<<Also as a note I can see the file in sqlplus by sending ls to the command line as follows:
    SQL> ! ls i\$_my_script.sql
    which returns
    i$_my_script.sql
    Edited by: Kennedy on Sep 6, 2011 1:25 PM

    another workaround for the same is use double slash \ \ before special character to avoid such issue
    Regards,
    CA
    shockwave flash chrome
    clear flash cookies
    html blinking text
    keyboard on screen

  • How to enter super script inspection characteris long text

    Dear All,
    our user want to enter 10 to the power of 4 ,or upto 10 to the power of 9  in inspection characteristics long text, kindly guide me for the same.
    Rgds,
    Mani

    Hello Manish,
    I think the following thread in QM forum has the solution to your question.
    Re: Subscript in long text
    Regards
    Prasad K

  • Can't enter shell scripts in Automator?

    When adding the "Run Shell Script" action to a workflow in Automator, I can't actually type anything in the text box -- when I try to type something, I just get a bunch of seemingly random characters. Does anyone else see the same behaviour or is there just something funky going on with my two Macs?
    I'm certain I'd be able to create a couple of services for encrypting/decrypting messages in Mail with GPG, if only I could actually type the shell script into Automator

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

  • Sap Script Character Forms

    Hi
           Is it possible to create New Character Format i.e for FAMILY : TIMES , can i create a new FONT size say '38' , if so may i know the steps pls
    Thxs,
    vind

    Hi,
    In SAPSCRIPT, enter the script name and press Display, there you will find the Charecter Format Button, press that one, here we an option to copy the existin gone or we can create the new one,so here you can change or create the FONT and and Font Family
    Regards
    Sudheer

  • How to enter a C EOF character in terminal

    I already searched and went to this thread here which has been archieved... http://discussions.apple.com/thread.jspa?messageID=5069197&#5069197
    It says EOF can be entered using ctrl-d but that doesn't seem to end the input stream. my code is as follows...
    #include<stdio.h>
    main()
    int c;
    while((c=getchar())!=EOF)
    putchar(c);
    any help is appreciated.
    PS: Referring to The C programming language, K&R
    Message was edited by: AceNeerav
    Message was edited by: AceNeerav

    First, and code you post should be wrapped in
    ... your code here ...
    tags. That will make sure the forum does not see coding syntax as forum formatting meta characters, and it will preserve your indentation.
    As the thread you posted suggests, there is no EOF character.
    However, at the lowest level the read() system call (somewhere under getchar()), can be told there is no more input, and it will return 0, which somewhere along the way, the getchar() code converts to EOF (where EOF is actually -1).
    Depending on what the read() system call is reading, there are different even lower level rules for indicating end-of-file. In your example, you are reading from the Terminal, and the tty driver (NOT the Terminal, but the tty driver) has the convention that if it is in the correct mode, it will tell the read() system call end-of-file when the tty driver sees a specific character.
    The normal Unix convention is that Control-D is used to indicate end-of-file. However, this can be changed (but normally it is not), or the tty driver can be put into "RAW" mode which will pass every character entered directly to the reading program and do nothing.
    You can see the current terminal driver settings using the
    stty all
    command. Here are the settings for my Terminal session:
    stty all
    speed 9600 baud; 13 rows; 145 columns;
    lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
    -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
    -extproc
    iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel iutf8
    -ignbrk brkint -inpck -ignpar -parmrk
    oflags: opost onlcr -oxtabs -onocr -onlret
    cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
    -dtrflow -mdmbuf
    discard dsusp eof eol eol2 erase intr kill lnext
    ^O ^Y ^D <undef> <undef> ^? ^C ^U ^V
    min quit reprint start status stop susp time werase
    1 ^ ^R ^Q ^T ^S ^Z 0 ^W
    Notice on the 4th from the bottom row, it says 'eof' and below that it says ^D (Control-D). This basically says that the tty driver will tell the read() system call end-of-file when the tty driver sees Control-D.
    Control-Z is used for job control, which suspends your current process and allows you to start a different job, optionally putting the current job in the background (Control-Z, jobs, bg and fg commands). Control-Z has nothing to do with end-of-file on a Unix based tty interface.
    However, I know that back in the good old days of DOS, a real Control-Z character in a text file WAS the end-of-file indicator. This was bad design even back then. Thankfully, Unix predated DOS and never used that ugly convention.
    As to your program, it works for me:
    #include<stdio.h>
    main()
    int c;
    while((c=getchar())!=EOF)
    putchar(c);
    I compiled and ran it:
    command prompt> gcc example.c -o example
    command prompt> example
    the quick brown fox jumps over the lazy dog # I typed this
    the quick brown fox jumps over the lazy dog # putchar() text
    ^D # I entered Control-D
    command prompt> # the program ends, and I get the command prompt
    If you are not seeing this behavior, then I would look closely at your stty settings.

  • Keystroke return and ASCII character 13 and 10 not working in

    I have the following script to opens a web page of my internal telephone switch (all in the local network) and fill in the two fields that come up and needs filled out in order to log in.
    tell application "Safari"
    activate
    open location "http://192.168.1.90/"
    end tell
    tell application "System Events"
    delay 1
    keystroke tab
    delay 1
    keystroke "" -- Note: Username goes here if one is wanted/needed
    delay 1
    keystroke "XYZ" -- Note: Password goes here if one is wanted/needed
    delay 1
    keystroke (ASCII character 13)
    end tell
    All works fine, it skips the first field (the login name is blank). Puts the password in the next field. However it refuses to activate the “log-in” button of the login window (the one that is blue and normally can be done with the enter key).
    I tried:
    keystroke (ASCII character 13)
    keystroke (ASCII character 10)
    keystroke return
    keystroke enter
    Non of them do the job.
    Any suggestions please? Thanks.

    Consider replacing ...
    keystroke (ASCII character 13)
    ... with ...
    tell document 1 to do JavaScript "document.myform.submit()"
    ... where 'myform' will have to be replaced with the forms' name.
    To obtain the forms' name ...
    01. Perform a right ('control' if single button mouse) button click on the form based web page. A contextual menu will appear.
    02. Select the 'View Source' menu item. A new 'Safari' will appear with the title beginning with 'Source of ...'.
    03. Look for a line similar to ...
    <form name="myform" action="submit-form.php">
    ... Note, the name="myform". This is the forms' name. Whatever is between the name="" is what you need to substitute 'myform' with, in 'tell document 1 to do JavaScript "document.myform.submit()"'.
    I entered ...
    tell application "Safari" to tell document 1 to do JavaScript "document.myform.submit()"
    ... in 'Script Editor', and visited 'JavaScript Form Submit example'. When the AppleScript code was executed, the web page responded accordingly.
    New test of code. With 'JavaScript Form Submit example' again displayed, the following code ...
    set tValue to "ChangeAgent"
    tell application "Safari"
    tell document 1
    do JavaScript ("myform.query.value=\"" & tValue & "\"")
    do JavaScript "document.myform.submit()"
    end tell
    end tell
    ... was entered into 'Script Editor', and executed.
    The results were as expected - the resultant web page reported ...
    Great! The Form is Submitted Successfully!
    Query:'ChangeAgent'
    Back
    ... And, the code was condensed even further ...
    set tValue to "ChangeAgent"
    tell application "Safari" to tell document 1 to do JavaScript ("myform.query.value=\"" & tValue & "\"; document.myform.submit()")
    ... producing the desired results.

Maybe you are looking for

  • Lost all my APPS following a "System Restore" on my Windows 8.1 machine

    A couple of days ago I was experiencing problems logging on to ANY / ALL Wi-Fi networks so elected to do a "System Restore" for about 10 days ago. That worked fine and I got my Wi-Fi networks sorted but I lost ALL MY APPS and cannot find a way to re-

  • IPod Video Funktion impossible !

    Hello ! I have the following problem with my iPod: I have install the quick time player and i have bought the quick time pro 7. When I start the itunes for copie a video over itunes to may iPod I cannot change the Attitudes in itunes. All the other A

  • Unicode MESSAGEG!3 error

    Hi, I am doing unicode conversion of SAP programs. For the below code, I am getting error <b>"LS_RGUMD-RECORD_KEY" and "LS_GLU1" are not mutually convertible in a Unicode program</b>." DATA : LS_RGUMD type RGUMD. DATA : LS_GLU1  type GLU1. LS_RGUMD-R

  • How to Create Multiple Partitions in Windows?

    I have just carried out a clean install of Lion then used Boot Camp to install Windows. With Snow Leopard I had the ability to create multiple partitions in Windows but this seems impossible in Lion for whatever reason. Can anyone please tell me how

  • Print wirelessly on canon pixma MP780 from Macbook Pro

    Hi I have a Canon Pixma MP780 and want to know if I can set it up to print wirelessly from my Macbook Pro.  I would appreciate any advice if you know how to do this.  Thanks very much.