<?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 problem in using methods of interface in a class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434253#M1411402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while using the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;method ZIF_INTERFACE~SELECT_METHOD.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  *select * from mara into table it_mara*&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;where matnr between p_matnr_low and p_matnr_high.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endmethod.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error generated : "IT_MARA" is not an internal table - the "OCCURS n" specification is missing	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;although i hav declared it_mara in parameter section while creating interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly Suggest.&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2009 08:20:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-08T08:20:33Z</dc:date>
    <item>
      <title>problem in using methods of interface in a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434253#M1411402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while using the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;method ZIF_INTERFACE~SELECT_METHOD.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  *select * from mara into table it_mara*&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;where matnr between p_matnr_low and p_matnr_high.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endmethod.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error generated : "IT_MARA" is not an internal table - the "OCCURS n" specification is missing	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;although i hav declared it_mara in parameter section while creating interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly Suggest.&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 08:20:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434253#M1411402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T08:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using methods of interface in a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434254#M1411403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you define the parameter, you should define it TYPE Zxxx where Zxxx is an internal table (with OCCURS clause), else this is a single field/structure. Define your own or use a type-pools or a table type like EXPO_MARA_T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 08:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434254#M1411403</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-12-08T08:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using methods of interface in a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434255#M1411404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to declare your parameter as reference to a table type. Pls declare it_mara TYPE MARA_TT where MARA_TT is a table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sathar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 08:32:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434255#M1411404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T08:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using methods of interface in a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434256#M1411405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hav defined in paramter in this manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter   type           typing method      associated type&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;it_mara       exporting     type                      mara.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but its generating problem..that i cant use it as internal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 11:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434256#M1411405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T11:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using methods of interface in a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434257#M1411406</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 a tabletype in SE11.&lt;/P&gt;&lt;P&gt;Choose datatype radiobutton, give the name, like ZZMARA and click create.&lt;/P&gt;&lt;P&gt;Choose the tabletype from the popup and enter&lt;/P&gt;&lt;P&gt;Give MARA to the type of the line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save and activate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And of course use it in your method's parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 12:09:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434257#M1411406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T12:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using methods of interface in a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434258#M1411407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I hav defined in paramter in this manner.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; parameter   type           typing method      associated type&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;it_mara       exporting     type                      mara.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; but its generating problem..that i cant use it as internal&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, read the ABAP help, and SAP Help, specifically about "table types".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this context &lt;STRONG&gt;mara&lt;/STRONG&gt; is NOT a table type.  It is a structure.  As everyone has so far suggested: &lt;STRONG&gt;use a table type&lt;/STRONG&gt;.  You have a few choices&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Define an appropriate table type in your class&lt;/P&gt;&lt;P&gt;2. Define an appropriate table type in the data dictionary&lt;/P&gt;&lt;P&gt;3. Use an appropriate table type already defined in the data dictionary&lt;/P&gt;&lt;P&gt;4. Define it_mara in the method, as being TYPE STANDARD TABLE, and define its actual type in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 12:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434258#M1411407</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-12-08T12:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem in using methods of interface in a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434259#M1411408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;Thanks A lot.&lt;/P&gt;&lt;P&gt;Problem has been solved now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 12:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-methods-of-interface-in-a-class/m-p/6434259#M1411408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T12:54:05Z</dc:date>
    </item>
  </channel>
</rss>

