Saving the text in text editor changes text line format

In my program I have an output witha  text editor box where
we type in text and save , and if we want to print it it prints it out
on a smartform. When I type in a text on the text editor box for example :
"This will include a policy and best practice for
what files can be stored on the server and where
they should reside. The policy will include
required ownership of each folder and required
authorizations for access to folders. Also
included in the policy will be a section describing
best practices on the file and folder naming
conventions. Anew file struicture of the drive that
better aligns with the business. An drive with only
four folders at the root level also will be de"
After I type in this text in teh text editor and try saving it
, it save sthe text but shows up with lots of gaps like below.
"This will include a policy and best practice for
what files can be stored on the server and
where
they should reside. The policy will include
required ownership of each folder and
required
authorizations for access to folders. Also
included in the policy will be a section
describing
best practices on the file and folder naming
conventions. Anew file struicture of the drive
that
better aligns with the business. An drive with
only
four folders at the root level also will be de"
I am not preety sure why on saving teh typed text it chnages to this format.
I would like to have my program save it as is typed. Is this possible to do so
and how?
Thanks.

Hi Aarav,
Check the internal table used to store the text is having line length 100. Change that to 200 or more . You can see the difference . If still the problem persists, enter each line in the text editor and conclude each line with a carriage return( ENTER ) 
key press.
Hope this will help you.
Regards,
Smart Varghese

