At new line command

Hi,
I have a string like below...
abcdef,12345,ghvbth,kjuytg
and i want it to appear like this
abcdef,
12345,
ghvbth,
kjuytg
Any syntax help to get this..
Regards
Praneeth

Hi praneeth,
1. Simple
2. we have to use SPLIT
3. just copy paste in new program.
4. it will output
abcdef  
12345   
ghvbth  
kjuytg  
5.
report abc.
data : mystr(100) type c.
data : begin of itab occurs 0,
       str(25) type c,
       end of itab.
mystr =  'abcdef,12345,ghvbth,kjuytg'.
split mystr at ',' into table itab.
loop at itab.
write :/ itab-str.
endloop.
6.*----
If u want the COMMA also,
then use like this (just copy paste)
7.
report abc.
data : mystr(100) type c.
data : begin of itab occurs 0,
       str(25) type c,
       end of itab.
mystr =  'abcdef,12345,ghvbth,kjuytg'.
replace all occurrences of ',' in mystr with ',@'.
split mystr at '@' into table itab.
loop at itab.
write :/ itab-str.
endloop.
regards,
amit m.

Similar Messages

  • New line command in a string?

    I'm trying to go to a new line in the middle of a string. I was told that the command was /n but that's definitely not working. Can anyone help me out? Thanks

    You were close. It's \n. You can do something like
    System.out.println("this is the first line \nthis is the second line");Or you could do this:
    System.out.println("this is the first line");
             System.out.println("this is the second line");The 'ln' on the end of the print statement starts a new line each time.

  • New line command help

    How can I insert a new line wherever "<" in the following file?
    1102,1145d1101 < Mar 2 10:00:03 judas.the-ark.com root: Solstice Backup Savegroup: (info) starting Weekly Backup (with 11 client(s)) < Mar 2 10:00:03 judas.the-ark.com root: Solstice Backup Savegroup: (notice) Weekly Backup completed, 11 client(s) (All Succeeded) < Mar 2 10:00:03 judas.the-ark.com root: Start time: Fri Mar 2 10:00:01 2007 < Mar 2 10:00:03 judas.the-ark.com root: End time: Fri Mar 2 10:00:03 2007 < Mar 2 10:00:03 judas.the-ark.com root: < Mar 2 10:00:03 judas.the-ark.com root: --- Successful Save Sets
    I have tried to use this command:
    cat /tmp/vam.test | sed 's/</^M/g' but that does not work. Please help...

    I can never get that to work - but could awk help?
    timu-home ksh: cat foo
    fffFF < ffffff < < ffff <
    timu-home ksh: awk 'BEGIN{RS="<"}{print}' foo
    fffFF
    ffffff
    ffff
    not very elegant but might help
    tim

  • New line command

    hi
    i was wondering what the command was to make a new line in a string (i.e. a string that runs over multiple lines) , i think it was something like "/n" or something like that, i can't find it anywhere
    any help would be great!
    Thanks
    Sarah

    "\n"Though there is more to it than that! '\n' is the new line character but on some platforms a new line is signified by "\n", otherplatforms use "\r\n" and others just use "\r" . There is a system property String getProperty("line.separator") which defines the new line for the platform you are running on.

  • Pressing Enter inserts new line break instead of "executing" command

    I have noticed a rather strange behavior on my new TPT2. This occurs ONLY when I am using the Windows 8 touch keyboard in the "Metro" environment.
    Whenever I press the Enter key on said keyboard (for example when sending an instant message on Skype), the keyboard inserts a new line in the text box instead of acting like a "normal" Enter key and execute the default command (send the message in this example).
    I have connected an external keyboard and this problem does not show up. Everything works as expected. I also brought up the regular on-screen keyboard (launched from the Ease of Access menu) and it works the way it should. The problem is only with the Metro touch keyboard.
    It seems that for some reason, the Metro touch keyboard interprets the Enter key pressing as "insert a line break".
    Does anyone know how to fix this? It is extremely annoying.

    Just checked that, you are right, Photoshop doesn't recognize Shift-Enter as a line break and treat it as a Return which is a problem with paragraph formatting. Obviously a bug.
    Good news workaround is that it recognizes the line break character if you paste it from another program like Microsoft Word. If you don't have a program that allows you to copy just that character and use paste instead of Shift-Return, you have to type your entire text in some other program and copy paste to Photoshop.

  • Siri command "new line" in Siri not working while texting directly in Siri?

    Hi,
    Seems that "new line" and "paragraph" don´t work in the Siri GUI - at least the German pendants "Neue Zeile" and "Neuer Absatz" don´t work on my 4S.
    It works fine in apps like mail but not when creating a mail directly dictaed to Siri..
    Thx
    Sebastian

    I am able to get "new line" to work consistently in NOTES. However, it took a while for SIRI to learn what I wanted. At first, SIRI would type out the command. Then I would enter return from the keypad. After about 6 cycles, she learned it and started skipping ta a  new line. I'm not sure what I am going to do when I want to actually type "new line" !  There should be a hot word to use to let SIRI know to interpret the next word as a command suggestion. But I solved my new linds issue.

  • New line in smartforms after the enter command .

    Hello experts ,
    I get text from a text box , and i need to display it in table field on my form.
    After the user push the 'ENTER' button during inserting the text , i need to display this text in a new line
    How can i  do this ?
    Thanks for your help.
    AVI.

    Hello Sakkthiss.R ,
    For example , the user write the following text :
    Hello world
    today is
    a nice
    day
    After every line in this text the user push the enter button, in the table filed which will be display in the form, the text should be display as it is written below.
    I hope it is clear now.
    Thanks for your help,
    Avi.

  • New Line in Text File

    Hi -
    Im using the FileWriter and BufferedWriter classes to output text into a .txt file.
    The text I am writing is taken from another text file using the FileReader and BufferedReader classes.
    The text is reading from the file, and will also output to the new text file, however it won't insert a new line, it only inserts an 'unprintable' character i.e. an empty square
    My code is below - its only starting out so its farily simple at the moment, just reading from one file and outputting to another.
    Is there a way i can get the actual new line/carriage return inserted instead of the empty square. (im running Windows XP)
    Thanks in advance
    import java.io.*;
    public class Pad {
    private String inputPath;
    private String outputPath;
    /** Creates a new instance of Pad */
    public Pad() {
    inputPath = "C:\\OUTBOUND.TXT";
    outputPath = "C:\\04'06.txt";
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    System.out.println("PAD File");
    //Read PAD File
    Pad p = new Pad();
    p.readPADFile(p.inputPath, p.outputPath);
    public void readPADFile(String inputPath, String outputPath)
    inputPath = this.inputPath;
    outputPath = this.outputPath;
    //System.out.println(inputPath);
    int recordCount = 0;
    String record = null;
    try
    FileReader fr = new FileReader(inputPath);
    FileWriter fw = new FileWriter(outputPath);
    BufferedReader br = new BufferedReader(fr);
    BufferedWriter bw = new BufferedWriter(fw);
    record = new String();
    while((record = br.readLine())!=null)
    recordCount++;
    //System.out.println(recordCount + ": " + record);
    bw.write(record + "\n");
    bw.close();
    br.close();
    fw.close();
    fr.close();
    }catch(IOException e)
    System.out.println("IOException Error");
    e.printStackTrace();
    System.out.println(e.toString());
    }

    I assume by using the
    System.getProperty("line.separator") that this will
    work independent of platform.Yes. And using bw.println() instead of bw.print() will already do it for you. So all you need to change in your program are two letters.

  • How to add a new Line in Labeltext of Ribbon button added in runtime ?

    HI , i'm adding a new buuton ribbon to an existing Tab (Edit Tab) , i use the AliasTemplate "o1" , and this is my button :
    The text "Mettre a jour la fiche a partir de la concept Note " is very long i want to add a new line after "a partir" so i will have two lines , this is what i tried but it dosent worked :
    private string btnUpdateForm = @"<Button
    Id=""Ribbon.Tab.GRP.ButtonUpdate""
    Sequence=""17""
    Image32by32=""/_layouts/images/Aidimpact.RibbonWorkflkow/export-icon.png""
    Description=""""
    Command=""Ribbon.Tab.GRP.ButtonUpdate.Click""
    LabelText=""ValValUpdateLabel1
    ValValUpdateLabel2""
    TemplateAlias=""o1""/>";
    private void AddBtnUpdate()
    // Get the current instance of the ribbon on the page.
    Microsoft.Web.CommandUI.Ribbon ribbon = SPRibbon.GetCurrent(this.Page);
    // Prepare an XmlDocument object used to load the ribbon extensions.
    XmlDocument ribbonExtensions = new XmlDocument();
    // Load the contextual tab XML and register the ribbon extension.
    int intLCID = System.Threading.Thread.CurrentThread.CurrentUICulture.LCID;
    if (intLCID == 1036)
    btnUpdateForm = btnUpdateForm.Replace("ValValUpdateLabel1", "Mettre à jour la fiche à partir");
    btnUpdateForm = btnUpdateForm.Replace("ValValUpdateLabel2", "\n \r\n de la Concept Note");
    else
    btnUpdateForm = btnUpdateForm.Replace("ValValUpdateLabel", "Update the form from Concept Note");
    ribbonExtensions.LoadXml(this.btnUpdateForm);
    ribbon.RegisterDataExtension(ribbonExtensions.FirstChild, "Ribbon.ListForm.Edit.Actions.Controls._children");
    Thanks for advance

    Hi,
       i replicated issue , and \n is not affective. So i guess what option you can try is to keep text small and use Alt to show full text. 
    Regards,
    Milan Chauhan
    LinkedIn
    |
    Twitter | Blog
    | Email

  • New Line Generation in ABAP

    Hi,
    I need to generate a new line in ABAP.Is there a command which generates a new line.
    For Example:
    Input: lv_string1 = 'ABC', lv_string2 = 'XYZ'
    Concatenate : lv_string1 <newline> lv_string2  INTO lv_string.
    Output:
    lv_string should look like this:
    'ABC
    XYZ'
    Regards,
    Roshith

    Hi Roshith,
    1. Ya, u can generate a new line character
    2. BUT, its effect won't be there
       while displaying using write
    3. try this code (just copy paste)
    report abc.
    data : v(100) type c.
    data : s(2) type c.
    class CL_ABAP_CHAR_UTILITIES definition load.
    v = 'amit'.
    concatenate 'amit'
    CL_ABAP_CHAR_UTILITIES=>newline
    'mittal ' into v.
    write :/ v.
    regards
    amit m.

  • Print data at new line in SAP Scripts

    Hi,
    Is there any way that i can print data at new line in sap scripts. I am looping my data and its printing in the same line but i need to print it at new line. Is there any formating options or any command to do that.
    Thanks

    Than you must take all the values from the internal table into the different variables and than print them.
    In program:
    READ TABLE ITAB INTO WA_TAB INDEX 1.
    IF SY-SUBRC = 0.
      VAR1 = WA_TAB-FIELD1.
    ENDIF.
    * read all the lines and fill the VAR variables
    In SAPScript:
    /E LINE_VAR
    /P &VAR1&
    /P &VAR2&
    /P &VAR3&
    /P &VAR4&
    Regards,
    Naimesh Patel

  • Format bold text in field and putting some text on new line - Help!

    I am lost.  I found the rich text formating item to click.  But after that, I don't know what to do next.  I want to bold some characters and I want some reponses on separate lines as I asked previously.  As to spans and the commands - I have no programming experience.  I have just been using what George has given me.  It has worked well, but I just need the bold text in some of the field text to be printed and I need some items to be on separate lines.  But I have no idea where to put the information you are saying about spans and I do not know the script to use to bold text or to start text on new line.  Am I to insert it in the calculation box of the text box?  Sorry to be so lame, but I am void in programming skills.  Help!
    For example, here is the script.  In aISOreq{0], if I want to bold "Patter#1 Check:", where do I put the span and what script do I use to say to bold it.   Could you give me an example, please.  Also, if I want to put "a. Medications on weekend?" on one line and "b. Activities on weekends? Types of activities? Supervision? With who?" on the next line, where do I put the span and what script do I use to say to put on separate lines?  Could you give me an example for this also, please.  I have literally just used the scripts George has given me and they work great - but that is all I know how to do.  Thanks.
    (function () {
        // Set up an array to hold the individual paragraphs of text
        var aISOfreq= [];
        // Populate the array with paragraph text
       aISOfreq[0] = "Pattern #1: Multiple Isolations on Mon & Tues decreasing to Fri.  Pattern # 1 Check: a. Medications on weekend?  b. Activities on weekend? Types of activities? Supervision? With who?";
       aISOfreq[1] = "Pattern #2: Multiple Isolations on specific days.  Note days.  Pattern #2 Check:  a.  Different schedule on these days? Different adult? Block schedule? May need consistent schedule w/same adult.  b.  Are accommodations/modifications occurring? More group v. individual instruction? Does the student need warm-up drills or a specific job?  Does student need a specific lesson routine? c.  Previous night's activities?  Need calming activities before bed?  Need earlier bedtime? Need additional evening structure?";
       aISOfreq[2] = "Pattern #3: Isolations are grouped in intervals.  Note interval.  Pattern #3 Check:  a.  Cyclic behavior?  Review assessment.  Need Mental Health referral for meds and/or therapy intervention?  b.  Medication: supervision? Self-medicating? Taking consistently? Need medication check with physician?  Share concerns with physician?  c.  History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns with PO?";
      aISOfreq[3] = "Patterns #1 & #2: Multiple Isolations on Mondays & Tuesdays decreasing to Fridays AND Multiple Isolations on specific days.  Note days.  Pattern #1 Check:  a. Medications on weekend?  b. Activities on weekend? Types of activities? Supervision? With whom?  Pattern #2 Check:  a. Different schedule on specific days? Different Adult? Block schedule? May need consistent schedule with same adult.  b. Accommodations/modifications occurring? More group v. individual instruction? Need warm-up drills or specific job?  Need a specific lesson routine?  c. Previous night's activities? Need calming activities before bed? Need earlier bedtime? Need additional evening structure? ";
       aISOfreq[4] = "Patterns #1 & #3: Multiple Isolations on Mondays & Tuesdays decreasing to Fridays AND Isolations grouped in intervals.  Note intervals.  Pattern #1 Check:  a. Medications on weekend?  b. Activities on weekend? Types of activities?  Supervision? With whom?   Pattern #3 Check:  a. Cyclic behavior?  Review assessment.  Need Mental Health referral for meds and/or therapy intervention?  b.  Medication supervision? Self-medicating? Taking consistently? Need med check with physician?  Share concerns with physician?  c.  History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns w/PO?"
      aISOfreq[5] = "Patterns #2 & #3: Multiple Isolations on a specific day AND Isolations grouped in intervals.  Note days & intervals.  Pattern #2 Check:  a.  Different schedule? Different Adult? Block schedule? May need consistent schedule w/same adult.  b.  Accommodations/Modifications occurring? More group v. individual instruction? Need warm-up drills or a specific job?  Need a specific lesson routine? c.  Previous night's activities?  Need calming activities before bed?  Need earlier bedtime? Need additional evening structure?  Pattern #3 Check:  a. Cyclic behavior? Review assessment.  Need Mental Health referral for medication and/or therapy intervention?  b.  Medication supervision? Self-medicating? Taking consistently? Need medication check with physician?  Share concerns with physician?  c. History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns w/PO?";
       aISOfreq[6] = "Patterns #1, #2 & #3: Multiple Isolations on Mondays & Tuesdays decreasing to Friday, Multiple Isolations on specific days AND Isolations grouped in intervals.  Note days and intervals.  Pattern #1 Check: a. Medications on weekend?  b. Activities on weekend? Types of activities? Supervision? With whom?   Pattern #2 Check:  a. Different schedule? Adult?  Block schedule?  May need consistent schedule w/same adult.  b.  Accommodations/Modifications occurring? More group v. individual instruction? Need warm-up drills or a specific job?  Need a specific lesson routine? c.  Previous night's activities?  Need calming activities before bed?  Need earlier bedtime? Need additional evening structure?  Pattern #3 Check:  a. Cyclic behavior? Review assessment.  Need Mental Health referral for medication and/or therapy intervention?  b.  Medication supervision? Self-medicating? Taking consistently? Need medication check with physician?  Share concerns with physician?  h.  History of legal/illegal drug abuse?  Share cyclic pattern with physician.  On probation?  Share concerns w/PO?";
       aISOfreq[7] = "No Pattern";
         // Get the selected item, which is the export value of the selected combo box item
        var item = getField("ISO Frequency Pattern").value;
        // Display the text corresponding to the selected item in the text field
        event.value = aISOfreq[item];

    Look at the reference of the richValue property of the Field object. It contains a couple of examples of how it should be done. Also read the reference of the Span object.

  • New Line in EBCDIC file created by receiver file adapter

    Hi mates,
    I've configured the receiver file adapter to create a file in EBCDIC format by specifyin the File encoding 'Cp037'. When the file is viewed on the AS400 system using the command DSPPFM, it appears as a continuous text instead of line-by-line. I've tried specifying 0x0D(CR), 0x0A(LF), 'nl' as the endSeparator for the record type in content conversion, but no luck. Still the file looks like a continuous text.
    I learnt from the following links that the New Line character (NL or NEL) in AS400 is Unicode '0x85'.
    <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4867251">OutputStreamWriter/InputSreamReader convert NEL to linefeed with Cp037 encoding</a>
    <a href="http://search.cpan.org/~guido/libintl-perl-1.16/lib/Locale/RecodeData/IBM037.pm#CHARACTER_TABLE">CHARACTER TABLE</a>
    But when I specify this '0x85' as the endSeparator, I get the error below as 0x85 (decimal equivalent 133) is not part of the standard ascii code i.e. basic 127 codes
    <i>Conversion initialization failed: java.lang.Exception: java.lang.NumberFormatException: Value out of range. Value:"85" Radix:16</i>
    Is there any way I can produce the EBCDIC file with new line as end separator for records?
    I appreciate your inputs.
    thx in adv
    praveen

    Instead of using binary mode for FTP and specifying encoding, endSeparator, I used the text mode and left the translation to the FTP server on AS400 system.
    Desirably, it generated the file with right encoding and new line characters.
    praveen

  • Mail app bug with jumping to new line below signature

    Hi!
    Since day one of using Lion i have this incredibly annoying bug with Mail application.
    I have a formated signature in all my emails. Sometimes when I am composing a mail (or rather replying for one) and when I hit RETURN on keyboard, cursor moves BELOW signature and inserts new line below signature - not in place when it was when I hit RETURN.
    The same is when I have cursor in middle of my message and hit enter. Nothing happens - text ater place when cursor was when I hit enter is staying where it was but cursor moves below signature and enters new line in there.
    Anyone has solution for this?

    Triple-click the word "telnet" in the line below on this page to select the whole line:
    telnet imap.gmail.com 993
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You should almost instantly get three lines of output below what you entered, the last of which is this:
    Escape character is '^]'.
    If there's no output within ten seconds, consider that a failure. If you get something different from the above, please post it in a reply. You can then quit Terminal.

  • "new line" in dictation not working in Outllook for Mac 14.2.4

    Today I tried using dictation and it works except when I give it the commands "new line".
    Again, the dictation is working in all Apple applications.

    Killbygirl,
    I am going to do what I can to help resolve your issue in a timely manner, and what is most easiest for you. Ok lets get started!
    First ensure that you have all software updates installed. You can do this by following the instructions provided here
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh292.html
    Once you have verified that all updates are installed open system preferences, locate Sound which is located in the hardware category. Once located click on Sound and the Sound preference will open. On the top you will see three tabs. Sound Effects, Output, Input. Click on the input tab and in the "Choose a device for sound input" box click on Line in. Also verify that the settings in any audio recording applications that you are using are setup correctly.
    If you have any questions, comments, or concerns please don't hesitate to let me know and I would be happy to be of assistance!

Maybe you are looking for

  • PowerBook G4 Airport Extreme b/g need upgrade to N. Is it possible

    I have a problem trying to upgrade the Airport Extreme on this PowerBook G4. Its running 10.5.8 and has a PowerPC processor. The Airport came with the machine. Its currently suggesting its capable of working on B and G networks. I found this info in

  • How to find Application Server version

    Environemnt details: EBS->R 12.0.6 Database->10.2.0.2 OS->AIX 5.3 All 64-bit How I can find the exact version of the Application server. I just see two directories: /u01/R12/apps/tech_st/10.1.3/ /u01/R12/apps/tech_st/10.1.2/ Please help me out. Regar

  • FRM-40815

    Hi, I get this error when i am submiting concurrent request set. FRM-40815: Variable GLOBAL TEMPLATES_ENABLED does not exist But i don't get this error while logged in as sysadmin. I get this only as normal user. There are some patches recommended by

  • Where can I download missing content of Premiere Elements 7.0?

    Hello everybody, I bought Premiere Elements 7.0 some time ago online via download. And now i found out i am missing content because of following missing files: # File 2: PRE7_WWEFGJ.7z " 512.8 MB # File 3: PRE7_Cont_WWEFGJ.exe - 1.2 MB # File 4: PRE7

  • Mac mini does not recognize external drive

    I have an 80GB external drive full of music files. I disconnected my computer to move to a new house and, with everything re-connected, the mini does not recognize the external drive. I wonder whether it is because the internal drive is nearly full.