<?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 regarding selecting required data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selecting-required-data/m-p/4663642#M1097169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am having first five records from the table by looping it , now the main problem is that i have combinations like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S1[ 93X  1]S2[415X  1]S3[249X  1]S4[230X  2]S5[215X  0]&lt;/P&gt;&lt;P&gt;S1[ 93X  1]S2[415X  0]S3[249X  1]S4[230X  1]&lt;/P&gt;&lt;P&gt;S1[ 93X  1]S2[415X  0]S3[249X  1]&lt;/P&gt;&lt;P&gt;these r the combinations drived from the system with the scrap being 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now what i want is how can i get the best combinations from the above combinations which is having more number of combinations from the above three&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Oct 2008 08:46:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-10T08:46:08Z</dc:date>
    <item>
      <title>regarding selecting required data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selecting-required-data/m-p/4663642#M1097169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am having first five records from the table by looping it , now the main problem is that i have combinations like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S1[ 93X  1]S2[415X  1]S3[249X  1]S4[230X  2]S5[215X  0]&lt;/P&gt;&lt;P&gt;S1[ 93X  1]S2[415X  0]S3[249X  1]S4[230X  1]&lt;/P&gt;&lt;P&gt;S1[ 93X  1]S2[415X  0]S3[249X  1]&lt;/P&gt;&lt;P&gt;these r the combinations drived from the system with the scrap being 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now what i want is how can i get the best combinations from the above combinations which is having more number of combinations from the above three&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 08:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selecting-required-data/m-p/4663642#M1097169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T08:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: regarding selecting required data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selecting-required-data/m-p/4663643#M1097170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I honestly can't understand your question... What "scrap", what "combinations"? Could you explain &lt;STRONG&gt;clearly&lt;/STRONG&gt; what you're trying to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 20:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selecting-required-data/m-p/4663643#M1097170</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2008-10-10T20:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: regarding selecting required data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selecting-required-data/m-p/4663644#M1097171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hopefully I understood your requirement. you need to find your which have more distinct combinations...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT p_final_table ASSIGNING &amp;lt;fs_record&amp;gt;.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;fs_record&amp;gt; TO &amp;lt;fs_comp&amp;gt;.
IF sy-subrc &amp;lt;&amp;gt; 0.
    EXIT.
ENDIF.
lf_buf = &amp;lt;fs_comp&amp;gt;.

CONCATENATE lf_buf lf_line INTO lf_line.
if sy-subrc eq 0.
     if lf_lines CS lf_buf.
       counter = counter + 1. " save this counter in one column in the table.
      endif.
endif.
"need some more code to append and all....
enddo.

sort p_final_table descending.

read table p_final_table into wa_final_table.
if sy-subrc eq 0.
write:/ 'Max combination row =' wa_final_table-field1.....
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 23:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-selecting-required-data/m-p/4663644#M1097171</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-10-10T23:29:48Z</dc:date>
    </item>
  </channel>
</rss>

