<?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 DOUBT about size range in abap code. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-about-size-range-in-abap-code/m-p/10516921#M1853694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning Gurus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im working with a program developed by other company.&lt;/P&gt;&lt;P&gt;That program creates a number of sequential contract with 4 digits to be concatenate after.&lt;/P&gt;&lt;P&gt;The program uses a Ztable fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field 1 = sequency = 00&lt;/P&gt;&lt;P&gt;field 2 = letter 1&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; A0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result concatenate 00A0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when the program performs the sequence is:&lt;/P&gt;&lt;P&gt;field 1 = sequency = 01&lt;/P&gt;&lt;P&gt;field 2 = letter 1&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; A0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result concatenate 01A0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to the limit:&lt;/P&gt;&lt;P&gt;field 1 = sequency = 99&lt;/P&gt;&lt;P&gt;field 2 = letter 1&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; Z9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result concatenate 99Z9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the people created a new field Letter 2 in table :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when the program performs the sequence is:&lt;/P&gt;&lt;P&gt;field 1 = sequency = 01&lt;/P&gt;&lt;P&gt;field 2 = letter 2&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; A0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But reversed the order of the 'concatenate' to generate new code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result concatenate A001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; however when it reaches the limit: Z999 its necessary create a new field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a logical solution to keep creating new codes with four digits infinitely without touching the program in the future as it has?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because now the user wants to reverse the order of digits (A1 to 1A) to create new ones, but I do not think it is useful because it limits too and need to change the program in the future again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 14:21:20 GMT</pubDate>
    <dc:creator>ronaldo_aparecido</dc:creator>
    <dc:date>2014-08-06T14:21:20Z</dc:date>
    <item>
      <title>DOUBT about size range in abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-about-size-range-in-abap-code/m-p/10516921#M1853694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning Gurus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im working with a program developed by other company.&lt;/P&gt;&lt;P&gt;That program creates a number of sequential contract with 4 digits to be concatenate after.&lt;/P&gt;&lt;P&gt;The program uses a Ztable fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field 1 = sequency = 00&lt;/P&gt;&lt;P&gt;field 2 = letter 1&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; A0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result concatenate 00A0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when the program performs the sequence is:&lt;/P&gt;&lt;P&gt;field 1 = sequency = 01&lt;/P&gt;&lt;P&gt;field 2 = letter 1&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; A0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result concatenate 01A0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to the limit:&lt;/P&gt;&lt;P&gt;field 1 = sequency = 99&lt;/P&gt;&lt;P&gt;field 2 = letter 1&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; Z9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result concatenate 99Z9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the people created a new field Letter 2 in table :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when the program performs the sequence is:&lt;/P&gt;&lt;P&gt;field 1 = sequency = 01&lt;/P&gt;&lt;P&gt;field 2 = letter 2&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; A0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But reversed the order of the 'concatenate' to generate new code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result concatenate A001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; however when it reaches the limit: Z999 its necessary create a new field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a logical solution to keep creating new codes with four digits infinitely without touching the program in the future as it has?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because now the user wants to reverse the order of digits (A1 to 1A) to create new ones, but I do not think it is useful because it limits too and need to change the program in the future again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-about-size-range-in-abap-code/m-p/10516921#M1853694</guid>
      <dc:creator>ronaldo_aparecido</dc:creator>
      <dc:date>2014-08-06T14:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: DOUBT about size range in abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-about-size-range-in-abap-code/m-p/10516922#M1853695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="15940" data-externalid="" data-presence="null" data-userid="78416" data-username="ronaldo.aparecido" href="https://answers.sap.com/people/ronaldo.aparecido"&gt;Ronaldo Aparecido&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you are right, the numbers will "run out" someday &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/978/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;you have to evaluate how many different numbers you need and how many different numbers this solution provides.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more numbers as provided, you have to think about an other solution &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/978/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Stefan Seeburger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-about-size-range-in-abap-code/m-p/10516922#M1853695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-06T14:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: DOUBT about size range in abap code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-about-size-range-in-abap-code/m-p/10516923#M1853696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronaldo,&lt;/P&gt;&lt;P&gt;the total number of distinct combinations with 4 alfa digits is 1.679.616 which is quite a lot, but not unlimited.&lt;/P&gt;&lt;P&gt;You can of course, create different rules for combining your 4 digits in different routines and decide dynamically, which one to use.&lt;/P&gt;&lt;P&gt;or you could simply advance consequently each digit from 0 to Z, whilst skipping those, that matches previous rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The former will keep the pattern at least for a while, but is far more complex to build, where the latter will break the pattern, but is easy to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards - Jörg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-about-size-range-in-abap-code/m-p/10516923#M1853696</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2014-08-06T14:55:57Z</dc:date>
    </item>
  </channel>
</rss>

