<?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: Pass dynamic table to function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296910#M1024698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with CHAR or STRING type you can store all types of data.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2008 12:01:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-05T12:01:54Z</dc:date>
    <item>
      <title>Pass dynamic table to function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296907#M1024695</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must pass a dynamic table to a function. My big problem is that one field can have different types... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to pass a table like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;field;value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bkpf-gjahr;2006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bkpf-budat;31.12.2006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bseg-sgtxt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And so... "value" can have different types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I pass this??? Can someone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 11:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296907#M1024695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T11:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pass dynamic table to function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296908#M1024696</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;   Create one internal table with 2 fields of type CHAR and named as field name(30) and field value(255). Then append the data to internal table and pass that table to FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 11:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296908#M1024696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T11:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pass dynamic table to function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296909#M1024697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the "value" field of type CHAR. This will solve your problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 12:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296909#M1024697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T12:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Pass dynamic table to function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296910#M1024698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with CHAR or STRING type you can store all types of data.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 12:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296910#M1024698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T12:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pass dynamic table to function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296911#M1024699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well yout table in your routine you call should be declared of type "any table".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in your routine you can use "loop at component of structure" to acess the fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 12:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296911#M1024699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T12:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pass dynamic table to function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296912#M1024700</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;How can I declare in a function module a table like "any table"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 12:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296912#M1024700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T12:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pass dynamic table to function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296913#M1024701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You just need to declare a importing paramter say IT_MESSAGES as TYPE ANY in the function module. With this you will be able to pass any internal table to this FM irrespective of the format..&lt;/P&gt;&lt;P&gt;However in order to access the internal table contents you'll have to make use of field-symbols...more documentation can be found at the link below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;row&amp;gt; type any, &amp;lt;field&amp;gt; type any.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at lt_itab assigning &amp;lt;row&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  assign component 'BUDAT' of structure &amp;lt;row&amp;gt; to &amp;lt;field&amp;gt;.  " here you can access components either by specifying the index or using the name of the field&lt;/P&gt;&lt;P&gt;  if &amp;lt;field&amp;gt; is assigned. &lt;/P&gt;&lt;P&gt;     write &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Piyush Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 12:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296913#M1024701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T12:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pass dynamic table to function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296914#M1024702</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;Just declare a table in table parameters of function module and don't mention any structure for that table then it will consider as table of any type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check Function module 'REUSE_ALV_GRID_DISPLAY' for your reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2008 12:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pass-dynamic-table-to-function/m-p/4296914#M1024702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-05T12:49:04Z</dc:date>
    </item>
  </channel>
</rss>

