<?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 select without key fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-without-key-fields/m-p/1675697#M298049</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;I have a question, How to select documents when we dont have key fields in the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales orders&lt;/P&gt;&lt;P&gt;eg If we have 3 fields Material , Customer and Sales Org, which are not key fields in table VBAK, What is the best approach to select Sales Documents based on these 3 fields.&lt;/P&gt;&lt;P&gt;please let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Nov 2006 23:40:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-20T23:40:51Z</dc:date>
    <item>
      <title>select without key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-without-key-fields/m-p/1675697#M298049</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;I have a question, How to select documents when we dont have key fields in the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales orders&lt;/P&gt;&lt;P&gt;eg If we have 3 fields Material , Customer and Sales Org, which are not key fields in table VBAK, What is the best approach to select Sales Documents based on these 3 fields.&lt;/P&gt;&lt;P&gt;please let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 23:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-without-key-fields/m-p/1675697#M298049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T23:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: select without key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-without-key-fields/m-p/1675698#M298050</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;Use logic like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbak&lt;SUB&gt;VBELN vbak&lt;/SUB&gt;VKORG vbap&lt;SUB&gt;MATNR vbak&lt;/SUB&gt;KUNNR&lt;/P&gt;&lt;P&gt;             INTO TABLE T_VBAK&lt;/P&gt;&lt;P&gt;             FROM VBAK INNER JOIN VBAP&lt;/P&gt;&lt;P&gt;             ON VBAK&lt;SUB&gt;VBELN = VBAP&lt;/SUB&gt;VBELN&lt;/P&gt;&lt;P&gt;             WHERE VBAK~VKROG IN S_VKORG AND&lt;/P&gt;&lt;P&gt;                           VBAP~MATNR IN S_MATNR AND&lt;/P&gt;&lt;P&gt;                           VBAK~KUNNR IN S_KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ramakrishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ramakrishna Ramisetti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 23:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-without-key-fields/m-p/1675698#M298050</guid>
      <dc:creator>venkata_ramisetti</dc:creator>
      <dc:date>2006-11-20T23:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: select without key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-without-key-fields/m-p/1675699#M298051</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;Providing FIELDS in the WHERE condition normally makes sure that you make a limited and required selection. Even though the fields Material , Customer and Sales Org are not key fields in VBAK, placing  then in the where condition of the select query will definitely help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this clarifies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 23:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-without-key-fields/m-p/1675699#M298051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T23:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: select without key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-without-key-fields/m-p/1675700#M298052</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;Use the table VAPMA...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT MATNR VKORG KUNNR&lt;/P&gt;&lt;P&gt;             INTO TABLE T_VAPMA&lt;/P&gt;&lt;P&gt;             FROM VAPMA&lt;/P&gt;&lt;P&gt;             WHERE MATNR = '1212'&lt;/P&gt;&lt;P&gt;             AND       VKORG = '0100'&lt;/P&gt;&lt;P&gt;             AND       KUNNR  = '212'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 23:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-without-key-fields/m-p/1675700#M298052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T23:45:17Z</dc:date>
    </item>
  </channel>
</rss>

