<?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 shift in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift/m-p/1466696#M219747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having one field called v_ref with length of 18 .&lt;/P&gt;&lt;P&gt;This filed sometimes coming with length 10 and others&lt;/P&gt;&lt;P&gt;spaces in the right handside.Some times with length 13 &lt;/P&gt;&lt;P&gt;and other 5 spaces.I need to populated this field in to &lt;/P&gt;&lt;P&gt;some other fileld without any spaces.When it is 10 I need&lt;/P&gt;&lt;P&gt;to populate in to one field and if it is 13 then I need to&lt;/P&gt;&lt;P&gt;populate in to some other field.Can you please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jul 2006 14:11:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-25T14:11:22Z</dc:date>
    <item>
      <title>shift</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift/m-p/1466696#M219747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having one field called v_ref with length of 18 .&lt;/P&gt;&lt;P&gt;This filed sometimes coming with length 10 and others&lt;/P&gt;&lt;P&gt;spaces in the right handside.Some times with length 13 &lt;/P&gt;&lt;P&gt;and other 5 spaces.I need to populated this field in to &lt;/P&gt;&lt;P&gt;some other fileld without any spaces.When it is 10 I need&lt;/P&gt;&lt;P&gt;to populate in to one field and if it is 13 then I need to&lt;/P&gt;&lt;P&gt;populate in to some other field.Can you please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 14:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift/m-p/1466696#M219747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-25T14:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: shift</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift/m-p/1466697#M219748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check the length using the STRLEN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0001.

data: str1 type string.

data: var1(18) type c.
data: var2(13) type c.

data: len type i.


str1 = 'ABCDEFGHIJK'.

len = strlen( str1 ).

if len &amp;gt; 13.
  var1 = str1.
else.
  var2 = str1.
endif.


write:/ var1.
write:/ var2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 14:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift/m-p/1466697#M219748</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-25T14:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: shift</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift/m-p/1466698#M219749</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;Find the size of the contents and transfer the contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: x_fld is your field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense x_fld no-gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_len = strlen(x_fld).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_len = 10.&lt;/P&gt;&lt;P&gt;  move x_fld to x_fld1&lt;/P&gt;&lt;P&gt;elseif x_len = 13.&lt;/P&gt;&lt;P&gt; move x_fld to x_fld2&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 14:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift/m-p/1466698#M219749</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-25T14:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: shift</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/shift/m-p/1466699#M219750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if there are spaces you can use CONDENSE for clear spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;later you can learn how long is it using STRLEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data sample(18) type c.
data len type i.

sample = ' 1234567890       '.
len = STRLEN( sample ). "len=11
condense sample. "sample = '1234567890'
len = STRLEN( sample ). "len=10

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this will help&lt;/P&gt;&lt;P&gt;thanks ibrahim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jul 2006 14:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/shift/m-p/1466699#M219750</guid>
      <dc:creator>ibrahim_u</dc:creator>
      <dc:date>2006-07-25T14:26:04Z</dc:date>
    </item>
  </channel>
</rss>

