<?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 Passing Internal Tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables/m-p/2480133#M558672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a function ZMYFUNCTION belonging to ZMYFUNCTIONGRP function group.  In the TOP include of the group I have the following type declared:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF bundle_struc,
                  exidv  LIKE vekp-exidv,
                  vhilm  LIKE vekp-vhilm,
             END OF bundle_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in my function I declare an internal table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: bundle_hu_tab             TYPE TABLE OF bundle_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then try to pass this table into a FORM using the TABLES option.  My problem is that when I try to use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM MYFORM TABLES p_bundle_hu_tab STRUCTURE bundle_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It says that bundle_struc is unknown.  If I remove the STRUCTURE I can't access any of the fields based by name.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can always add bundle_hu_tab into the TOP include as well, but I'm trying to keep from doing that?  Is there any other way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2007 14:00:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-26T14:00:26Z</dc:date>
    <item>
      <title>Passing Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables/m-p/2480133#M558672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a function ZMYFUNCTION belonging to ZMYFUNCTIONGRP function group.  In the TOP include of the group I have the following type declared:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF bundle_struc,
                  exidv  LIKE vekp-exidv,
                  vhilm  LIKE vekp-vhilm,
             END OF bundle_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in my function I declare an internal table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: bundle_hu_tab             TYPE TABLE OF bundle_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then try to pass this table into a FORM using the TABLES option.  My problem is that when I try to use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM MYFORM TABLES p_bundle_hu_tab STRUCTURE bundle_struc.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It says that bundle_struc is unknown.  If I remove the STRUCTURE I can't access any of the fields based by name.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can always add bundle_hu_tab into the TOP include as well, but I'm trying to keep from doing that?  Is there any other way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 14:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables/m-p/2480133#M558672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T14:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables/m-p/2480134#M558673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Troy, are you sure that you first activated the TOP include so your function module knows what global data is available?  (or activated all inactive includes together for your FM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should have no problem with visibility of the structure if it is in the TOP include and it is first activated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 14:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables/m-p/2480134#M558673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T14:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables/m-p/2480135#M558674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;   The TOP include is activated.  The only part not active is my function module because of the error.  The error says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field "BUNDLE_STRUC" is unknown.  It is neither in one of the specified tables nor defined by a DATA statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 14:43:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables/m-p/2480135#M558674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T14:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables/m-p/2480136#M558675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi troy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Instead of declaring in the top include,&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;  create a structure of it,&lt;/P&gt;&lt;P&gt;   in DATA DICTIONARY thru se11.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. then it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit mittal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 14:52:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables/m-p/2480136#M558675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T14:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables/m-p/2480137#M558676</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;Declare Table Type as follows,&lt;/P&gt;&lt;P&gt;TYPES: ty_bundle_hu_tab TYPE TABLE OF bundle_struc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and while passing use&lt;/P&gt;&lt;P&gt;FORM MYFORM TABLES p_bundle_hu_tab TYPE ty_bundle_hu_tab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjit Thakur.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please Mark The Helpful Answer.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 14:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-internal-tables/m-p/2480137#M558676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T14:52:56Z</dc:date>
    </item>
  </channel>
</rss>

