<?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: Reading DB records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-db-records/m-p/5286297#M1219775</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you already know that your Z table will contain few entries , you can still live with this approach &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2009 06:43:08 GMT</pubDate>
    <dc:creator>Sandeep_Panghal</dc:creator>
    <dc:date>2009-03-05T06:43:08Z</dc:date>
    <item>
      <title>Reading DB records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-db-records/m-p/5286296#M1219774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have a scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read a DB table MARA, i will get few records .&lt;/P&gt;&lt;P&gt;now i have to query a Z* table, based on the mara entries, what i got earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in Z* table contains the material, with two extra characters than mara-matnr.&lt;/P&gt;&lt;P&gt;for eg: if mara-matnr = 12345&lt;/P&gt;&lt;P&gt;Z*-matnr can be 1234500 or/and 12345AB like this.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know i can loop through mara entries and select Z* for each of mara entry using like statement.&lt;/P&gt;&lt;P&gt;is there any other better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant use 'for all entries' with 'like' it is giving a sytax error saying this combination cant be used.&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;Best Regards&lt;/P&gt;&lt;P&gt;Amrender Reddy B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 06:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-db-records/m-p/5286296#M1219774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T06:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading DB records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-db-records/m-p/5286297#M1219775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you already know that your Z table will contain few entries , you can still live with this approach &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 06:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-db-records/m-p/5286297#M1219775</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-03-05T06:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading DB records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-db-records/m-p/5286298#M1219776</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;First select the Material from MARA table into itab then,&lt;/P&gt;&lt;P&gt;Build the range..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;Concatenate itab-matnr *' into l_matnr.&lt;/P&gt;&lt;P&gt;R_matnr-SIGn = 'I'.&lt;/P&gt;&lt;P&gt;R_matnr-option ='CP'.&lt;/P&gt;&lt;P&gt;R_matnr = l_matnr.&lt;/P&gt;&lt;P&gt;append r_matnr.&lt;/P&gt;&lt;P&gt;Clear r_matnr.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the range R_MATNR on the Z* table to select the data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 06:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-db-records/m-p/5286298#M1219776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T06:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reading DB records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-db-records/m-p/5286299#M1219777</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;If you can apply any other conditions in Where cause other than MATNR apply that and take all entries of Z table into an internal table and after that you can put the check of mara-matnr* and delete the not required entries,this will reduce hitting DB for every LOOP pass.&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;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 06:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-db-records/m-p/5286299#M1219777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T06:53:45Z</dc:date>
    </item>
  </channel>
</rss>

