<?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 Length Strings. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671937#M1098810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagarajan,&lt;/P&gt;&lt;P&gt;           It really did help a lot....Now the length of the longtext is 5000 but the space is getting appended before the string , while downloading it looksodd.I require the space after the string.&lt;/P&gt;&lt;P&gt;  Any idea as to how to do it...&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2008 02:13:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-15T02:13:07Z</dc:date>
    <item>
      <title>Fixed Length Strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671934#M1098807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;   I have to download a longtext from SAP.&lt;/P&gt;&lt;P&gt;   The length of the longtext has to be fixed 5000 ie...Even if the length of the longtext from SAP is 1000 remaining 4000 spaces should get appended.&lt;/P&gt;&lt;P&gt;  I am moving the long text into a variable l_line which I have declared in the following way L_LINE(5000).&lt;/P&gt;&lt;P&gt;   But after moving the longtext into this variable it still shows the actual length of the longtext whereas I need 5000 fixed length.&lt;/P&gt;&lt;P&gt;  How to solve it.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 01:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671934#M1098807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T01:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Length Strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671935#M1098808</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; There should be something called 'respect' space or something liek that in ECC5.0 and above... not sure.. just check it out... i am in 4.6C now... so cannot do it fro u ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds,&lt;/P&gt;&lt;P&gt;Madan...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 01:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671935#M1098808</guid>
      <dc:creator>madan_ullasa</dc:creator>
      <dc:date>2008-10-15T01:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Length Strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671936#M1098809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renu Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just WRITE the LONG TEXT again in to the variable with RIGHT &lt;/P&gt;&lt;P&gt;JUSTIFIED. It will prefixes SPACEs and STRLEN will return 5000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  WRITE : L_LINE TO L_LINE RIGHT-JUSTIFIED.
  CNT_LEN = STRLEN( L_LINE ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the CNT_LEn will have '5000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While you process the LONG TEXT, just CONDENSE it and go ahead. It will remove LEADING SPACEs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  CONDENSE L_LINE.
  CNT_LEN = STRLEN( L_LINE ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now CNT_LEN will have an actual length.&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;R.Nagarajan.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; We can -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 01:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671936#M1098809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T01:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Length Strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671937#M1098810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagarajan,&lt;/P&gt;&lt;P&gt;           It really did help a lot....Now the length of the longtext is 5000 but the space is getting appended before the string , while downloading it looksodd.I require the space after the string.&lt;/P&gt;&lt;P&gt;  Any idea as to how to do it...&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 02:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671937#M1098810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T02:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Length Strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671938#M1098811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renu Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While processing the data from the file just CONDENSE it and process it as i said earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? Any issue on using this?&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;R.Nagarajan.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt; We can -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 02:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671938#M1098811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T02:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Length Strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671939#M1098812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagarajan,&lt;/P&gt;&lt;P&gt;       When I use condense after the write statement the length becomes the original length of the longtext,and not 5000.Any clue as to how to overcome this...&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 02:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671939#M1098812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T02:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Length Strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671940#M1098813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renu Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want the STRING LENGTH as 5000 irrespective of the&lt;/P&gt;&lt;P&gt;actual length. For this only LEADING SPACEs added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While proceesing this data, if LEADING SPACEs are not wanted, then using CONDESE statement we removed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What else?&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;R.Nagarajan.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt; We can -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 02:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671940#M1098813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T02:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed Length Strings.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671941#M1098814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagarajan,&lt;/P&gt;&lt;P&gt;        Using the above mentioned logic we are making the string length as 5000,but once we use condense the string length becomes the original length from the table.&lt;/P&gt;&lt;P&gt; If we do not use condense spaces are getting appended before the string but the user wants the space appended after the string.&lt;/P&gt;&lt;P&gt;Any idea as to how to do it.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2008 06:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fixed-length-strings/m-p/4671941#M1098814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-15T06:46:59Z</dc:date>
    </item>
  </channel>
</rss>

