How to print text in a new line in a text view.

Hi,
I have a situation where I need to print two lines inside a text view.
for eg:     Bye Bye < user name>
              Have a nice day!!
I am assigning this to the context by conactenating   Bye Bye   < user name>   Have a nice day!!.
But the text view prints it a same line.
How can I print Have a nice day!!. in the second line. 
Any suggestions and ideas are welcome and  appreciated.
Thanks and regards.

Hi,
This link will help you to do all the functions in text view using HTML.
[html in text view|http://help.sap.com/saphelp_erp2005/helpdata/en/08/5696420cc2c56ae10000000a155106/content.htm]
Karthik.R

Similar Messages

  • Addind text in a new line within a  text box

    Hi everyone,
    I have a classic text box component that i am using inside
    director. I want to show some text inside this text box in such a
    way that it should come in. For example I am adding "Item 1" ,
    "item 2", " item 3" then every item should be placed in new line.
    I tried using new line symbol ( \ ) it but it didn't worked.
    set member("textbox").text = "Item 1 " & \ & " item
    2" & "Item 3" ---------> this gave me error
    Please suggest how to do this thing.
    Thanks
    Atul Saxena

    Hi Atul,
    Try using 'RETURN'
    set member("textbox").text = "Item 1 " & RETURN & "
    item 2" & RETURN &
    "Item 3" --------->
    Tim
    "Atul Saxena" <[email protected]> wrote in
    message
    news:envfet$dpt$[email protected]..
    > Hi everyone,
    > I have a classic text box component that i am using
    inside director. I
    > want to
    > show some text inside this text box in such a way that
    it should come in.
    > For
    > example I am adding "Item 1" , "item 2", " item 3" then
    every item should
    > be
    > placed in new line.
    >
    > I tried using new line symbol ( \ ) it but it didn't
    worked.
    > set member("textbox").text = "Item 1 " & \ & "
    item 2" & "Item
    > 3" --------->
    > this gave me error
    >
    > Please suggest how to do this thing.
    >
    > Thanks
    > Atul Saxena
    >

  • How to insert new line in a text file

    hi all,
    i wnat to know how can i insert a new line in a text file using java.
    for example i want the formate of the text like this
    1 2 3
    4 5 6
    until now i know only how to insert data but not new line.
    Thanks in advandce

    Hi you can put a new line in a text file using System.getProperty("line.separator"). This implementation will work for every OS.
    import java.io.*;
    class Demo{
    public static void main(String args[]) throws Exception {
    FileWriter fr = new FileWriter("FileDemo.txt");
         fr.write("AAAAAAAAAA");
    fr.write(System.getProperty("line.separator"));
    fr.write("AAAAAAAAAAA");
    fr.close();
    }

  • How to provide space and new line to the text in AI Script

    how to provide space and new line to the text in AI Script

    ?? can you explain better, can you at least add another sentence?
    space
    var mySpace = " ";
    new line
    var newLine = "\n";

  • How to display text everytime  on new line

    hi
    i wana display my text everytime on new line like this
    class1
    earth & atmosphere]
    tell me what i do

    You can also code the lines one at a time:
    sprite(1).line[1] = "class1"
    sprite(1).line[2] = "earth & atmosphere]"
    Depending on the situation, this may or may not be
    preferable. I use both
    this and Mike's method on a regular basis. (Though I usually
    change the
    text on a member basis, rather than on the sprite, seems to
    work better.)

  • How to print the message in 2 lines?

    How to print the message in 2 lines?
    Here i am having it like this... MESSAGE i000(zm) WITH lv_uname.
    here I want to print lv_uname in 2 lines because it lengthy one.
    Thanks,
    Sridhar.

    No man, itas not comming..I am using the below logic to print my message:
        CONCATENATE text-I01 lv_printdate1 text-I02 INTO lv_printname
    SEPARATED BY space.
        MESSAGE i002(zm) WITH lv_printname.
    its printing in a single line...

  • CLIENT_TEXT_IO : cannot insert new line into a text file

    Facts:
    Developer 10g
    AS 10g
    Web utility
    Problem:
    i am traying to
    Open a text file. using CLIENT_TEXT_IO.FOPEN
    insert a record in to a text file using CLIENT_TEXT_IO.PUTF
    insert a new line using chr(10) or CLIENT_TEXT_IO.NEW_LINE
    or CLIENT_TEXT_IO.put_line
    insert the next record
    Close the file.
    all work except insert a new line
    Why !!!
    it was Working fine in 6i, but now in 10g and Webutil is not working
    plz help

    Hi you can put a new line in a text file using System.getProperty("line.separator"). This implementation will work for every OS.
    import java.io.*;
    class Demo{
    public static void main(String args[]) throws Exception {
    FileWriter fr = new FileWriter("FileDemo.txt");
         fr.write("AAAAAAAAAA");
    fr.write(System.getProperty("line.separator"));
    fr.write("AAAAAAAAAAA");
    fr.close();
    }

  • Want to know how to check for new line character in text file

    Hi All,
    I`m trying to read data from text file. However I`m not sure whether the data is in 1st line or nth line. Now I`m trying to read the text from the readline. But if text is "" and not NULL then my code fails. So I want to know how to check for new line character and go to next line to find the data. Please help.
    Thanks
    static int readandwriteFile(Logger logger,String filepath){
              BufferedWriter out = null;
              BufferedReader in = null;
              File fr = null;
              int get_count = 0;
              try     {
              if(new File(filepath).exists())
              fr= new File(filepath);
                        System.out.println("FileName: "+fr);
                   if(fr != null){
    in = new BufferedReader(new FileReader(fr));
                             String text = in.readLine();
                             if(text != null){
                             get_count = Integer.parseInt(text);
                             in.close();
                             else{
                                  get_count = 0;
         else{                    
    out = new BufferedWriter(new FileWriter(filepath));
         out.write("0");
                out.close();
                   }          //Reading of the row count file ended.
              catch(Exception e) {
                   e.printStackTrace();
              finally {
                   try{               if (in != null) {
                             in.close();
              if (out != null) {
                             out.close();
              catch(Exception e) {
                        e.printStackTrace();
              return get_count;
         }

    You are calling the readline() only once which means you are reading only the first line from the file...
    Use a loop (Do-While preferably)
    do{
    //your code
    }while(text == "")

  • How to start a new line in a text field?

    I tried the following formula to break for  a new line but it is not working.
    stringvar notes;
    stringvar newline;
    newline := chr(100);
    replace (notes := {HNO_NOTE_TEXT.NOTE_TEXT}, "\r\n", newline);
    Any suggestions?

    How could I accomplish the following.?
    Current data in the column.
    PREOPERATIVE DIAGNOSES:   1.  Right shoulder rotator cuff tear.   2.  Right shoulder biceps tendon disease with superior labral tearing.      POSTOPERATIVE DIAGNOSES:   1.  Right shoulder rotator cuff tear.   2.  Right shoulder biceps tendon disease with superior labral tearing.      SURGEON:  Jane, Doe, MD      ASSISTANT:  Jane, Doe, PA-C and Bob, Doe MD, orthopedic resident.  The assistance of a physician's assistant was required for limb positioning and placement of anchors.      ANESTHETIC: Interscalene block plus general.      DRAINS:  None.      COUNTS: Sponge and needle count were correct.      MATERIAL FORWARDED TO THE LABORATORY:  None.      OPERATION PERFORMED:   1.  Right shoulder arthroscopic rotator cuff tear.   2.  Right shoulder open subpectoral biceps tenodesis.   3.  Right shoulder subacromial decompression with acromioplasty.   4.  Right shoulder extensive glenohumeral debridement.   
    I would like the following in MS Excel.  I would like to pull the header out into a separate column.
    Header
    NOTE_TEXT
    PREOPERATIVE DIAGNOSES: 
    1.  Right shoulder rotator cuff tear.  2.  Right shoulder biceps tendon disease with superior labral tearing. 
    POSTOPERATIVE DIAGNOSES:
    1.  Right shoulder rotator cuff tear.  2.  Right shoulder biceps tendon disease with superior labral tearing. 

  • JTextArea How do I add text on a new line from Text field

    I want to put each new input from the text field at the start of a new line and keep the previous entries at the start of their
    own line.
    I'm doing this but need help with the new line.
    jTextArea1.setLineWrap(true);
    jTextArea1.setWrapStyleWord(true);
    jTextArea1.setEditable(false);
    public void textProcess()
    System.out.println(sourceref1.getSourceText());
    jTextArea1.setText(jTextArea1.getText()+" "+source.getSourceText());
    The above just keeps adding on the new text until I reach the word wrap limit.
    Thanks

    Maybe you should use the escape character. Anyway, you can consider use append(text:String) instead of getText() everytime.
    Eg:
    jTextArea1.append("\n"+source.getSourceText());

  • New line in a text field

    Hi,
    I have a requirement to display the information like below (in different lines) in a text(long) field, its just plain text.
    Firstname\Last name:
    Address:
    State:
    Zipcode:
    How can i write this in Default value? i tried to use '\n' for a new line, it did not work. Any ideas?

    This can be done by crateing a blank filed and then selecting it.
    Follow below steps.
    Admin >> Application Cutomisation >> Record Type Setup >> Select Record >> New Field
    Select Field type as Web Link , Check Read Only, Hold ALT while type 255
    Thanks...VK
    Edited by: 793773 on Sep 12, 2010 11:40 PM

  • How to print  logo when ever new customer arrises?

    hi friends
    i have range of customers . i have to print logo when ever new customer arrises . if the customer data continues in 2nd page i dont have to print logo. how to get it ?
    regards
    thiru

    hi,
    are you using smartform or script for printing ?
    write the condition in program lines using the control commands ie on change of customer.
    Take separete window for logo and print that in the first page so that if the customer data extend as to next page logo window will not appear in the next window.
    and is there any table maintained for logos and customer details. if its maintained it would be easy to put the condition in the print program itself or else you can hadle it in the form.
    Regards,
    Prathima.

  • Text continues moving horizontally rather than starting a new line in editable text field

    I am trying to make a feed backbox for visitors on my website. I have made the editable text field and scroll bar and set all of my preferences, but when the typing reaches the border on the right of the text field it just continues to type further horizontaly. I can start a new line by pressing enter but I would like it to start a new line on its own when it reaches the boundary. Any help is appreciated.

    assign your textfield's wordWrap property to true.

  • B2CBasket- Sales Order  How to add Vendor partner and new line item of SO

    Hi,
    I want to add the following BEFORE the sales order creation process starts:
    Add a VENDOR partner
    Add a new line item to ORDERADM_I
    I suspect in BADI CRM_ISA_BASKET_ITEMS and CRM_ISA_BASKET_HEAD. I have user 'HEAD' to add extension fields but cant figure the creation of NEW partners and NEW line item.
    regards,
    Dave

    Thank you for feedback Shantoor,
    The CRM_ORDER_MAINTAIN need not be called as this FM is called immediately following almost all of the CRM_ISA_* BADI's.
    For clarification I just want to expand on the solution..
    In all of these BADI's SAP uses the CT_INPUT_FIELDS parameter. This is where you should enter WHICH fields you have made changes to in the exit. CRM_ORDER_MAINTAIN uses the same parameter.
    However the challenge is .. WHAT do you enter in the CT_INPUT_FIELDS. This is where you have to follow a strategy. I yused the following:
    1. Looked where the structure was used in programs/class to see how SAP used it
    2. Set breakpoints at the call of the BADI. Check what CT_INPUT_FIELDS content is (SAP uses same technique)and try and replicate for your new entries.
    I hope this helps those that, like me, battled a bit with the use of these BADI's.

  • Text in " " on new line

    I making app and i end with this.
    String[] strLabel = { "We are, we are, we are made from broken parts"
                                        , "2", "3", "4", "5", "6" };
    I want to continue on new line, but it must show  like that in richTextBox.

    Hi Jacob,
    Thank you for your post.
    Based on your post, it seems your issue is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Could you please clarify your issue? Did you want the text:
    We are, we are, we are made from broken parts or all texts in the strlabel array to show on new lines like the format below in a
    text box control in your application?
    We are
    We are
    we are made from broken parts
    or:
    We are, we are, we are made from broken parts
    2
    3
    4
    5
    6
    If yes, it is out of support range. I suggest you to consult on some development forum based on the type of your app such as
    Windows Forms Forum:http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    If I misunderstood anything, please feel free to let me know.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for