<?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 ftech values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978309#M1160136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj/Mahesh,&lt;/P&gt;&lt;P&gt;As per ur code,select query throws syntax check,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select (key_tab)  into itab from (table-name)&lt;/P&gt;&lt;P&gt;                         where = .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error is key_tab is not an internal table.system reads as internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2009 12:33:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-16T12:33:18Z</dc:date>
    <item>
      <title>Dynamic ftech values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978304#M1160131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; I have a variable,program dynmically stores the database table name in that variable,&lt;/P&gt;&lt;P&gt; i want to fetch key fields of variable and also i need to fetch key fiedl values from the same variable.&lt;/P&gt;&lt;P&gt;and finally move into main internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. is there any select syntax to fetch only key fields of any table without mention seperately fields in select query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 05:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978304#M1160131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T05:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ftech values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978305#M1160132</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;yes, it is possibel  to pick up the key-fields of the table, see the below query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of keytab occurs 0,
        fieldname like dd03l-fieldname,
       end of keytab.

parameters: table like dd03l-tabname.


 select fieldname into table keytab
                  from dd03l
                  where tabname = table
                  and keyflag = 'X'.


loop at keytab.
write:/ keytab-fieldname.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks\&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 06:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978305#M1160132</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-01-16T06:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ftech values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978306#M1160133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mahesh,Thanks for ur suggestion,&lt;/P&gt;&lt;P&gt;as per ur logic,now in that internal table all the key fields are there.&lt;/P&gt;&lt;P&gt;My requirement is i need to fetch values of those key fields from the same variable(acts as table).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 11:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978306#M1160133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T11:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ftech values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978307#M1160134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satya,&lt;/P&gt;&lt;P&gt;Now you have your fields in the int table key tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT (keytab) 
FROM (tab_name) INTO TABLE itab WHERE...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here tab_name contains data base table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Jan 16, 2009 1:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 11:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978307#M1160134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T11:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ftech values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978308#M1160135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, we can do that too, execute this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables: dd03l.

*data: begin of keytab occurs 0,
*        fieldname like dd03l-fieldname,
*       end of keytab.

parameters: table like dd03l-tabname.

select single fieldname into (dd03l-fieldname)
        from dd03l
        where tabname = table
        and  keyflag = 'X'.


select (dd03l-fieldname) into (dd03l-fieldname) from (table).
write: dd03l-fieldname.
endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 11:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978308#M1160135</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-01-16T11:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ftech values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978309#M1160136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj/Mahesh,&lt;/P&gt;&lt;P&gt;As per ur code,select query throws syntax check,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select (key_tab)  into itab from (table-name)&lt;/P&gt;&lt;P&gt;                         where = .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error is key_tab is not an internal table.system reads as internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 12:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978309#M1160136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-16T12:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic ftech values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978310#M1160137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My query returns data for the single key-filed of the selected table.&lt;/P&gt;&lt;P&gt;And I think u can't get the data for all the key-fields of the table at a time as structure of the 'itab'  can't be defined at the run-time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to execute query like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select (keytab) into table itab from (table).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u've to build the dynamic internal table for the selected key-fields.&lt;/P&gt;&lt;P&gt;And for more info, search with 'dynamic internal table' in the forums&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope u got me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards\&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2009 12:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-ftech-values/m-p/4978310#M1160137</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-01-16T12:55:50Z</dc:date>
    </item>
  </channel>
</rss>

