<?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: fix string length? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fix-string-length/m-p/5248874#M1212693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are N (above 300) no of fields in table..........&lt;/P&gt;&lt;P&gt;for  that i m wondering is there any command to fix the length of string as defined in table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 19:22:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-24T19:22:52Z</dc:date>
    <item>
      <title>fix string length?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fix-string-length/m-p/5248872#M1212691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to fix length of character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. if a(10) type 10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  a = hello  b= hi&lt;/P&gt;&lt;P&gt;after concatenating these fields.  i want to 'a' field length should be 10 &amp;amp; after that  from 11 length Hi should be there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 19:15:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fix-string-length/m-p/5248872#M1212691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T19:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: fix string length?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fix-string-length/m-p/5248873#M1212692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: string type string.

string+0(10) = a.

string+11(2) = b.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 19:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fix-string-length/m-p/5248873#M1212692</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-24T19:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: fix string length?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fix-string-length/m-p/5248874#M1212693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are N (above 300) no of fields in table..........&lt;/P&gt;&lt;P&gt;for  that i m wondering is there any command to fix the length of string as defined in table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 19:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fix-string-length/m-p/5248874#M1212693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T19:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: fix string length?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fix-string-length/m-p/5248875#M1212694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: char TYPE char20.
DATA: a TYPE char10 VALUE 'Hello', b TYPE char2 VALUE 'Hi'.
DATA: lv_len TYPE i.

DESCRIBE FIELD a LENGTH lv_len IN CHARACTER MODE.
WRITE: lv_len.
DESCRIBE FIELD a LENGTH lv_len IN BYTE MODE.
WRITE: lv_len.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must specify the addition MODE in Unicode programs.&lt;/P&gt;&lt;P&gt; The variant with the addition IN BYTE MODE determines &lt;/P&gt;&lt;P&gt; the length of the data object dobj in bytes. The variant&lt;/P&gt;&lt;P&gt;  with the addition IN CHARACTER MODE determines the &lt;/P&gt;&lt;P&gt;  length of the data object dobj in characters. When &lt;/P&gt;&lt;P&gt;    using IN CHARACTER MODE, the data type of dobj must &lt;/P&gt;&lt;P&gt;  be flat and character-type. You can only specify &lt;/P&gt;&lt;P&gt;  IN BYTE MODE for deep data types and in this case, &lt;/P&gt;&lt;P&gt;   the length of the reference (8 bytes) is determined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the help on Write statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE [AT] [/][pos][(len|*|**)] dobj 
      [int_format_options] 
      [ext_format_options] 
      [list_elements] 
      [QUICKINFO info].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 19:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fix-string-length/m-p/5248875#M1212694</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-24T19:29:14Z</dc:date>
    </item>
  </channel>
</rss>

