<?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/1310524#M161624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define your own types in the TOP include of the main program i.e. your function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF TYPE,&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;        END OF TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : variable type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mishra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mishra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 May 2006 06:31:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-09T06:31:46Z</dc:date>
    <item>
      <title>function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310519#M161619</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;&lt;/P&gt;&lt;P&gt;while creating the FM can i use user defined types&lt;/P&gt;&lt;P&gt; if we can where we need to define this type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; thank u.&lt;/P&gt;&lt;P&gt;sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 06:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310519#M161619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T06:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310520#M161620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if u have to define your own type then it has to be registered in Data dictionary, that means basically you will be creating a structure with all the required fields through SE11. Similarly you can create table types through Data dictionary if you want to pass tables as import/export parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 06:17:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310520#M161620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T06:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310521#M161621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i guess u meant dat types as user defined types....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, u can use user defined types in your fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in import/export parameters,u have to mention like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;field name&amp;gt; like &amp;lt;ztablename-fieldname&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the datatype associated with &amp;lt;ztablename-fieldname&amp;gt; is assigned to your &amp;lt;field name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;&lt;P&gt;Sakthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 06:21:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310521#M161621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T06:21: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/1310522#M161622</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;you can define from SE11 , using the option data type&lt;/P&gt;&lt;P&gt;enter your data type name and then say create then you can choose the type which you want to create .&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, 09 May 2006 06:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310522#M161622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T06:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310523#M161623</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; my question is in Fm &lt;/P&gt;&lt;P&gt;PARAMETERS: PAR1 TYPE ZZTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZZTAB IS A TYPES DECLARED BY THE USER .&lt;/P&gt;&lt;P&gt;IT NOT DEFINED IN THE DICTIONARY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS IT POSSIBLE&lt;/P&gt;&lt;P&gt;THANKS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 06:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310523#M161623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T06:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310524#M161624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define your own types in the TOP include of the main program i.e. your function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF TYPE,&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;        END OF TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : variable type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mishra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mishra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 06:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310524#M161624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T06:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310525#M161625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 . You can declare a variable in this manner :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : a like zztab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is  done in the source code of your function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do so however , zztab should be known .It means it has to be defined earlier ( that is, it should be either import / export parameter ). If it is a table, you can declare this variable in your tables tab of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can not declare this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters  :  atab like zztab. &lt;/P&gt;&lt;P&gt;" zztab, a user defind data type has been declared  earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason :&lt;/P&gt;&lt;P&gt;2.1) You can only use parameters for programs other than type 1 between Begin/end of Screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.2) Now if you try to declare this way, &lt;/P&gt;&lt;P&gt;selection-screen : begin of selection-screen 300.&lt;/P&gt;&lt;P&gt;parameters  :  atab like zztab.&lt;/P&gt;&lt;P&gt;selection-screen : end of screen 300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is also not possible . The reason for this is that within form routines and function modules, the &amp;lt;b&amp;gt;selection-screen&amp;lt;/b&amp;gt; statement is not allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kunal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kunal Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 07:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310525#M161625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T07:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310526#M161626</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;GOOD&lt;/P&gt;&lt;P&gt;I DONT THINK WE CAN ABLE TO DEFINED OUR TYPES WHILE CREATING A USER EXIT.&lt;/P&gt;&lt;P&gt;YOU GO THROUGH THE FOLLOWING LINKS FOR THE FUTHER CLARIFICATION &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm&lt;/A&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;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 07:03:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310526#M161626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-09T07:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310527#M161627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can declare your user defined types in function pool. this is where you can define global data that will available to all the function modules under this function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Bhutani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2006 07:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1310527#M161627</guid>
      <dc:creator>sbhutani1</dc:creator>
      <dc:date>2006-05-09T07:36:00Z</dc:date>
    </item>
  </channel>
</rss>

