<?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: Help in function modules therotical aspects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398952#M1045745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is true that you should use IMPORT parameters to import data into the function module and use the EXPORT parameter for exporting data from the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is only true from the Function module point of view. So when you look at the function module (SE37) you can define these parameters on different tabs (import, export, changing, tables etc.). However, when you use these FM in a report (or where ever for that matter), you will see that, from the point of view of the report, that the import and export parameters have changed from import to export and export to import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is from the point of view of the report. Because from within the report, you will export data to the FM where these parameters are IMPORTED. From the point of view of the report, you will get back some data (parameters) which are imported into report, but seen from the FM, you will export these parameters. Sounds complicated, but it is just a matter of the point of view you are looking at this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summary:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT in FM = IMPORT in report&lt;/P&gt;&lt;P&gt;IMPORT in FM = EXPORT in report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when defining the FM parameters, you should keep in mind, that IMPORT is what you get from the calling application and EXPORT is what you will give back to the calling application. The imported data you can use (not change) to do a select for example, and you can export the selected data to the calling application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Aug 2008 08:54:39 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2008-08-16T08:54:39Z</dc:date>
    <item>
      <title>Help in function modules therotical aspects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398947#M1045740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some confusion with function modules.So long i believe that IMPORT parameters is what we provide as parameters to&lt;/P&gt;&lt;P&gt;the function module and export parameters is something we take out or referred as output values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen function modules dealing in different ways where &lt;/P&gt;&lt;P&gt;what i stated above holds good as well as cases where instead we provide input to EXPORT parameters and take output from import.Is it true or its my confusion.Can someone let me know the exact standard ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2008 07:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398947#M1045740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-16T07:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help in function modules therotical aspects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398948#M1045741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to explain it with an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this FM call:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      FILENAME                      = p_fil&lt;/P&gt;&lt;P&gt;     FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;     HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  IGNORE_CERR                   = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REPLACEMENT                   = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CHECK_BOM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VIRUS_SCAN_PROFILE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTH_CHECK                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      DATA_TAB                      = it_dummy&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;     FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;     NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;     GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;     INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;     NO_AUTHORITY                  = 6&lt;/P&gt;&lt;P&gt;     UNKNOWN_ERROR                 = 7&lt;/P&gt;&lt;P&gt;     BAD_DATA_FORMAT               = 8&lt;/P&gt;&lt;P&gt;     HEADER_NOT_ALLOWED            = 9&lt;/P&gt;&lt;P&gt;     SEPARATOR_NOT_ALLOWED         = 10&lt;/P&gt;&lt;P&gt;     HEADER_TOO_LONG               = 11&lt;/P&gt;&lt;P&gt;     UNKNOWN_DP_ERROR              = 12&lt;/P&gt;&lt;P&gt;     ACCESS_DENIED                 = 13&lt;/P&gt;&lt;P&gt;     DP_OUT_OF_MEMORY              = 14&lt;/P&gt;&lt;P&gt;     DISK_FULL                     = 15&lt;/P&gt;&lt;P&gt;     DP_TIMEOUT                    = 16&lt;/P&gt;&lt;P&gt;     OTHERS                        = 17&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;Here input values are passed under EXPORTING parameters and output values can be get from the parameters under IMPORTING. Now if u double click on the FM and goto se37 then u can see that all export parameters in FM call are under &lt;STRONG&gt;import&lt;/STRONG&gt;  tab and all import parameters in FM call are under &lt;STRONG&gt;export&lt;/STRONG&gt;  tab. ...this is because...when u r in the FM u r getting values from import tab and results are returned using parameters under import tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM call            Inside FM&lt;/P&gt;&lt;P&gt;Export -&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&amp;gt; Import&lt;/P&gt;&lt;P&gt;Import &amp;lt;----&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt; Export&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2008 07:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398948#M1045741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-16T07:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help in function modules therotical aspects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398949#M1045742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This adds more to confusion than clarity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2008 08:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398949#M1045742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-16T08:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help in function modules therotical aspects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398950#M1045743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can somone better elaborate on the function modules in &lt;/P&gt;&lt;P&gt;general.We often encounter them into use yet  copy-paste of working codes is of no use ,if we do not logically understand them.So i am asking this question once more ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2008 08:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398950#M1045743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-16T08:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help in function modules therotical aspects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398951#M1045744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it was explained quite nicely...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2008 08:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398951#M1045744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-16T08:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help in function modules therotical aspects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398952#M1045745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is true that you should use IMPORT parameters to import data into the function module and use the EXPORT parameter for exporting data from the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is only true from the Function module point of view. So when you look at the function module (SE37) you can define these parameters on different tabs (import, export, changing, tables etc.). However, when you use these FM in a report (or where ever for that matter), you will see that, from the point of view of the report, that the import and export parameters have changed from import to export and export to import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is from the point of view of the report. Because from within the report, you will export data to the FM where these parameters are IMPORTED. From the point of view of the report, you will get back some data (parameters) which are imported into report, but seen from the FM, you will export these parameters. Sounds complicated, but it is just a matter of the point of view you are looking at this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summary:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT in FM = IMPORT in report&lt;/P&gt;&lt;P&gt;IMPORT in FM = EXPORT in report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when defining the FM parameters, you should keep in mind, that IMPORT is what you get from the calling application and EXPORT is what you will give back to the calling application. The imported data you can use (not change) to do a select for example, and you can export the selected data to the calling application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2008 08:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398952#M1045745</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-08-16T08:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help in function modules therotical aspects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398953#M1045746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand now Micky.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2008 08:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398953#M1045746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-16T08:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help in function modules therotical aspects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398954#M1045747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont confuse, I will try to explain u ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see import and export name differs from the prospective of viewing it. &lt;/P&gt;&lt;P&gt;Means..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the programming point of view i.e. from where u will call this function module.. The input parameters are exported to function module right..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so from this program point of view if we mention as export parameters those are importing parameters to Function module Because from program u r exporting input values to function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module is taking these values for proceesing so these are referred as importing parameters from the function modules point of view..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the similar way from program point of view u will get values from function module so here(program) those are referred as import parameters where as function module exports those values so from function module point of view those are export parameters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i am clear..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil Kumar Mutyala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Aug 2008 09:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-in-function-modules-therotical-aspects/m-p/4398954#M1045747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-16T09:04:51Z</dc:date>
    </item>
  </channel>
</rss>

