<?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: Select Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474964#M1253674</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 you write a select query for your 4 field &lt;/P&gt;&lt;P&gt;from dffkop&lt;/P&gt;&lt;P&gt;and then choose a common field in both dffkop TFKTVOT&lt;/P&gt;&lt;P&gt;then write a select using for all entries and in this select use sub quires( ad exsists....)&lt;/P&gt;&lt;P&gt;but you must have common fields in both tfktvot and zfield.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;R K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2009 09:11:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-10T09:11:00Z</dc:date>
    <item>
      <title>Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474963#M1253673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement on report to get the 4 fields from one &lt;STRONG&gt;dffkop&lt;/STRONG&gt; table like 'program', 'product', 'business area', 'policy' and 1 field from &lt;STRONG&gt;TFKTVOT&lt;/STRONG&gt; i.e. 'text'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this one filed should come inbetween of 4 fields and also this text field  should validate with another field  'main' which is in table &lt;STRONG&gt;zfield&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide me any query in this case...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rama Krishna G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 08:56:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474963#M1253673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T08:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474964#M1253674</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 you write a select query for your 4 field &lt;/P&gt;&lt;P&gt;from dffkop&lt;/P&gt;&lt;P&gt;and then choose a common field in both dffkop TFKTVOT&lt;/P&gt;&lt;P&gt;then write a select using for all entries and in this select use sub quires( ad exsists....)&lt;/P&gt;&lt;P&gt;but you must have common fields in both tfktvot and zfield.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;R K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 09:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474964#M1253674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T09:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474965#M1253675</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;PRE&gt;&lt;CODE&gt;SELECT A~program A~product A~businessarea A~policy B~text
   FROM dffkop AS A
   INNER JOIN TFKTVOT AS B
   ON A~(field) = B~(field)
   INNER JOIN zfield AS C
   ON B~text = c~main
INTO TABLE ITAB
WHERE ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 09:11:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474965#M1253675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T09:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474966#M1253676</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;&lt;/P&gt;&lt;P&gt;1. define 3 internal tables with type of &lt;STRONG&gt;dffkop&lt;/STRONG&gt; another of TFKTVOT type, and 3rd table as final table with all the fields to be displayed in output.&lt;/P&gt;&lt;P&gt;2. Now write 2 selects on above 2 tables and get the rq data.&lt;/P&gt;&lt;P&gt;3. LOOP the first table and READ the 2nd table with the reference field of table 1.&lt;/P&gt;&lt;P&gt;4. append all into final table and display it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 09:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474966#M1253676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T09:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474967#M1253677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Use TYPES to declare these fields.....&lt;/P&gt;&lt;P&gt;TYPES: Begin of t_table,&lt;/P&gt;&lt;P&gt;              program   type dffkop-program,&lt;/P&gt;&lt;P&gt;             product    type dffkop-product,&lt;/P&gt;&lt;P&gt;             business  type dffkop-business,&lt;/P&gt;&lt;P&gt;             main        type zfield-main.&lt;/P&gt;&lt;P&gt;End of t_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_table type standard table of t_table,  -&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;&amp;gt; internal table&lt;/P&gt;&lt;P&gt;        wa_table like line of i_tBle. -&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;&amp;gt; Work Area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks And Regards&lt;/P&gt;&lt;P&gt;Suraj S Nair&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suraj Nair on Apr 10, 2009 11:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 09:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474967#M1253677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T09:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474968#M1253678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what are the keys between tables TFKTVOT and ztable.&lt;/P&gt;&lt;P&gt;Based on that populate an internal table with keys and compare main.&lt;/P&gt;&lt;P&gt;now you need to know what are the keys that you should check for between these tables and dffkop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare your internal table in the sequence you want it to be.&lt;/P&gt;&lt;P&gt;Use into corresponding fields in select query to select these four fields.&lt;/P&gt;&lt;P&gt;Final text can be populated from the intenal table created earlier..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 09:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/5474968#M1253678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T09:43:26Z</dc:date>
    </item>
  </channel>
</rss>

