<?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: passing parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters/m-p/1780495#M336430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the pattern of the function from the PATTERN button of the EDITOR and then just pass the variable names against the parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Subruoutine, you call that using a PERFORM and pass the parameters along with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db979d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db979d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Dec 2006 17:04:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-06T17:04:14Z</dc:date>
    <item>
      <title>passing parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters/m-p/1780494#M336429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how you pass the parameters in function modules and subroutines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 17:00:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters/m-p/1780494#M336429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T17:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters/m-p/1780495#M336430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the pattern of the function from the PATTERN button of the EDITOR and then just pass the variable names against the parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Subruoutine, you call that using a PERFORM and pass the parameters along with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db979d35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db979d35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 17:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters/m-p/1780495#M336430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T17:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters/m-p/1780496#M336431</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;&lt;/P&gt;&lt;P&gt;For Function modules..&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;Example for passing parameter to GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_DOWNLOAD(100) OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                      = 'C:\TEST.TXT'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab                      = T_DOWNLOAD&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FILE_WRITE_ERROR              = 1&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 2&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 3&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 4&lt;/P&gt;&lt;P&gt;   NO_AUTHORITY                  = 5&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 6&lt;/P&gt;&lt;P&gt;   HEADER_NOT_ALLOWED            = 7&lt;/P&gt;&lt;P&gt;   SEPARATOR_NOT_ALLOWED         = 8&lt;/P&gt;&lt;P&gt;   FILESIZE_NOT_ALLOWED          = 9&lt;/P&gt;&lt;P&gt;   HEADER_TOO_LONG               = 10&lt;/P&gt;&lt;P&gt;   DP_ERROR_CREATE               = 11&lt;/P&gt;&lt;P&gt;   DP_ERROR_SEND                 = 12&lt;/P&gt;&lt;P&gt;   DP_ERROR_WRITE                = 13&lt;/P&gt;&lt;P&gt;   UNKNOWN_DP_ERROR              = 14&lt;/P&gt;&lt;P&gt;   ACCESS_DENIED                 = 15&lt;/P&gt;&lt;P&gt;   DP_OUT_OF_MEMORY              = 16&lt;/P&gt;&lt;P&gt;   DISK_FULL                     = 17&lt;/P&gt;&lt;P&gt;   DP_TIMEOUT                    = 18&lt;/P&gt;&lt;P&gt;   FILE_NOT_FOUND                = 19&lt;/P&gt;&lt;P&gt;   DATAPROVIDER_EXCEPTION        = 20&lt;/P&gt;&lt;P&gt;   CONTROL_FLUSH_ERROR           = 21&lt;/P&gt;&lt;P&gt;   OTHERS                        = 22&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For subroutines..&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Single values.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PERFORM DISPLAY_MATERIAL USING V_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DISPLAY_MATERIAL USING LV_MATNR TYPE MATNR.&lt;/P&gt;&lt;P&gt;  WRITE: / LV_MATNR.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: T_MARA LIKE MARA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM DISPLAY_MATERIAL USING T_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DISPLAY_MATERIAL USING LT_MARA LIKE T_MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT LT_MARA.&lt;/P&gt;&lt;P&gt;    WRITE: / LT_MARA-MATNR.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 17:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters/m-p/1780496#M336431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T17:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: passing parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters/m-p/1780497#M336432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To pass parameters in a Function when u go to SE37 and type the program names you need to select the Improt tab where you can define the parameters that you wish to pass.&lt;/P&gt;&lt;P&gt;These variables are the variables which will have to be mentioned in the main program while calling the function.&lt;/P&gt;&lt;P&gt;The Import variables for func will not be changed unless they are exported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while passing the value to the subrouines you can do it by going n mentioning in the Perform and Form statement which will need to be ensured that the variable is either passed by value or by reference. &lt;/P&gt;&lt;P&gt;when in Form clause if the variable is mentioned as passed by value then the value will not be reflected in the main program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess tht is almost rite&lt;/P&gt;&lt;P&gt;hope it helps..................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers &lt;/P&gt;&lt;P&gt;Janak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2006 14:04:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-parameters/m-p/1780497#M336432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-15T14:04:35Z</dc:date>
    </item>
  </channel>
</rss>

