<?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 Please help!!! Help with CA/ Append in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769387#M332313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need to get this done by tomorrow. What I am looking for is suppose I have &lt;/P&gt;&lt;P&gt;a number - XYZ54,  I need to first check if there are 5 digits after xyz, if yes ignore, if no I have to add zeros before so that the number becomes XYZ00054.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me with this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Nina.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Dec 2006 02:07:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-22T02:07:14Z</dc:date>
    <item>
      <title>Please help!!! Help with CA/ Append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769387#M332313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need to get this done by tomorrow. What I am looking for is suppose I have &lt;/P&gt;&lt;P&gt;a number - XYZ54,  I need to first check if there are 5 digits after xyz, if yes ignore, if no I have to add zeros before so that the number becomes XYZ00054.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me with this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Nina.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 02:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769387#M332313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T02:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Please help!!! Help with CA/ Append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769388#M332314</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; Run this sample.&lt;/P&gt;&lt;P&gt;data : st type string value 'XYZ754',&lt;/P&gt;&lt;P&gt;       st1 type string value 'XYZ',&lt;/P&gt;&lt;P&gt;       st2 type string.&lt;/P&gt;&lt;P&gt;data: len type i,&lt;/P&gt;&lt;P&gt;len1 type i,&lt;/P&gt;&lt;P&gt;     off type i.&lt;/P&gt;&lt;P&gt;len = strlen( st ). "5&lt;/P&gt;&lt;P&gt;if st(3) = 'XYZ'.&lt;/P&gt;&lt;P&gt;  len1 = len - 3.&lt;/P&gt;&lt;P&gt;  if len &amp;lt; 8.&lt;/P&gt;&lt;P&gt;    st2 = 'XYZ'.&lt;/P&gt;&lt;P&gt;    off = 8 - len.&lt;/P&gt;&lt;P&gt;    do off times.&lt;/P&gt;&lt;P&gt;      concatenate st2 '0' into st2.&lt;/P&gt;&lt;P&gt;    enddo.&lt;/P&gt;&lt;P&gt;    concatenate st2 st+3(len1) into st2.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  write st2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Vinsa.R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        vinsar chand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        vinsar chand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 02:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769388#M332314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T02:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Please help!!! Help with CA/ Append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769389#M332315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that the first three are always the same,  this code is a little simpler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001.


data: str type string value 'XYZ54'.
data: sub(5) type n.
data: len type i.
data: n_len type i.
data: result type string.

len = strlen( str ).
n_len  = len - 3.
sub = str+3(n_len).

concatenate str+0(3) sub into result.

write:/ result.

&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>Fri, 22 Dec 2006 03:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769389#M332315</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-22T03:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Please help!!! Help with CA/ Append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769390#M332316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich has specified the first assumption that first 3 chars will be XYZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There hides the second assumption. Later part in the string after 3 chars is always numeric. &lt;/P&gt;&lt;P&gt;Just incase, it can be alpha numeric, you might consider using FM: CONVERSION_EXIT_ALPHA_INPUT with the output variable of length 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For numeric cases, Rich's example would just be perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;Correct me if i am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 03:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769390#M332316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T03:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Please help!!! Help with CA/ Append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769391#M332317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is exactly what I was looking for. Thank You so much for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy Holidays!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 14:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769391#M332317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T14:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Please help!!! Help with CA/ Append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769392#M332318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eswar, you are very much correct, my assumptions were that, the first 3 characters we really don't care what they are, but as long as it is 3 characters, and that the next few characters, regardless of length(and must be &amp;lt;= 5) must be numeric,  the code that I have written is VERY speicifc to the data presented, of course, other code could be written to handle more exceptions.&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>Fri, 22 Dec 2006 20:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769392#M332318</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-22T20:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Please help!!! Help with CA/ Append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769393#M332319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the clarification Rich. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Dec 2006 11:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-help-with-ca-append/m-p/1769393#M332319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-23T11:57:17Z</dc:date>
    </item>
  </channel>
</rss>

