<?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: Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231000#M139322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, first create a structure in SE11 which will be used as the structure type in your TABLES parameters.  Next go to your function module, click the tables tab, enter a name for the parameter and make it the type of the structure that you just created.  Now in the function module code, you will need to move the data from the itab to the parameter table that you just defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Apr 2006 13:16:02 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-04-11T13:16:02Z</dc:date>
    <item>
      <title>Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1230999#M139321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I am new to create FM.&lt;/P&gt;&lt;P&gt;I have a FM in which i am passing one import parameter(ex: a table name).&lt;/P&gt;&lt;P&gt;In this sorce code i am using one more FM to retrieve data from table.&lt;/P&gt;&lt;P&gt;So i got data in itab.So in the main FM i want to create a tables parameter.in which result will be diaplayed .Can any body tell me How to decalre that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 13:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1230999#M139321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T13:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231000#M139322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, first create a structure in SE11 which will be used as the structure type in your TABLES parameters.  Next go to your function module, click the tables tab, enter a name for the parameter and make it the type of the structure that you just created.  Now in the function module code, you will need to move the data from the itab to the parameter table that you just defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 13:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231000#M139322</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-04-11T13:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231001#M139323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt; Go to se37 and after you create the Function group and then a Function module, Go to tables tab.&lt;/P&gt;&lt;P&gt;Give a name to your table's parameter. sat t_itab.&lt;/P&gt;&lt;P&gt;give like /type in type spec.&lt;/P&gt;&lt;P&gt;Give the structure name of your internal table.&lt;/P&gt;&lt;P&gt;If it is a custom structure, you should create a Z structure in se11 and then use it here.&lt;/P&gt;&lt;P&gt;Then you can use the data in the t_itab in your siurce code, or fill the table as per your requirement.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 13:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231001#M139323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T13:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231002#M139324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume ITAB1 is DECLARED in the TABLES parameters of the Main function. And inside that you have another ITAB2, which you are passing to retrieve data into the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can just say ITAB1 = ITAB2 as long as they are of the same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are asking how to create TABLES parameter, then when you display the function module, In the parameters section, you will have a tab for TABLES, declare the name over there referring to a strcuture or table in the data dictionary. You have a TABLE parameter.&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;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 13:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231002#M139324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T13:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231003#M139325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;You want to get all the line item data(VBAP) for a given Sales Order No (VBELN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main FM1:&lt;/P&gt;&lt;P&gt;importing VBELN &lt;/P&gt;&lt;P&gt;tables    itab1 like vbap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source Code of Main FM&lt;/P&gt;&lt;P&gt;call function FM2&lt;/P&gt;&lt;P&gt;   exporting VBELN&lt;/P&gt;&lt;P&gt;   tables    itab2 like vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM2:&lt;/P&gt;&lt;P&gt;importing VBELN&lt;/P&gt;&lt;P&gt;tables  itab2 like vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source Code of FM2:&lt;/P&gt;&lt;P&gt;Select * from vbap&lt;/P&gt;&lt;P&gt;   into table itab2 where vbeln = vbeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 13:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231003#M139325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T13:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231004#M139326</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;in your FM create that under table parameter option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pass it to your fm.&lt;/P&gt;&lt;P&gt;Check the SAP help to hel p to create the FM .&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/d1/801e9a454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/d1/801e9a454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 13:21:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231004#M139326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T13:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231005#M139327</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;Thank You Very Much.&lt;/P&gt;&lt;P&gt;Points are given.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 13:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231005#M139327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T13:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231006#M139328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi Kumar,&lt;/P&gt;&lt;P&gt;In The FM i am getting data in ITAB.&lt;/P&gt;&lt;P&gt;I declared ITAB IN global data as &lt;/P&gt;&lt;P&gt;DATA: ITAB LIKE TAB512 OCCURS 0.&lt;/P&gt;&lt;P&gt;and in the tables parameter of FM i delclared like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER    TYPESPEC  REFERENCE TYPE&lt;/P&gt;&lt;P&gt;DAT           LIKE     TAB512&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT WHEN I EXICUTE FM DAT DOES'T HAVE ANY ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN U TELL ME WHERE IS THE PROBLEM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS IN ADVANCE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 14:14:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231006#M139328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T14:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231007#M139329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jak,&lt;/P&gt;&lt;P&gt;   In the source code, did you assign the content in the itab to the internal table in the FM tables parameter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_tab512[] = itab. "t_tab512 is the table declared in the tables tab of the Fm.&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 14:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231007#M139329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T14:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231008#M139330</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;Doesn't sound like what you are doing is right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you send me the screen shots of the parameters? My mail address is in the business card.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to have a strcuture in the dictionary of the same type of table which you want to return - same columns etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you don't need a global table ITAB, you should be able to access the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2006 14:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1231008#M139330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-11T14:33:11Z</dc:date>
    </item>
  </channel>
</rss>

