<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PROBLEM CREATING FILE WITH CRLF AND WHITESPACES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956112#M1155500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I follow your instructions but the rsult is the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mini program that I created is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;BEGIN OF ty_file,&lt;/P&gt;&lt;P&gt;  data(32),&lt;/P&gt;&lt;P&gt;END OF ty_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;it_file TYPE STANDARD TABLE OF ty_file WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;it_final TYPE STANDARD TABLE OF ty_file WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;wa_file TYPE ty_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_file.&lt;/P&gt;&lt;P&gt;  wa_file-data = it_file-data.&lt;/P&gt;&lt;P&gt;  wa_file-data+30(2) = cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;  APPEND wa_file TO it_final.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET name_archivo FOR OUTPUT IN TEXT MODE ENCODING default.&lt;/P&gt;&lt;P&gt;LOOP AT it_final.&lt;/P&gt;&lt;P&gt;  length = STRLEN( it_final-data ).&lt;/P&gt;&lt;P&gt;  TRANSFER it_final-data TO name_archivo LENGTH length.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET name_archivo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code create a file with the following registers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg1                              #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg2                              #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg3                              #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the data type String of the field Data, in the structure ty_file, I can´t doit the sentence: wa_file-data+30(2) = cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, tell me what is the best form, by in the file don´t appear one register in blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Jan 2009 16:30:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-03T16:30:40Z</dc:date>
    <item>
      <title>PROBLEM CREATING FILE WITH CRLF AND WHITESPACES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956103#M1155491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need create a file, where all the registers have white spaces in the end of the each register. Each record must be 320 characters in length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the end, I need put white spaces (sometimes small, sometimes many),  until comple the lenght&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, this white spaces,.are not reflected in the file created.,. the length reaches where there is information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put the attribute:  cl_abap_char_utilities=&amp;gt;cr_lf, but this character make the following in my file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGISTER1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGISTER2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGISTER3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie, leave a blank line between each record.  &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, say me  what is the better form that solve this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 07:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956103#M1155491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T07:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM CREATING FILE WITH CRLF AND WHITESPACES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956104#M1155492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using offset to while placing the cl_abap_char_utilities=&amp;gt;cr_lf. this might help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 07:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956104#M1155492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T07:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM CREATING FILE WITH CRLF AND WHITESPACES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956105#M1155493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I use  cl_abap_char_utilities=&amp;gt;cr_lf, this character make the following in my file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGISTER1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGISTER2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGISTER3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie, leave a blank line between each record. &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I prevent this line blank ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnak you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 08:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956105#M1155493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T08:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM CREATING FILE WITH CRLF AND WHITESPACES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956106#M1155494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES:
  BEGIN OF t_test,
    eno TYPE char5,
    ename TYPE char10,
    END OF t_test.

DATA:
  i_test TYPE TABLE OF t_test WITH HEADER LINE.

**--Append records
i_test-eno = '100'.
i_test-ename = 'ABC'.
APPEND i_test.
CLEAR i_test.

i_test-eno = '101'.
i_test-ename = 'XYZ'.
APPEND i_test.
CLEAR i_test.

* These two calls are necessary so that trailing
* spaces are not cut at the end of every line.
  PERFORM set_trail_blanks(saplgrap) USING 'X'.

  CALL FUNCTION 'HR_99S_DOWNLOAD'
   EXPORTING
*   P_BIN_FILESIZE                =
     p_initial_directory           = 'H:test1.txt'
*   P_FILENAME                    = p_file+3(lv_str)
     p_filetype                    = 'ASC'
*   P_WRITE_LF                    =
     p_fsdialog                    = space
     p_append                      = space
