<?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: Unknown table type in function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189797#M128194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example.....  here is a program which calls the function module.  Notice that ITAB in the TABLES section is not defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program Code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002.


ranges: r_datum for sy-datum.


call function 'Z_TEST'
     tables
          itab = r_datum.


check sy-subrc  = 0.

&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;Function Module Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

function z_test.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  TABLES
*"      ITAB
*"----------------------------------------------------------------------

* Fill with data
  itab = 'IBT2006010399991231'.
  append itab.


endfunction.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2006 16:52:18 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-01-30T16:52:18Z</dc:date>
    <item>
      <title>Unknown table type in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189794#M128191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try to create a function module, which has one internal table as a result table. The structure is unknown during design time, because the table has the structure like a range table, therefor the fieldtype of the 'low and high' values, depends on the declaration of the calling programm, and is not knowing in the function module during design time.&lt;/P&gt;&lt;P&gt;The function module load the results of a DDIC-Customizingtable and shell fill the sign, option, low and high field of the result table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anybody with an idea how to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 16:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189794#M128191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T16:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown table type in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189795#M128192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, don't enter any type when defining the tables parameter.  It will allow you to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 16:45:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189795#M128192</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-30T16:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown table type in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189796#M128193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this don't work, because you can't fill the fields of the internal table without knowing his fieldname. If i define the table as 'any table', no assignment ist possible, because the table has no structure and therefor no field you can assign to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 16:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189796#M128193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T16:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown table type in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189797#M128194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example.....  here is a program which calls the function module.  Notice that ITAB in the TABLES section is not defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program Code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0002.


ranges: r_datum for sy-datum.


call function 'Z_TEST'
     tables
          itab = r_datum.


check sy-subrc  = 0.

&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;Function Module Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

function z_test.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  TABLES
*"      ITAB
*"----------------------------------------------------------------------

* Fill with data
  itab = 'IBT2006010399991231'.
  append itab.


endfunction.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 16:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189797#M128194</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-30T16:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown table type in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189798#M128195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try Table type "STANDARD TABLE". This will take the dynamic table structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be this will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lanka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 16:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189798#M128195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T16:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown table type in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189799#M128196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, if you know that it will always be a range table, you can access the fields like this in the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

function z_test.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  TABLES
*"      ITAB
*"----------------------------------------------------------------------

  field-symbols: &amp;lt;fs&amp;gt;.

  assign component 1 of structure itab to &amp;lt;fs&amp;gt;.
  &amp;lt;fs&amp;gt; = 'I'.

  assign component 2 of structure itab to &amp;lt;fs&amp;gt;.
  &amp;lt;fs&amp;gt; = 'BT'.

  assign component 3 of structure itab to &amp;lt;fs&amp;gt;.
  &amp;lt;fs&amp;gt; = '20060103'.

  assign component 4 of structure itab to &amp;lt;fs&amp;gt;.
  &amp;lt;fs&amp;gt; = '99991231'.

  append itab.


endfunction.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 16:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189799#M128196</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-30T16:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown table type in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189800#M128197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought to complicated.&lt;/P&gt;&lt;P&gt;I tried abap class cl_abap_typedescr and field_symbols &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Yes thats it !! very easy and working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 17:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189800#M128197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-30T17:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown table type in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189801#M128198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool.  Glad that it worked out for ya.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 17:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189801#M128198</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-30T17:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown table type in function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189802#M128199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool.  Glad that it worked out for ya.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 17:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unknown-table-type-in-function-module/m-p/1189802#M128199</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-30T17:09:22Z</dc:date>
    </item>
  </channel>
</rss>

