<?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 Tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-tables/m-p/6557196#M1430647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check out the code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  linetype TYPE string,
  itabref TYPE REF TO data,
  lineref TYPE REF TO data.
FIELD-SYMBOLS: 
  &amp;lt;fs&amp;gt; TYPE STANDARD TABLE,
  &amp;lt;fs1&amp;gt; TYPE ANY.
PARAMETER tbl LIKE rsrd1-tbma_val.

linetype = tbl.

CREATE DATA itabref TYPE STANDARD TABLE OF (linetype).
ASSIGN itabref-&amp;gt;* TO &amp;lt;fs&amp;gt; .
CREATE DATA lineref LIKE LINE OF &amp;lt;fs&amp;gt;.
ASSIGN lineref-&amp;gt;* TO &amp;lt;fs1&amp;gt;.
SELECT * FROM (tbl) INTO &amp;lt;fs1&amp;gt;.
  WRITE &amp;lt;fs1&amp;gt;.
ENDSELECT.
SELECT * FROM (tbl) INTO TABLE &amp;lt;fs&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Remi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2010 11:20:35 GMT</pubDate>
    <dc:creator>RemiKaimal</dc:creator>
    <dc:date>2010-02-12T11:20:35Z</dc:date>
    <item>
      <title>Dynamic Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-tables/m-p/6557195#M1430646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello  everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys I have some doubts about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-  when you say dymanic programming is all about create dynamic tables? , what does it  exactly mean ? what for do you need create data object in run time. ??.&lt;/P&gt;&lt;P&gt;2. what does the symbol  -&amp;gt;*  means , i saw it  in a example  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;** Assign the dynamic table reference to a field-symbol
  ASSIGN dy_line-&amp;gt;* TO &amp;lt;dyn_wa&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but is only used for that ?? . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank very much from someone who really want to understand this stuff.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 11:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-tables/m-p/6557195#M1430646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-12T11:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-tables/m-p/6557196#M1430647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check out the code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  linetype TYPE string,
  itabref TYPE REF TO data,
  lineref TYPE REF TO data.
FIELD-SYMBOLS: 
  &amp;lt;fs&amp;gt; TYPE STANDARD TABLE,
  &amp;lt;fs1&amp;gt; TYPE ANY.
PARAMETER tbl LIKE rsrd1-tbma_val.

linetype = tbl.

CREATE DATA itabref TYPE STANDARD TABLE OF (linetype).
ASSIGN itabref-&amp;gt;* TO &amp;lt;fs&amp;gt; .
CREATE DATA lineref LIKE LINE OF &amp;lt;fs&amp;gt;.
ASSIGN lineref-&amp;gt;* TO &amp;lt;fs1&amp;gt;.
SELECT * FROM (tbl) INTO &amp;lt;fs1&amp;gt;.
  WRITE &amp;lt;fs1&amp;gt;.
ENDSELECT.
SELECT * FROM (tbl) INTO TABLE &amp;lt;fs&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Remi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 11:20:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-tables/m-p/6557196#M1430647</guid>
      <dc:creator>RemiKaimal</dc:creator>
      <dc:date>2010-02-12T11:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-tables/m-p/6557197#M1430648</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;1-  When you don't know the table name or structure name unless run time at that time you required dynamic tables.&lt;/P&gt;&lt;P&gt;Ex. Suppose you have one selection screen parameter --&amp;gt;table name, and you want to upload the tables from the any file path.. &lt;/P&gt;&lt;P&gt;In this case you don't know the exact table name unless run time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Field Symbols: It is a data type which don't have any existence unless run time or alone. It just pointing to the memory address of any other variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. ASSIGN dy_line-&amp;gt;* TO &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt;Here dy_line 's data type is DATA. DATA is any one kind of data type which can store any kind values. Sign -&amp;gt;*  means transfer properties of one variable to other variable  .&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;&lt;/P&gt;&lt;P&gt;Subhankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 11:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-tables/m-p/6557197#M1430648</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2010-02-12T11:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-tables/m-p/6557198#M1430649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ASSIGN dy_line-&amp;gt;* TO &amp;lt;dyn_wa&amp;gt;. &lt;/P&gt;&lt;P&gt;The meaning of the above line that you are assigning all the componants of dy_line to field symbol,&lt;/P&gt;&lt;P&gt;like dy_line may be a structre and structre has componants.....!&lt;/P&gt;&lt;P&gt;for eg. ASSIGN dy_line-&amp;gt;field1 TO &amp;lt;dyn_wa&amp;gt;. hear...only field one componant of the line type or structre is assigned to teh field symbol...!&lt;/P&gt;&lt;P&gt;and dynamic programming is not always building internal tables runtime in the the example by Remi Kaimal &lt;/P&gt;&lt;P&gt;you had the DDIC ref. of the table entered by the user...but it may not be the case always...for more complex dynamicity you use RTTS ...ie. runtime type services...just  search on SDN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 11:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-tables/m-p/6557198#M1430649</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-02-12T11:32:01Z</dc:date>
    </item>
  </channel>
</rss>

