<?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: Top include in Function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826220#M661286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is here when you return from the FM, all data is forgotten. On the other hand, I am not sure that it is worth to write an Fm for a simple SELECT SINGLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would do is to create an internal table with MARA-MATNR and MARA-BISMT and fill it in one go with all lines for these two fields from table MARA. Than whenever I need this information in the program I would just READ TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2007 09:10:56 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2007-09-20T09:10:56Z</dc:date>
    <item>
      <title>Top include in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826215#M661281</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 written a select statment in a FM.I want to retain the values selected so that it is available even when the FM is executed next time.Is it possibe to retain values selected by declaring  the internal table in the TOP include?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rakesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 08:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826215#M661281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T08:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Top include in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826216#M661282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is not possible.&lt;/P&gt;&lt;P&gt;You can try out Export to memeory ID and import from memory in subsequent function calls .&lt;/P&gt;&lt;P&gt;Check syntax of IMPORT/ EXPORT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 08:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826216#M661282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T08:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Top include in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826217#M661283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yah the only solution is either export/inport or sga/gpa parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export/import is best in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 09:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826217#M661283</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-09-20T09:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Top include in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826218#M661284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you declare the internal table in the TOP include, that only means it will be avaliable for each FM in the function group. The internal table will be avaliable, not the data (which is filled with the SELECT statement)!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is when do you execute the FM next time? It it's only a while, you can export the data into the memory, import by the next FM call and you don't need to select again. but it only works if it is still the same user, same session. can you enlight the scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 09:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826218#M661284</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-09-20T09:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Top include in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826219#M661285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is to write a FM which gets the old material no(MARA-BISMT)  for  a given material no.In order to avoid hitting the data base table for each materail enterd in the FM I want to check wheteher an entry for this material no is present in the internal table If an entry is not present then only fetch from MARA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 09:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826219#M661285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T09:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Top include in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826220#M661286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is here when you return from the FM, all data is forgotten. On the other hand, I am not sure that it is worth to write an Fm for a simple SELECT SINGLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would do is to create an internal table with MARA-MATNR and MARA-BISMT and fill it in one go with all lines for these two fields from table MARA. Than whenever I need this information in the program I would just READ TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 09:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826220#M661286</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-09-20T09:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Top include in Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826221#M661287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yah u can do that in the same program. but if u want to retain the details of internal table for another program too, u need to import and export the internal table field values. then only u can do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if u want to retain the internal table values for the next execution, u need to know that the nature of the internal table is for storage of data temporarily and for permanant we need to switch to database table only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can do one thing. u can create a table type in dd and use that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 09:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/top-include-in-function-module/m-p/2826221#M661287</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-09-20T09:11:46Z</dc:date>
    </item>
  </channel>
</rss>

