<?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: Problems with LOOPing internal table defined as type ANY (incoming param.) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669493#M1289296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM DEMO USING ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DEMO USING P TYPE ANY TABLE.&lt;/P&gt;&lt;P&gt;  ...&lt;/P&gt;&lt;P&gt;  READ TABLE P WITH TABLE KEY (KEY) = 'X' INTO WA.&lt;/P&gt;&lt;P&gt;  ...&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link:[example|http://help.sap.com/saphelp_nw04/helpdata/en/9f/db976935c111d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2009 10:05:07 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2009-06-10T10:05:07Z</dc:date>
    <item>
      <title>Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669491#M1289294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having hell of a time trying to LOOP trough an apparently internal table (type h). This is part of the ALV list stuff and is therefore standard code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is declaration part of the code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM start_control USING    value(p_grid_number) TYPE i &lt;/P&gt;&lt;P&gt;CHANGING p_grid_def TYPE ty_griddef &lt;/P&gt;&lt;P&gt;                     p_iouttab TYPE any. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the debugger indicates that this is an STANDARD table. So I should be able to LOOP through the darn thing. Right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I want to activate the my enhancements to the program , I get the message: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"P_IOUTTAB" is neither specified under "TABLES" nor defined as an internal table." &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea as to how to get round this problem? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your input and help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 09:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669491#M1289294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T09:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669492#M1289295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the following addition for table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_iouttab TYPE ANY TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 10:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669492#M1289295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669493#M1289296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM DEMO USING ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DEMO USING P TYPE ANY TABLE.&lt;/P&gt;&lt;P&gt;  ...&lt;/P&gt;&lt;P&gt;  READ TABLE P WITH TABLE KEY (KEY) = 'X' INTO WA.&lt;/P&gt;&lt;P&gt;  ...&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link:[example|http://help.sap.com/saphelp_nw04/helpdata/en/9f/db976935c111d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 10:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669493#M1289296</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-06-10T10:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669494#M1289297</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;Thanks for your reply. My problem is that I cannot change the TYPE declaration as it is part of the SAP standard code. So ANY TABLE declaration is kinda out. So what's the next option if any?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 10:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669494#M1289297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T10:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669495#M1289298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe the form routine (this is sap standard, isnt it?) requires still those stupid tables with header line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 10:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669495#M1289298</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-06-10T10:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669496#M1289299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rainer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I understand well. Do you mean adding / declaring some kinda table with header, somewhere within my Enhancements? I've tried that. That is to say declared an internal table with header line. But when I want to LOOP thru the incoming table (via parameter) I get incompatible type message and all sorts of other wierd messages. This is nuts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes it is part of the SAP standard code. The enhancement is supposed to modify the contents of this incoming internal table defined as type ANY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 10:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669496#M1289299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T10:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669497#M1289300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not really beware of exactly your situatiuon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You want to call a form routine from an include or in another report which is sap standard from your own report? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So just tell a little bit more, the name of the form, the sap standard report and the declaration of your calling code and the declaration of your data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 10:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669497#M1289300</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-06-10T10:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669498#M1289301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;O.k. So here is the deal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main program: SAPLEADS2&lt;/P&gt;&lt;P&gt;my enhancements are going into: INCLUDE LEADS2F04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After FORM start_control USING.... (starting at line 117) I am introducing some ehancements via the ENHANCEMENT and MODIFICATIONS, which should read the incoming internal table, modify some stuff and then let the rest of the program take care of it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 10:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669498#M1289301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T10:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669499#M1289302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how does your loop look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 11:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669499#M1289302</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-06-10T11:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669500#M1289303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Pass p_iouttab to some local internal table and then loop on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 13:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669500#M1289303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T13:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669501#M1289304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is ALV control logic and as such that 'table' parameter is specified as ANY because it could be exactly that. If it was specified as a table it would require a structure and that cannot be statically declared. The routine is called for various table structures, not just one.&lt;/P&gt;&lt;P&gt;In order to access that table and its fields you need to create a local data reference to the external parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the ABAP Help for CREATE DATA dref, or any posting on dynamic table access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ron Sargeant on Jun 10, 2009 6:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 13:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669501#M1289304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T13:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669502#M1289305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Here you can call another subroutine in a Zinclude program as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form Start_Control changing XYZ type any  &lt;/P&gt;&lt;P&gt;                            Exporting  ABC....&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform modify_xyz(ZINCLUDE) changing XYZ if found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Zinclude&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form Modify_XYZ chaning XYZ type any table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can write your logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 16:37:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669502#M1289305</guid>
      <dc:creator>former_member219399</dc:creator>
      <dc:date>2009-06-10T16:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with LOOPing internal table defined as type ANY (incoming param.)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669503#M1289306</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;try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM start_control
  USING value(p_grid_number) TYPE i
  CHANGING p_grid_def TYPE ty_griddef
           p_iouttab TYPE any.

  FIELD-SYMBOLS: &amp;lt;fs_outtab&amp;gt;  TYPE table,
                 &amp;lt;fs_outline&amp;gt; TYPE ANY,
                 &amp;lt;fs_field&amp;gt;   TYPE ANY.

  ASSIGN p_iouttab TO &amp;lt;fs_outtab&amp;gt;.
  CHECK sy-subrc EQ 0.

  LOOP AT &amp;lt;fs_outtab&amp;gt; ASSIGNING &amp;lt;fs_outline&amp;gt;.

    ASSIGN COMPONENT 'column_name' OF STRUCTURE &amp;lt;fs_outline&amp;gt; TO &amp;lt;fs_field&amp;gt;.
    CHECK sy-subrc EQ 0.

    IF &amp;lt;fs_field&amp;gt; EQ ...

  ENDLOOP.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_iouttab must be a table, otherwise you will get a short dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you know the line type of the table, you can use it as the type for &amp;lt;fs_outline&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2009 17:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-looping-internal-table-defined-as-type-any-incoming-param/m-p/5669503#M1289306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-10T17:24:52Z</dc:date>
    </item>
  </channel>
</rss>

