<?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 Populating a interface with values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707469#M1578701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been asked to populate an export variable that actually references the table type of an interface.  So in SE11 the Zxxxx table type actually uses the reference type definition of a 'Z' interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is to retrun a table of locations and then pass this to parameter e_locations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e_locations = TABLE TYPE OF Zxxxx (and Zxxx = reference type ZIFxxxxx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions is this possible and if so what is the correct syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Feb 2011 14:29:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-15T14:29:08Z</dc:date>
    <item>
      <title>Populating a interface with values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707469#M1578701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been asked to populate an export variable that actually references the table type of an interface.  So in SE11 the Zxxxx table type actually uses the reference type definition of a 'Z' interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is to retrun a table of locations and then pass this to parameter e_locations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e_locations = TABLE TYPE OF Zxxxx (and Zxxx = reference type ZIFxxxxx)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions is this possible and if so what is the correct syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 14:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707469#M1578701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T14:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Populating a interface with values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707470#M1578702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you want to use a table type as an export (import) parameter for a function module?  Declare your table type in the DDIC as 'ZTT_XXXXX...'.  Your function parameter would just be defined using TYPE 'ZTT_XXXXX' in the interface.  In your code, populate an internal table (defined using the table type) with a work area (defined using the line type which also is your Z-table line type).  Assign the internal table to the function parameter in the call.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 14:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707470#M1578702</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-02-15T14:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Populating a interface with values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707471#M1578703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Halo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you have an interface ZINTF&lt;/P&gt;&lt;P&gt;Go to Se11 and create a global table type ZTT_INTF where reference line is ZINTF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your FM the exporting parameter should be type  ZTT_INTF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arshad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2011 21:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707471#M1578703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-06T21:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Populating a interface with values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707472#M1578704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2011 05:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707472#M1578704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-12T05:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Populating a interface with values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707473#M1578705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can declare your parameter as TYPE STANDARD TABLE it will accept any table types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2011 04:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707473#M1578705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-13T04:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Populating a interface with values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707474#M1578706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, what I had to do was to instantiate the class first and then pass the results to my table referencing the interface.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_warehouse into s_warehouse.

    try.
*     Instantiate the warehouse for each record
      call method zcl_warehouse=&amp;gt;make_warehouse         "static method
        exporting
          i_warehouse_no = s_warehouse-warehouse_no
        receiving
          r_warehouse    = lco_warehouse.
    endtry.

*   and then populate the interface with the resulting instances
    append lco_warehouse to rit_locations.

  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 14:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-a-interface-with-values/m-p/7707474#M1578706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T14:25:23Z</dc:date>
    </item>
  </channel>
</rss>

