<?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: Dynamic Join SAP TABLES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908840#M1482549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to explain more i'm working on an SAP EXTRACTOR and this is the scenario :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the user X chose TABLES and Tables FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i dont know how to join those TABLES to get DATA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Apr 2010 11:40:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-28T11:40:19Z</dc:date>
    <item>
      <title>Dynamic Join SAP TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908837#M1482546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys !! is it possible to join SAP tables dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I explain : a user chose some tables &lt;STRONG&gt;FOR EXAMPLE&lt;/STRONG&gt;  EKKO EKPO EKET.&lt;/P&gt;&lt;P&gt;                   Then some FIELDS from those tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here comes my question how can i join tables dynamically then show contents.&lt;/P&gt;&lt;P&gt;&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;Mehdi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 11:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908837#M1482546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Join SAP TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908838#M1482547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not just let them use SQVI - Quickviewer. If they don't know how to find the tables you could&lt;/P&gt;&lt;P&gt;create info sets for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 11:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908838#M1482547</guid>
      <dc:creator>royolav_johansen</dc:creator>
      <dc:date>2010-04-28T11:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Join SAP TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908839#M1482548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe you can dinamically generate the select as a text ant then use this text generating and runing a temporary subroutine you can se how here ( &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db999535c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db999535c111d1829f0000e829fbfe/content.htm&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you must generate all the subroutine as a code before this but it will work fine if you use the correct parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 11:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908839#M1482548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T11:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Join SAP TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908840#M1482549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to explain more i'm working on an SAP EXTRACTOR and this is the scenario :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the user X chose TABLES and Tables FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i dont know how to join those TABLES to get DATA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 11:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908840#M1482549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T11:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Join SAP TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908841#M1482550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Get all the fields of the tables using FM DDIF_FIELDINFO_GET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. There must be some relation beetween the tables. According to that create a dynamic internal table using the common key fields only and all non key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Create a list of fields to be used in the select query with all non key fields and common key fields. Create join condition string and WHERE conditions string using concatenate statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Create a generic select querie as decribed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  ([FIELD LIST])&lt;/P&gt;&lt;P&gt;  INTO  TABLE [dynamic internal table]&lt;/P&gt;&lt;P&gt;  FROM  ([JOIN CONDITION])&lt;/P&gt;&lt;P&gt;  WHERE (CONDITIONS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, it will work......But needs some time for analysis.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 12:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908841#M1482550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T12:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Join SAP TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908842#M1482551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it is possible using a generated subroutine pool. I used this technic to implement a document search. Here are some relevant lines ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;append 'select distinct ts~tsnummer into table pt_tsnum'        to lt_top.
append '    from /rand/ts_erfasst as ts'                        to lt_top.
append '    where ts~tsnummer in &amp;lt;tsnum&amp;gt;'                       to lt_mid.
append '    and   ts~gescannt in &amp;lt;scadt&amp;gt;'                       to lt_mid.
append '    and   ts~pernr    in &amp;lt;pernr&amp;gt;'                       to lt_mid.
append '    and   ts~tsweek   &amp;gt;= l_week'                        to lt_mid.
l_hex = i_flag.
if  l_hex o l_hx2.
  append '    inner join PA0002 as pa on ts~pernr = pa~pernr'     to lt_top.
  append '                           and pa~endda = ''99991231''' to lt_top.
  append '    and pa~nachn in &amp;lt;nachn&amp;gt;'                            to lt_mid.
  append '    and pa~vorna in &amp;lt;vorna&amp;gt;'                            to lt_mid.
endif.
[...]

GENERATE SUBROUTINE POOL lt_top name m_prog MESSAGE l_top.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 12:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908842#M1482551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-28T12:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Join SAP TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908843#M1482552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still have no solution to my problem :s&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I just linked 2 tables dynamically Header Tables &amp;amp; Item Tables should lik an other Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;                             Header table (EKKO) Item table (EKPO) and an other Table (X) that contain a discription of a field in the item Table&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Like MAKT .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 14:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-join-sap-tables/m-p/6908843#M1482552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-29T14:23:09Z</dc:date>
    </item>
  </channel>
</rss>

