<?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: Retrieve multiple data for the same material from one table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-multiple-data-for-the-same-material-from-one-table/m-p/12480194#M2001725</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE ursac INTO &amp;lt;fs_output&amp;gt;-ursac FROM wlk1 WHERE ( quell EQ 3 AND sstat EQ ' ' AND artnr EQ &amp;lt;fs_output&amp;gt;-artnr ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;SINGLE means: I only want one result.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT ursac
       INTO table  @data(my_results) 
       FROM wlk1                   
       WHERE quell EQ 3
       AND sstat EQ ' ' 
       AND artnr EQ  @&amp;lt;fs_output&amp;gt;-artnr .&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Apr 2022 06:28:53 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2022-04-08T06:28:53Z</dc:date>
    <item>
      <title>Retrieve multiple data for the same material from one table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-multiple-data-for-the-same-material-from-one-table/m-p/12480193#M2001724</link>
      <description>&lt;P&gt;HI ALL!&lt;/P&gt;
  &lt;P&gt;I struggling at the moment with the following issue.&lt;/P&gt;
  &lt;P&gt;There is one material that has two different data on a line. TABLE wlk1. It is easier to explain with screenshots.&lt;/P&gt;
  &lt;P&gt;If you can see in Screenshot 1, one material 1000001 (WLK1-ARTNR) has three different data in Module column (WLK1-URSAC). I need to show all of the Module codes in my report. So, I wrote the following code:&lt;/P&gt;
  &lt;P&gt;SELECT SINGLE ursac INTO &amp;lt;fs_output&amp;gt;-ursac FROM wlk1 WHERE ( quell EQ 3 AND sstat EQ ' ' AND artnr EQ &amp;lt;fs_output&amp;gt;-artnr ).&lt;/P&gt;
  &lt;P&gt;With this code, I am only getting the same module code for all 1000001 material entry. However, I need all three data. See Screenshot 2, to see my report result.&lt;/P&gt;
  &lt;P&gt;If any other information or part of the code is needed, I will provide it to you.&lt;/P&gt;
  &lt;P&gt;THANX IN ADVANCE!&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2038520-image.png" /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2038521-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 06:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-multiple-data-for-the-same-material-from-one-table/m-p/12480193#M2001724</guid>
      <dc:creator>former_member797394</dc:creator>
      <dc:date>2022-04-08T06:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve multiple data for the same material from one table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-multiple-data-for-the-same-material-from-one-table/m-p/12480194#M2001725</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE ursac INTO &amp;lt;fs_output&amp;gt;-ursac FROM wlk1 WHERE ( quell EQ 3 AND sstat EQ ' ' AND artnr EQ &amp;lt;fs_output&amp;gt;-artnr ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;SINGLE means: I only want one result.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT ursac
       INTO table  @data(my_results) 
       FROM wlk1                   
       WHERE quell EQ 3
       AND sstat EQ ' ' 
       AND artnr EQ  @&amp;lt;fs_output&amp;gt;-artnr .&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Apr 2022 06:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-multiple-data-for-the-same-material-from-one-table/m-p/12480194#M2001725</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-04-08T06:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve multiple data for the same material from one table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-multiple-data-for-the-same-material-from-one-table/m-p/12480195#M2001726</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;khasanyusupkhujaev&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You are using SELECT SINGLE statement, that by definition returns only one record. Get rid of SINGLE and the SELECT will return all suitable records.&lt;/P&gt;&lt;P&gt;In my opinion SELECT SINGLE must not be used unless you specify the full key in the WERE clause. Otherwise if you need just one record use SELECT UP TO 1 ROWS.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 06:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-multiple-data-for-the-same-material-from-one-table/m-p/12480195#M2001726</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2022-04-08T06:31:27Z</dc:date>
    </item>
  </channel>
</rss>

