<?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: field length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/3753647#M902999</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;lv_var1(4) = 'LOAN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_var1(2) = 'HP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the remaing chararters of variable LV_VAR1 will be blank, now if you don't want to lose these space it depends on where you transfer it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2008 13:21:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-24T13:21:25Z</dc:date>
    <item>
      <title>field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/3753644#M902996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_var1(18) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to assign value "LOAN" and "HP" to this variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it should not compress the value means after LOAN it should add 14 spaces and after hp it should add 16 spaces and store the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to do this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 13:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/3753644#M902996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T13:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/3753645#M902997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the nature of the field being type C, and moving character data to it, the field will be left justified as you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 13:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/3753645#M902997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T13:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/3753646#M902998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think thats possible only using String Data type you can have variable length variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 13:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/3753646#M902998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/3753647#M902999</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;lv_var1(4) = 'LOAN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_var1(2) = 'HP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the remaing chararters of variable LV_VAR1 will be blank, now if you don't want to lose these space it depends on where you transfer it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 13:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/3753647#M902999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: field length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/3753648#M903000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh B,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u assign it to the variable the left space will be blank only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be this code will clear ur doubt...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : lv_var1(18) type c,
      lv_var2(18) type c.

lv_var1+0 = 'LOAN'.

lv_var2+0 = 'AFTER SPACES'.

WRITE : lv_var1 ,lv_var2 .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : lv_var1(18) type c,
      lv_var2(18) type c,
      lv_var3(10) type c.

lv_var1 = 'LOAN'.

lv_var2 = 'AFTER SPACES'.

lv_var3 = lv_var1. " here from 18 to 10 so it will remove extra spaces...

WRITE : lv_var1 ,lv_var2 ,lv_var3,'a' .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 13:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-length/m-p/3753648#M903000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T13:32:25Z</dc:date>
    </item>
  </channel>
</rss>

