<?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: Function Module for Permutation Combination of 1234 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-permutation-combination-of-1234/m-p/1600283#M269530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i could not  find  such fm.&lt;/P&gt;&lt;P&gt;logic is---&lt;/P&gt;&lt;P&gt;suppose u have 4 digit string.&lt;/P&gt;&lt;P&gt;u can find out the length of string using &amp;lt;b&amp;gt;strln( str)&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;now if  u want to number of possible  combination be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;total no = 4c4 + 4c3 + 4c2 + 4c1 = 2(pow,n) - 1.&lt;/P&gt;&lt;P&gt;where n = lenth of string.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2006 08:01:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-10T08:01:03Z</dc:date>
    <item>
      <title>Function Module for Permutation Combination of 1234</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-permutation-combination-of-1234/m-p/1600282#M269529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ALL,&lt;/P&gt;&lt;P&gt;I have a string suppose for example 1234 and i have to make permutation combination for the given string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 ) By  taking all four word &lt;/P&gt;&lt;P&gt;2 ) By taking any three of them,&lt;/P&gt;&lt;P&gt;3 ) By taking any two of them,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any function module to provide permutation combination of the given string or please provide any logic related to calculate permutation &amp;amp; combination .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards&lt;/P&gt;&lt;P&gt;Shantanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 07:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-permutation-combination-of-1234/m-p/1600282#M269529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T07:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for Permutation Combination of 1234</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-permutation-combination-of-1234/m-p/1600283#M269530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i could not  find  such fm.&lt;/P&gt;&lt;P&gt;logic is---&lt;/P&gt;&lt;P&gt;suppose u have 4 digit string.&lt;/P&gt;&lt;P&gt;u can find out the length of string using &amp;lt;b&amp;gt;strln( str)&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;now if  u want to number of possible  combination be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;total no = 4c4 + 4c3 + 4c2 + 4c1 = 2(pow,n) - 1.&lt;/P&gt;&lt;P&gt;where n = lenth of string.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 08:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-permutation-combination-of-1234/m-p/1600283#M269530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T08:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for Permutation Combination of 1234</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-permutation-combination-of-1234/m-p/1600284#M269531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shantanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no function AFAIK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic should be recursive as follows:&lt;/P&gt;&lt;P&gt;(set are all members like example 1234, N is size of resulting set like all four, three, two; sets are the resulting variations - only all of them is called permutation) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get_variations  importing set N exporting sets;&lt;/P&gt;&lt;P&gt;check N &amp;gt; 0.&lt;/P&gt;&lt;P&gt;for &amp;lt;all members of set&amp;gt; do:&lt;/P&gt;&lt;P&gt;  remove member from set;&lt;/P&gt;&lt;P&gt;  put member to result set;&lt;/P&gt;&lt;P&gt;  get_variations  exporting set N importing partsets; &lt;/P&gt;&lt;P&gt;  put member to all partsets;&lt;/P&gt;&lt;P&gt;  put partsets to resulting sets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the recursive logic. You can use internal tables for the sets. The internal table may have fields that are internal table as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you get it! - it is recursive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW: Post once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 08:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-permutation-combination-of-1234/m-p/1600284#M269531</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-10-10T08:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module for Permutation Combination of 1234</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-permutation-combination-of-1234/m-p/1600285#M269532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please check this function module&lt;/P&gt;&lt;P&gt; RSEC_GENERATE_PASSWORD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Krishnakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2006 08:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-permutation-combination-of-1234/m-p/1600285#M269532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-10T08:20:32Z</dc:date>
    </item>
  </channel>
</rss>