Similar Messages

  • Saving the output of a .sql file in .csv format

    Hi,
    I am saving the output of a .sql file in .csv format. But the problem is , the record of few columns have "new line" character in it, so when it is getting saved in .csv format, those records are coming in multiple rows, but they should come in one single row in single block. Please advise how to overcome this problem.
    Regards,
    Niraj

    Hi Guys,
    I guess, there is a misunderstanding.
    He is talking about the issue caused as a result of the data containing a "CRLF" ( Carriage return Line feed ) .
    That is mainly a data issue.
    The query i presume, must be right.
    I guess you should be able to fix it using some string functions.
    Some thing similar to this
    CREATE TABLE ASH (NAME VARCHAR2(10))
    SELECT REPLACE(NAME, CHR(13)||CHR(10), 'ISH') FROM ASH;
    SELECT REPLACE(NAME, CHR(10), 'ISH') FROM ASH;
    SELECT REPLACE(NAME, CHR(13), 'ISH') FROM ASH;
    depending on the type of new line whether it is CR or LF. or CRLF.
    Regards
    Ashish/-

  • Names in Members field under the UNIX Attributes Tab have changed from standard format (i.e. John Doe) to the actual account name (jdoe)

    Hello,
    Names in Members field under the UNIX Attributes Tab have changed from standard format (i.e. John Doe) to the actual account name (jdoe). The only time this happens is if a domain account is deleted and the remnant of the account remains and has to be removed
    manually. However all of the accounts, with the exception of any new ones recently added, now show the account name only. Any ideas on what caused this and how to fix it?
    Thanks :)

    Hi,
    I have not heard from you for some days, currently I am providing the related article for you. Hope this will help you on this matter.
    The UNIX Attributes tab does not appear in the Active Directory Users and Computers MMC snap-in when Server for NIS is installed in the domain
    http://support.microsoft.com/kb/921913/en-us
    Thank you.
    Best regards,
    Steven Song
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • RickTextbox - getting and saving the text to and from SQL server database

    I have no trouble saving the data to an SQL Server database.  Here is a sample of what is saved.
    {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}
    \viewkind4\uc1\pard\f0\fs17 testing the\par
    rich\par
    text box\par
    when I retrieve the text from the database, I end up with exactly what is shown above.  I am retrieving the text with a SqlDataReader.  here is the code that I am using;
    while (sqlDataReader.Read())
    string special_Instructions = ""; //first I was using this line but both lines have the same result // special_Instructions = sqlDataReader["Special_Instructions"].ToString();
    special_Instructions = sqlDataReader.GetString(5);
    special_InstructionsRichTextBox.Rtf = special_Instructions;
    any guidance or help will be greatly appreciated.
    dave

    Michael,
    Lets begin with, 'Thanks for your guidance'. With your last run of questions, I was able to figure it out.
    Here is what I learned, (by the way, this is in Winforms):
    When I checked the properties of the RichTextBox control, I saw and then remembered that the control was bound to the form.  First thing I did was comment out the code I was using (above) to fill the control and tested the program.  I actually
    received the same issue with the contents of the control as before.
    I then dropped a new RichTextBox control from the tool box to my form and positioned it next to the original control.  I un commented the above code and used it to fill the new
    richTextBox1.Rtf and ran the program.  The original control that was bound to the form still gave the incorrect result but the new control worked perfectly.
    I hope this helps others and Thanks again for your guidance.  If there is anything else you think could be added to this reply please let me know.
    dave

  • Saving the Text using save_text FM

    Hi Abap gurus,
           i have to save the text in FB03 transaction.  i found the option called in the menu bar EXTRAS - > TEXTS. i have written the code as :
    *UPDATING THE DOCUMENT NUMBER
        l_header-tdobject = c_object.
        CONCATENATE s_bukrs w_output-belnr s_gjahr INTO l_name SEPARATED BY space.
        l_header-tdname   = l_name.
        l_header-tdid     = c_id.
        l_header-tdspras  = sy-langu.
        CONCATENATE 'GR NUMBER'
                    'GR ITEM NO'
                    'GR QTY'
                    'GR ASSIGN QTY'
                    'RUN DATE'
                    'LTL DATE'
                    INTO l_notes
                    SEPARATED BY space.
        ULINE.
        CONCATENATE w_output-mblnr
                    w_output-buzei
    *               w_output-gr_qty
    *               w_output-gr_assign_qty
                    sy-datum
                    t_ltldate
                    INTO l_notes
                    SEPARATED BY space.
        t_line_save-tdformat = '*'.
        t_line_save-tdline   = l_notes.
        APPEND t_line_save.
    *    CLEAR  t_line_save.
        CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
           client                 = sy-mandt
            header                = l_header
    *   INSERT                = ' '
           savemode_direct        = 'X'
    *   OWNER_SPECIFIED       = ' '
    *   LOCAL_CAT             = ' '
    * IMPORTING
    *   FUNCTION              =
    *   NEWHEADER             =
          TABLES
            lines                 = t_line_save
         EXCEPTIONS
           id                    = 1
           language              = 2
           name                  = 3
           object                = 4
           OTHERS                = 5.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDLOOP.
    my requirement is that
    i have to save header as  GR NUMBER',   'GR ITEM NO' ,     'GR QTY',     'GR ASSIGN QTY' ,   'RUN DATE',        LTL DATE'
                                               10                     20                       30                      15                         02..3.2012          03..03.2012
                                               20                     40                       50                      13                         02..3.2012          03..03.2012 
    how to print the header ?   i am not able to geting using the concatenate statement.

    should be done like the below, shouldn't it?
    data: lv_Gr_qty type char15,
             lv_gr_assign_qty type char15,
             lv_today type char10,
            lv_ltldate type char10.
    CONCATENATE 'GR NUMBER'
                    'GR ITEM NO'
                    'GR QTY'
                    'GR ASSIGN QTY'
                    'RUN DATE'
                    'LTL DATE'
                    INTO t_line_save-tdline
                           SEPARATED by space.
        t_line_save-tdformat = '*'.
        APPEND t_line_save.
       loop at some table into w_output.
          lv_gr_qty = w_output-gr_qty." (put it into char 15 or so).
          lv_gr_assign_qty = w_output-gr_assign_qty. "conver to char field
         write: sy-datum to lv_today mm/dd/yyyy,  "put into correct format.
                    w_output-ltldate  to lv_ltldate mm/dd/yyyy.
        CONCATENATE w_output-mblnr
                                   w_output-buzei
                                   lv_gr_qty            
                                   lv_gr_assign_qty      
                                  lv_today               
                                  lv_ltldate  
                    INTO t_line_save-tdline
                       SEPARATED BY space.
        t_line_save-tdformat = '*'.
         APPEND t_line_save.
        CLEAR  t_line_save.
       endloop.
    then call your save_text.

  • How do I save a document without it saving the text/object box outlines?

    Is it because I'm using the trial that I can't save a document without it showing the outline of every text/object box? I've not selected all, but that's what the saved document looks like...

    You want Pages, not workstations, and you might want to bookmark Lion and MacBook Pro fora.
    http://www.apple.com/support/pages/
    http://www.apple.com/support/lion/
    http://www.apple.com/support/macbookpro/

  • Saving the text in an email attachment

    I would like to store several word documents now on my MacBookPro on my iPhone for reference when I am travelling. I can open the documents as email attachments without difficulty, but can find neither a "save" button on my iPhone or any mention of this is the PDF user's manual. Solutions?

    There is no way to save attachments on the iPhone separate from the email. The iPhone security model only allows files to be read by their respective applications; so the attachment is only accessible by the email program.
    The ony 2 choices you have are:
    1. Create some type of saved mail folder and move the email and attachment there, this depends on the type of email (POP/Exchange/Imap) and may not be an option
    2. Forward your email to somewhere else and let the MacBook pull it down.

  • HP officejet Pro L7590 Prints 1/2 of the text line on several lines of document

    I got an email for diagnosing the printer and I was prompted to install updated drivers and I did that and now when I print the test page I get several lines of text that only prints the top or bottom 1/2 of the letters across the page, I Printed a self test diagnostic Page and it printed everything in pink but it did not print 1/2 letters across the page like the test page,Then I printed a Print quality page and it did the same as the test page and it did the same as the test page, then I tried to calibrate the line feed thinking that may correct the problem but did not, What what can I do ????
    Irven
    This question was solved.
    View Solution.

    Hi mmcmret8,
    Thank you for your reply! It is possible the printheads might need to be changed, at this point I would recommend to please call our phone support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. Country-language selector.
    Best regards!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • How to store data in the text line by line?

    when i write the data into *.txt, the data I wrote before is deleted.
    how can wrote the data into the txt following the existing data?
    how to write data line by line? many thanks!
    my code is like:
    private String text = "i am yanbo du, i am a boy.";
    public BufferWriteMultiKey( ) {         
         try {
              StringTokenizer st = new StringTokenizer(text, " ,.");
              File fil =new File("f.txt");
         //FileWriter fw = new FileWriter(fil);
         //BufferedWriter bw= new BufferedWriter(fw);
         DataOutputStream out = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(fil)));
    while(st.hasMoreTokens())
    String s = st.nextToken();
         //bw.newLine();
         out.writeChars(s);
    out.writeChars("\n");
    out.close();

    use a random access file and append text at the end.
    read the file in line by line using a BufferedReader and store each line in a List of Strings, of course.
    %

  • Issues while saving the Webi Report locally in pdf and Excel Format

    Hi,
    I am getting issues with the images on a Webi Report when I try to save the reports locally on my machine in either a pdf format or in an Excel Format.
    I think the issue is that when I am trying to save the report it saves the address of the image binded in the report but it doesn't save the image/download the image and when the report is opened locally it couldn't refer to the image location.
    I am using BOXIR2 with SP2.8.
    I am not sure what should be the right solution for this. Any insight or resolution will definitely be helpful.

    Hi;
    I would investigate on the load balancer and/or Apache front end servers, are you sure you don't have a keep alive setting enabled somewhere on one of these servers? in the Tomcat connector maybe?
    Regards;
    Lionel
    OUPS BAD THREAD
    Edited by: Lionel Jeanson on Oct 21, 2008 3:30 PM

  • Text lines in the BW query variables screen

    Hi gurus.
    The bw users ask me to display some text lines in the BW query variables prompt.
    The text lines are saved in a custom table.
    The only idea that I've got is to use customer exit text variables and fill them in CMOD when I_step = 1.
    I don't like this solution (I should have more the 10 text lines and so I have to mantain more than 10 Text variables) but I can't find any other solution.
    Any new idea or solution?
    Is there in Bex enviroment a functionality (that I don't know) for doing somenthing like this ?
    Thanks fo any help.
    S.

    Hi,
    to resolve it you should create all the prompts in the BW query. You are using a query with 2 parameters and then a dynamic list of values. the dynamic list of values can only work after you entered the other values.
    Ingo

  • How to print the texts retrived by using READ_TEXT fun module in Smartform

    Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform.
    I have coded all things in the program lines and in that i am retriveing the long texts.
    I am getting the text lines in my internal table clearly, the thing is that I am not able to pass these lines to the text.
    I have to print the trouble ticket. in that the notes log I have to pass.
    its urgent. Points will be rewarded for any type of clue. whether it will work or not.

    There are a few ways to do it. If you need to take all of the text in the text type, in your SF text element choose "Include Text".
    Populate the fields with the data that corresponds to the text type. It is similar to the interface to the FM "Read_Text.
    Text Name
    Text Obje
    Text ID 
    Language
    Encase any variables with the "&" symbol.
    If you have already coded the call to the FM "READ_TEXT" and loaded the text into an internal table, create a loop and loop through the itab. Inside of the loop create a text element and add a variable in the text element for the field you are looking to output.

  • How to calcaulate the text field data

    hi frnds need help,
    how to find difference bet time if i taking  the data  from texts fields data i.e long text
    i called the FM & passed the parameters
    of text data but iam gettin answer as zero
    i hope ur gettin my point

    Hi
    You have to use READ_TEXT fun Module to fetch the Long text data by passing the correct paramters like OBJECT,ID,OBJECTNAME and LANGuage fields
    see the doc
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Why does the text used in Flash file gets cut off in swf?

    Please help.
    I am using some text in FLA and when I test movie or publish swf. I see the end of the last word in the text line cut off.
    I tried putting extra space after that and that solved the problem yesterday but today again I face the same problem and the problem is not getting solved with the same solution.
    Does anybody know why it's happening?
    Please let me know.
    Thanks in advance.

    one query: if file is created relative to Java and Tomcat starts from bin directory, them
    file should have been created in c:\tomcat6\bin\abc.txt,
    NOT at c:\tomcat6\abc.txt
    Am I write?
    --Sujoy                                                                                                                                                                                                                                                                                                                                                                                                               

  • Indent each paragrath in the text

    Hello guys,
    Can you help me out?
    I am creating a program that read from text file A and write to text file B with each new paragraph indented 3 spaces.
    import java.io.*;
              public class Paragraphs {
              // create two File Streams
              public static BufferedReader inFile;
              public static PrintWriter outFile;
              //main method of the program
    public static void main(String[] args) throws IOException {
    // create two file
    inFile = new BufferedReader(new FileReader("his.dat"));
    outFile = new PrintWriter(new FileWriter("d.out"));
    // read file and write it to another
    int b;
              while ((b = inFile.read()) != -1)
    outFile.write(b);
    // close files
    inFile.close();
    outFile.close();
    }

    That's an updated code that reads the text line and outputs it on the screen.
    Still struggling with inserting spaces before the new paragraph begins.
    import java .io.*;
    class IndentAParagraph {
    public static void main (String[] args) {
         try {
         File myFile = new File("h.dat");
              FileReader fileReader = new FileReader(myFile);
              BufferedReader reader = new BufferedReader(fileReader);
              String line = null;
              while ((line = reader.readLine()) != null) {
              System.out.print(line);
         reader.close();
    } catch(Exception ex) {
                   ex.printStackTrace();
    }

Maybe you are looking for

  • "The attempted operation failed. An object could not be found" error when double clicking on an ics file

    Operation System: Windows 8 Pro System Type: 64-bit Operating System Office: MS Office Professional Plus 2013 I am getting "The attempted operation failed. An object could not be found" error when I double click on an .ics file to an appointment to m

  • Ovi Suite can't detect my device

    I have to connect my C6 to Ovi Suite but why is it that Ovi can't detect it? I connected my phone by the use of both USB and Bluetooth, and both won't work. Help please :-( Thanks!

  • Mac OSX 10.5.4 won't install

    Hey, i've got a macbook pro, and every time my automatic update tries to install the new update for the OS, and I always get this message: The Update "Mac Os X Update Combined" can't be installed. The installer could nat validate the contents of the

  • Errror message in Nigeria

    I got an unlocked z10 im nigeria but Im having problems with the de setup. At de warranty stage I get a " No network connection change your settings" message. I have an active wi-fi connection which the device recognizes. But the warranty doesn't loa

  • Photosmart 8450 error print and photo light

    Hi, my printer had been working fine but suddenly just stopped and shows a red light around the big 'print' button and a green light next to 'photo' under the 'paper tray' bit on teh display.  It doesn't turn on or off, the ink cartridges don't move