*   P_ITEM                        = ' '
* IMPORTING
*   P_FILELENGTH                  =
*   P_FULLPATH                    =
    TABLES
      data_tab                      = i_test
   EXCEPTIONS
     file_save_dialog              = 1
     file_write_error              = 2
     no_batch                      = 3
     gui_refuse_filetransfer       = 4
     invalid_type                  = 5
     unknown_error                 = 6
     wrong_tab_format              = 7
     OTHERS                        = 8
            .

  PERFORM set_trail_blanks(saplgrap) USING ' '.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 08:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956106#M1155494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T08:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM CREATING FILE WITH CRLF AND WHITESPACES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956107#M1155495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the import parameters for gui_download&lt;/P&gt;&lt;P&gt;TRUNC_TRAILING_BLANKS &lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;TRUNC_TRAILING_BLANKS_EOL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to retain the trailing blanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 08:29:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956107#M1155495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T08:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM CREATING FILE WITH CRLF AND WHITESPACES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956108#M1155496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I  have done that you sugget, but the result is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGISTER1                                                                                &lt;/P&gt;&lt;P&gt;REGISTER2&lt;/P&gt;&lt;P&gt;                                                                            REGISTER3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How Do it, by all the registers start always in the left ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoiw Do it, by make this in the SAP server ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 08:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956108#M1155496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T08:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM CREATING FILE WITH CRLF AND WHITESPACES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956109#M1155497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRUNC_TRAILING_BLANKS   = 'X'&lt;/P&gt;&lt;P&gt;TRUNC_TRAILING_BLANKS_EOL =  'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can view the result that I need !!  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, now the question is: How I make the same, but creating the file in the application server ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 08:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956109#M1155497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T08:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM CREATING FILE WITH CRLF AND WHITESPACES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956110#M1155498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you are transfering the content to the file line by line, then you dont need to put the carriage return ( cl_abap_char_utilities=&amp;gt;cr_lf ). Each line of the internal table will be created on a new line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 12:06:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956110#M1155498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T12:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM CREATING FILE WITH CRLF AND WHITESPACES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956111#M1155499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading your problem i understand you need to keep the blanks &amp;amp; each register value will have 320 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES:
BEGIN OF ty_file,
  data TYPE string,
END OF ty_file.

DATA: 
it_file TYPE STANDARD TABLE OF ty_file,
wa_file TYPE ty_file.

LOOP AT it_final.
  wa_file-data = wa_final.
  wa_file+320(2) = cl_abap_char_utilities=&amp;gt;cr_lf.

  APPEND wa_file TO it_file.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a sample code. The idea is to create an internal table of TYPE string &amp;amp; use &lt;STRONG&gt;cl_abap_char_utilities=&amp;gt;cr_lf&lt;/STRONG&gt; at 320th position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 12:27:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956111#M1155499</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2008-12-29T12:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROBLEM CREATING FILE WITH CRLF AND WHITESPACES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956112#M1155500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I follow your instructions but the rsult is the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mini program that I created is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;BEGIN OF ty_file,&lt;/P&gt;&lt;P&gt;  data(32),&lt;/P&gt;&lt;P&gt;END OF ty_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;it_file TYPE STANDARD TABLE OF ty_file WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;it_final TYPE STANDARD TABLE OF ty_file WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;wa_file TYPE ty_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_file.&lt;/P&gt;&lt;P&gt;  wa_file-data = it_file-data.&lt;/P&gt;&lt;P&gt;  wa_file-data+30(2) = cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;  APPEND wa_file TO it_final.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET name_archivo FOR OUTPUT IN TEXT MODE ENCODING default.&lt;/P&gt;&lt;P&gt;LOOP AT it_final.&lt;/P&gt;&lt;P&gt;  length = STRLEN( it_final-data ).&lt;/P&gt;&lt;P&gt;  TRANSFER it_final-data TO name_archivo LENGTH length.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET name_archivo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code create a file with the following registers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg1                              #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg2                              #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg3                              #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the data type String of the field Data, in the structure ty_file, I can´t doit the sentence: wa_file-data+30(2) = cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, tell me what is the best form, by in the file don´t appear one register in blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 16:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-creating-file-with-crlf-and-whitespaces/m-p/4956112#M1155500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-03T16:30:40Z</dc:date>
    </item>
  </channel>
</rss>

