<?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 Function Module issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472913#M1743811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Guru s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am practicing FM. I am facing two issue&lt;/P&gt;&lt;P&gt;1) In source code if i use "DATA : ITAB_TABLE....." i get an error ITAB_TABLE is already use.&lt;/P&gt;&lt;P&gt;2) iF i use " DATA : A_TABLE......" i am able to activate it and get 1st o/p screen ,however when i insert the reqd info and click on value i didn't get the reqd info, i have attached all screenshot plz tell me Y&amp;nbsp; i am not getting &lt;SPAN style="font-size: 10pt;"&gt;output.&lt;/SPAN&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210031" width="450" /&gt;&lt;SPAN style="font-size: 10pt;"&gt;.....&lt;/SPAN&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210263" width="450" /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210264" width="450" /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210265" width="450" /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210266" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Apr 2013 19:30:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-04-27T19:30:16Z</dc:date>
    <item>
      <title>Function Module issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472913#M1743811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Guru s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am practicing FM. I am facing two issue&lt;/P&gt;&lt;P&gt;1) In source code if i use "DATA : ITAB_TABLE....." i get an error ITAB_TABLE is already use.&lt;/P&gt;&lt;P&gt;2) iF i use " DATA : A_TABLE......" i am able to activate it and get 1st o/p screen ,however when i insert the reqd info and click on value i didn't get the reqd info, i have attached all screenshot plz tell me Y&amp;nbsp; i am not getting &lt;SPAN style="font-size: 10pt;"&gt;output.&lt;/SPAN&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210031" width="450" /&gt;&lt;SPAN style="font-size: 10pt;"&gt;.....&lt;/SPAN&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210263" width="450" /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210264" width="450" /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210265" width="450" /&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210266" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2013 19:30:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472913#M1743811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-27T19:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472914#M1743812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Happy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the reason you are getting the first error because you have already declared a variable with same name in the exporting parameter and in the second case it is not populating&amp;nbsp; with data since you have not assigned the value in the&lt;STRONG&gt; a_table&lt;/STRONG&gt; back to your exporting parameter &lt;STRONG&gt;itab_table&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hope thats clear.......&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;narayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 08:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472914#M1743812</guid>
      <dc:creator>uppu_narayan</dc:creator>
      <dc:date>2013-04-28T08:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472915#M1743813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Happy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you had already declared in one of the parameters in the FM, so no need to declare one more time in the source code.&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 09:05:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472915#M1743813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-28T09:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472916#M1743814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uppa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thax for reply Sir&amp;nbsp; will u plz explain how to &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;assigned the value in the&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt; a_table....&lt;/STRONG&gt;&lt;STRONG style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt; &lt;/STRONG&gt;&lt;STRONG style=": ; color: #333333; font-size: 12px; background-color: #ffffff;"&gt;appreciate ur help&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 13:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472916#M1743814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-28T13:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472917#M1743815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Happy,&lt;/P&gt;&lt;P&gt;While building a function module you need to keep at least the following things in mind:&lt;/P&gt;&lt;P&gt;1) Import parameters: Those variables for which values will be provided at the time of calling the function module.&lt;/P&gt;&lt;P&gt;2) Export parameters: Those variables for which values will be populated and produced as output from the Function Module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So while defining a new FM, if you have already provided ITAB_TABLE in the export parameter, that means it is already declared. You dont need to re-declare it inside the source code once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is why you were getting the error as: "ITAB_TABLE" is already in use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the 2nd case, you declared the table A_TABLE in the source code but you have not given it in the export parameters. FM only shows the export and tables parameters containing outputs after executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here the basic idea is,&lt;/P&gt;&lt;P&gt;Just declare the variable (internal table in your case) inside the export parameter (dont declare it once again in the source code) and then just write the select statement as you did in the source &lt;SPAN style="font-size: 10pt;"&gt;code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hope this helps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 14:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472917#M1743815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-28T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472918#M1743816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Happy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You shouldn't declare variables of same name in a Function Module,&lt;/P&gt;&lt;P&gt;Here you are Declaring ITAB_TABLE as Exporting Parameter as well as Local Table, so You should change name of any one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can solve your second problem of Data not getting filled by doing as below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : itab_temp LIKE kna1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM kan1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO itab_temp &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE kunnr = cust_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab_table = itab_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can even Directly use ITAB_TABLE in the select statement, This will Solve your Problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1410/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Pratheek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 15:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472918#M1743816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-28T15:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472919#M1743817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI happy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In export parameter u have declared itab_table right, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; that is not a internal table that is work area&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; u have to define Itab_table in tables Tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; follow this logic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210434" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210435" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210438" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;write the code in source Code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;select &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;kna1 &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;itab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where &lt;/SPAN&gt;kunnr = cust_no &lt;SPAN class="L0S52"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name1 = name &lt;SPAN class="L0S52"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; land1 = countryname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210436" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&amp;nbsp;&amp;nbsp; after executing u will recieve detail in ti internal table..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210439" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/210437" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Award points if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;arun prasath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2013 15:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-issue/m-p/9472919#M1743817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-28T15:13:52Z</dc:date>
    </item>
  </channel>
</rss>

