<?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 internal table serching.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-serching/m-p/1302087#M158826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends&lt;/P&gt;&lt;P&gt;      I m working on problem in which i need to extract the 2 type of matching records. 1 is 100% matching records from the internal table where 7 out 7 criteria is matching. 2. where 6 out of 7 criteria is matching(90% matching). in both the scenario i need to transfer records in the respective internal tables.. here i have done 50% work by searching 100% matching fields where in 90% matching field my code is not working or i had done some mistake.. please help me to figure out or give me some idea to carry out this task. i m giving you the code.&lt;/P&gt;&lt;P&gt;in my code: first condition is giving me 100% matching where on the sy-subrc ne 0 it triggered second part where i m checking 7 times by dropping one field in each read statment, but it is not working. please help me to sort out this issue. thanx&lt;/P&gt;&lt;P&gt;regards, naim&lt;/P&gt;&lt;P&gt;sort i_bp_p by title initials name_last idnumber idtype f50code rbcode. "acc_num.&lt;/P&gt;&lt;P&gt;data: wa_i_bp_p_read1 like wa_i_bp_p.&lt;/P&gt;&lt;P&gt;loop at i_bp_p into wa_i_bp_p.&lt;/P&gt;&lt;P&gt;     lv_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;     lv_tabix = lv_tabix + 1.&lt;/P&gt;&lt;P&gt;     read table i_bp_p index lv_tabix into wa_i_bp_p_read1&lt;/P&gt;&lt;P&gt;                comparing idnumber&lt;/P&gt;&lt;P&gt;                          idtype&lt;/P&gt;&lt;P&gt;                          title&lt;/P&gt;&lt;P&gt;                          initials&lt;/P&gt;&lt;P&gt;                          name_last&lt;/P&gt;&lt;P&gt;                          f50code&lt;/P&gt;&lt;P&gt;                          rbcode&lt;/P&gt;&lt;P&gt;                          transporting partner&lt;/P&gt;&lt;P&gt;                                       idnumber&lt;/P&gt;&lt;P&gt;                                       idtype&lt;/P&gt;&lt;P&gt;                                       title&lt;/P&gt;&lt;P&gt;                                       initials&lt;/P&gt;&lt;P&gt;                                       name_last&lt;/P&gt;&lt;P&gt;                                       f50code&lt;/P&gt;&lt;P&gt;                                       rbcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       move-corresponding wa_i_bp_p_read1 to i_bp_p100.&lt;/P&gt;&lt;P&gt;       append i_bp_p100.&lt;/P&gt;&lt;P&gt;       clear i_bp_p100.&lt;/P&gt;&lt;P&gt;       move-corresponding wa_i_bp_p to i_bp_p100.&lt;/P&gt;&lt;P&gt;       append i_bp_p100.&lt;/P&gt;&lt;P&gt;       clear i_bp_p100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   elseif sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table i_bp_p index lv_tabix into wa_i_bp_p&lt;/P&gt;&lt;P&gt;                   comparing idnumber&lt;/P&gt;&lt;P&gt;                             title&lt;/P&gt;&lt;P&gt;                             initials&lt;/P&gt;&lt;P&gt;                             name_last&lt;/P&gt;&lt;P&gt;                             f50code&lt;/P&gt;&lt;P&gt;                             rbcode&lt;/P&gt;&lt;P&gt;                             transporting partner&lt;/P&gt;&lt;P&gt;                                          idnumber&lt;/P&gt;&lt;P&gt;                                          title&lt;/P&gt;&lt;P&gt;                                          initials&lt;/P&gt;&lt;P&gt;                                          name_last&lt;/P&gt;&lt;P&gt;                                          f50code&lt;/P&gt;&lt;P&gt;                                          rbcode.&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      move-corresponding wa_i_bp_p_read1 to i_bp_p90.&lt;/P&gt;&lt;P&gt;      append i_bp_p90.&lt;/P&gt;&lt;P&gt;      clear i_bp_p90.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;   elseif sy-subrc ne 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Jun 2006 07:43:35 GMT</pubDate>
    <dc:creator>naimkhans_babi</dc:creator>
    <dc:date>2006-06-04T07:43:35Z</dc:date>
    <item>
      <title>internal table serching..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-serching/m-p/1302087#M158826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends&lt;/P&gt;&lt;P&gt;      I m working on problem in which i need to extract the 2 type of matching records. 1 is 100% matching records from the internal table where 7 out 7 criteria is matching. 2. where 6 out of 7 criteria is matching(90% matching). in both the scenario i need to transfer records in the respective internal tables.. here i have done 50% work by searching 100% matching fields where in 90% matching field my code is not working or i had done some mistake.. please help me to figure out or give me some idea to carry out this task. i m giving you the code.&lt;/P&gt;&lt;P&gt;in my code: first condition is giving me 100% matching where on the sy-subrc ne 0 it triggered second part where i m checking 7 times by dropping one field in each read statment, but it is not working. please help me to sort out this issue. thanx&lt;/P&gt;&lt;P&gt;regards, naim&lt;/P&gt;&lt;P&gt;sort i_bp_p by title initials name_last idnumber idtype f50code rbcode. "acc_num.&lt;/P&gt;&lt;P&gt;data: wa_i_bp_p_read1 like wa_i_bp_p.&lt;/P&gt;&lt;P&gt;loop at i_bp_p into wa_i_bp_p.&lt;/P&gt;&lt;P&gt;     lv_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;     lv_tabix = lv_tabix + 1.&lt;/P&gt;&lt;P&gt;     read table i_bp_p index lv_tabix into wa_i_bp_p_read1&lt;/P&gt;&lt;P&gt;                comparing idnumber&lt;/P&gt;&lt;P&gt;                          idtype&lt;/P&gt;&lt;P&gt;                          title&lt;/P&gt;&lt;P&gt;                          initials&lt;/P&gt;&lt;P&gt;                          name_last&lt;/P&gt;&lt;P&gt;                          f50code&lt;/P&gt;&lt;P&gt;                          rbcode&lt;/P&gt;&lt;P&gt;                          transporting partner&lt;/P&gt;&lt;P&gt;                                       idnumber&lt;/P&gt;&lt;P&gt;                                       idtype&lt;/P&gt;&lt;P&gt;                                       title&lt;/P&gt;&lt;P&gt;                                       initials&lt;/P&gt;&lt;P&gt;                                       name_last&lt;/P&gt;&lt;P&gt;                                       f50code&lt;/P&gt;&lt;P&gt;                                       rbcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       move-corresponding wa_i_bp_p_read1 to i_bp_p100.&lt;/P&gt;&lt;P&gt;       append i_bp_p100.&lt;/P&gt;&lt;P&gt;       clear i_bp_p100.&lt;/P&gt;&lt;P&gt;       move-corresponding wa_i_bp_p to i_bp_p100.&lt;/P&gt;&lt;P&gt;       append i_bp_p100.&lt;/P&gt;&lt;P&gt;       clear i_bp_p100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   elseif sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table i_bp_p index lv_tabix into wa_i_bp_p&lt;/P&gt;&lt;P&gt;                   comparing idnumber&lt;/P&gt;&lt;P&gt;                             title&lt;/P&gt;&lt;P&gt;                             initials&lt;/P&gt;&lt;P&gt;                             name_last&lt;/P&gt;&lt;P&gt;                             f50code&lt;/P&gt;&lt;P&gt;                             rbcode&lt;/P&gt;&lt;P&gt;                             transporting partner&lt;/P&gt;&lt;P&gt;                                          idnumber&lt;/P&gt;&lt;P&gt;                                          title&lt;/P&gt;&lt;P&gt;                                          initials&lt;/P&gt;&lt;P&gt;                                          name_last&lt;/P&gt;&lt;P&gt;                                          f50code&lt;/P&gt;&lt;P&gt;                                          rbcode.&lt;/P&gt;&lt;P&gt;   if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      move-corresponding wa_i_bp_p_read1 to i_bp_p90.&lt;/P&gt;&lt;P&gt;      append i_bp_p90.&lt;/P&gt;&lt;P&gt;      clear i_bp_p90.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;   elseif sy-subrc ne 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 07:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-serching/m-p/1302087#M158826</guid>
      <dc:creator>naimkhans_babi</dc:creator>
      <dc:date>2006-06-04T07:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: internal table serching..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-serching/m-p/1302088#M158827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Copy the contents of i_bp_p into another table say i_bp_p_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First sort i_bp_p_temp by 7 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_bp_p.&lt;/P&gt;&lt;P&gt;read table i_bp_p_temp using KEY addition for the 7 fields.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;sort i_bp_p_temp again .. this time with 6 fields.&lt;/P&gt;&lt;P&gt;do read again.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;sort i_bp_p_temp again .. this time with 5 fields.&lt;/P&gt;&lt;P&gt;do read again.&lt;/P&gt;&lt;P&gt; .&lt;/P&gt;&lt;P&gt; .&lt;/P&gt;&lt;P&gt; .&lt;/P&gt;&lt;P&gt;endloop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this and let me know if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 13:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-serching/m-p/1302088#M158827</guid>
      <dc:creator>nishanthbhandar</dc:creator>
      <dc:date>2006-06-04T13:12:06Z</dc:date>
    </item>
  </channel>
</rss>

