<?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: Fixed Width in Notepad in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734501#M1457605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi,
Define line feed like below. 
"Define linefeed.
&lt;PRE&gt;&lt;CODE&gt;DATA line_feed(2) TYPE c VALUE cl_abap_char_utilities=&amp;gt;cr_lf.

LOOP AT it_output INTO fs_output.
  fs_output1+36(4) = fs_output-werks.
  fs_output1+40(25) = fs_output-wort01.
  fs_output1+65(3) = fs_output-wregio.
  fs_output1+68(10) = fs_output-invoice.
  fs_output1+78(2)  = line_feed.         "Pass this way.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Mar 2010 08:22:38 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2010-03-23T08:22:38Z</dc:date>
    <item>
      <title>Fixed Width in Notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734496#M1457600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all i am uploading text file into application server, i want the data that is uploaded in fixed length delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:char_35(35) type c VALUE '                                   '. "35 spaces&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_output INTO fs_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate   &lt;/P&gt;&lt;P&gt;                   char_35&lt;/P&gt;&lt;P&gt;                   fs_output-werks&lt;/P&gt;&lt;P&gt;                   fs_output-wort01&lt;/P&gt;&lt;P&gt;                   fs_output-wregio&lt;/P&gt;&lt;P&gt;                   fs_output-invoice&lt;/P&gt;&lt;P&gt;                   Line_feed&lt;/P&gt;&lt;P&gt;               into FS_output1 separated by htab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   TRANSFER fs_output1 TO filepath.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;With this i'm getting the file with tab delimiter as i gave separated by hextab.&lt;/P&gt;&lt;P&gt;I want to display the data in different positions like fs_output-werks should start from 36, fs_output-wort01 should start from 40, fs_output-wregio should start from 65 like i want to display the txt file in my specified length. So any suggestions on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkat Reddy on Mar 23, 2010 12:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 06:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734496#M1457600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T06:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Width in Notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734497#M1457601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then i think you have to define fs_output1 as TYPE string &amp;amp; use offsets &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
fs_output1 TYPE STRING.

fs_output1+35 = fs_output-werks.
fs_output1+40 = fs_output-werks.
fs_output1+35 = fs_output-wregio.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end do not forget to use the Line Feed .&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>Tue, 23 Mar 2010 06:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734497#M1457601</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-23T06:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Width in Notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734498#M1457602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duplicate post ... Please ignore ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Mar 23, 2010 12:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 06:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734498#M1457602</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-23T06:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Width in Notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734499#M1457603</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;Thks for the prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have chnaged the code as suggested by you but line feed is not supporting, it is saying like. Statement "Line feed" is not defined. Here is my code below data is coming as expecting by in a single line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line_feed  = cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_output INTO fs_output.&lt;/P&gt;&lt;P&gt;fs_output1+36(4) = fs_output-werks.&lt;/P&gt;&lt;P&gt;fs_output1+40(25) = fs_output-wort01.&lt;/P&gt;&lt;P&gt;fs_output1+65(3) = fs_output-wregio.&lt;/P&gt;&lt;P&gt;fs_output1+68(10) = fs_output-invoice.&lt;/P&gt;&lt;P&gt;Line_Feed.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What needs to be done for the Line feed, so that i can get the data in each line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 08:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734499#M1457603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T08:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Width in Notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734500#M1457604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You  already got fs_output1 data in  required format,but where did you use&lt;/P&gt;&lt;P&gt;concatenate statement for line feed ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 08:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734500#M1457604</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-03-23T08:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Width in Notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734501#M1457605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi,
Define line feed like below. 
"Define linefeed.
&lt;PRE&gt;&lt;CODE&gt;DATA line_feed(2) TYPE c VALUE cl_abap_char_utilities=&amp;gt;cr_lf.

LOOP AT it_output INTO fs_output.
  fs_output1+36(4) = fs_output-werks.
  fs_output1+40(25) = fs_output-wort01.
  fs_output1+65(3) = fs_output-wregio.
  fs_output1+68(10) = fs_output-invoice.
  fs_output1+78(2)  = line_feed.         "Pass this way.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 08:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734501#M1457605</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-03-23T08:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Width in Notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734502#M1457606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me make you clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_output INTO fs_output.&lt;/P&gt;&lt;P&gt;fs_output1+36(4) = fs_output-werks.&lt;/P&gt;&lt;P&gt;fs_output1+40(25) = fs_output-wort01.&lt;/P&gt;&lt;P&gt;fs_output1+65(3) = fs_output-wregio.&lt;/P&gt;&lt;P&gt;fs_output1+68(10) = fs_output-invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSFER fs_output1 TO filepath.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Line_Feed.  "Any other way where i can break the line after first loop and so on since line feed is not working.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have total 5 records in my it_output in that when first loop run fs_output1 willl carry the 4 records and when second time loop starts then i need to display the records in second line. I am getting all the records in single line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data is like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;35 spaces&amp;gt;  2145 MS 091454455 2145 MS 09454546....&lt;/P&gt;&lt;P&gt;I want 2145 MS 091454455 &lt;/P&gt;&lt;P&gt;           2145 MS 094545464 in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 08:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734502#M1457606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T08:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Width in Notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734503#M1457607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thks Venkat thks alot for your reply it is solved now. Make me clear why we need to take this line feed as 2 characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 08:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734503#M1457607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-23T08:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Width in Notepad</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734504#M1457608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is not just a line feed. CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF consists of Carriage Return (1 character) &amp;amp; Line Feed (1 character).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence 2 characters &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use CL_ABAP_CHAR_UTILITIES=&amp;gt;NEWLINE which is the constant for LineFeed you have to use 1 character only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 08:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-width-in-notepad/m-p/6734504#M1457608</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-23T08:42:58Z</dc:date>
    </item>
  </channel>
</rss>

