<?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: Sub-routine which passes a table as a parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464323#M832589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goldie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad you like it -:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have wrote a lot of blogs, so next time you need something, browse them first -;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Blag Blogs|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/48024] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2008 22:15:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-27T22:15:55Z</dc:date>
    <item>
      <title>Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464311#M832577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sub-routine which passes a table as a parameter.&lt;/P&gt;&lt;P&gt;This routine is called using different tables at different times.&lt;/P&gt;&lt;P&gt;What I want to do is create a work area for this table in the subroutine.&lt;/P&gt;&lt;P&gt;I tried doing it like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM download TABLES p_down USING p_file.

DATA: wa_tab like line of p_down.
.....
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting a syntax error saying&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt; 
the field 'P_DOWN' specified under LIKE either has no type or a generic type
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody tell me how to create a workarea of these kinds of tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;goldie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 27, 2008 3:54 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 20:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464311#M832577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T20:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464312#M832578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this .&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM download TABLES p_down structure p_file.
 
DATA: wa_tab like line of p_down.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 20:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464312#M832578</guid>
      <dc:creator>SG141</dc:creator>
      <dc:date>2008-02-27T20:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464313#M832579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FORM is being called more than once using different tables.&lt;/P&gt;&lt;P&gt;So I don't think we can use the addition structure/ TYPE.&lt;/P&gt;&lt;P&gt;Unless we can declare some thing like ANY TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think we can do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goldie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 20:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464313#M832579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T20:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464314#M832580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure that P_down is defined..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can simply use    wa_area type p_down...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 20:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464314#M832580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T20:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464315#M832581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI sumeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your idea sounds good.&lt;/P&gt;&lt;P&gt;But, how can we declare P_DOWN as a generic type?&lt;/P&gt;&lt;P&gt;Please tell me if you know how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;goldie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 20:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464315#M832581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T20:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464316#M832582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you use a Field-Symbol...This code works nice -:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: t_spfli TYPE STANDARD TABLE OF spfli.

PERFORM download TABLES t_spfli USING 'C:\Test\Test.txt'.

FORM download TABLES p_down USING p_file.

  FIELD-SYMBOLS: &amp;lt;fs_down&amp;gt; TYPE ANY.
  ASSIGN p_down TO &amp;lt;fs_down&amp;gt;.

ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;FS_DOWN&amp;gt; will have the structure of T_SPFLI...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 21:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464316#M832582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T21:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464317#M832583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your suggestion.&lt;/P&gt;&lt;P&gt;But I am still not able to create a work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM download TABLES p_down USING p_file.
 
  FIELD-SYMBOLS: &amp;lt;fs_down&amp;gt; TYPE ANY.
  ASSIGN p_down TO &amp;lt;fs_down&amp;gt;.
 " DATA: wa_tab LIKE LINE OF &amp;lt;fs&amp;gt;. "

ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me if the statement in quotes is right?&lt;/P&gt;&lt;P&gt;because that is where I am getting the error saying that &lt;/P&gt;&lt;P&gt;" &amp;lt;fs_down&amp;gt; is not an internal table."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;goldie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 21:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464317#M832583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T21:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464318#M832584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goldie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't create a workarea from a field-symbol...So...Why you need a workarea anyway??? Field-Symbols are better and faster...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me do some more tests and write back if I get something new -:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 21:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464318#M832584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T21:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464319#M832585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you are using field symbols, why u require a work area.??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 21:37:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464319#M832585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T21:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464320#M832586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Blag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FORM download uses the method GUI_DOWNLOAD of CL_GUI_FRONTEND_SERVICES&lt;/P&gt;&lt;P&gt;It previously used WS_DOWNLOD.&lt;/P&gt;&lt;P&gt;I changed this, because I am doing unicode conversion.&lt;/P&gt;&lt;P&gt;The tables that are being passed into the form are not compatible with the component DATA_TAB of GUI_DOWNLOAD as a result there was an ABAP DUMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is why I have to create a work area and the create a internal table using that workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I hope your tests are successful and you come up with something that works for me &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goldie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 21:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464320#M832586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T21:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464321#M832587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goldie...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to be sure...Do you need something like this???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Taking good care of Z Data|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3340] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 21:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464321#M832587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T21:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464322#M832588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I want.&lt;/P&gt;&lt;P&gt;I'll try it right away.&lt;/P&gt;&lt;P&gt;Thanks Blag, you r the man!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goldie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 22:09:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464322#M832588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T22:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sub-routine which passes a table as a parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464323#M832589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goldie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad you like it -:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have wrote a lot of blogs, so next time you need something, browse them first -;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Blag Blogs|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/48024] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 22:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-routine-which-passes-a-table-as-a-parameter/m-p/3464323#M832589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-27T22:15:55Z</dc:date>
    </item>
  </channel>
</rss>

