<?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 form. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402262#M816951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anand,&lt;/P&gt;&lt;P&gt;            ' Using'  is one of additional that we can use with the perform function..that is like pass by value in other languages. if u use 'changing' means its like pass by reference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 05:14:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T05:14:44Z</dc:date>
    <item>
      <title>function module in form.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402257#M816946</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;i have to call a function module called date_check_plausibility in my code twice once for "from date "and for "to date".how to pass my date as parameter to the from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all replies will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 04:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402257#M816946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T04:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: function module in form.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402258#M816947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do this way ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
perform check_date using p_date_from changing p_from_date.

perform check_date using p_date_to   changing p_to_date.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 04:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402258#M816947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T04:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: function module in form.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402259#M816948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perform test using  date1.&lt;/P&gt;&lt;P&gt;perform test using date2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form test using p_date.&lt;/P&gt;&lt;P&gt;  in FM use the p_date.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 05:03:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402259#M816948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T05:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: function module in form.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402260#M816949</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;FORM f_check_date USING    p_date   TYPE sy-datum.&lt;/P&gt;&lt;P&gt;                                               &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      date                      = p_date&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      plausibility_check_failed = 1&lt;/P&gt;&lt;P&gt;      OTHERS                    = 2.&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;PERFORM f_check_date using &amp;lt;pass_req_date - from date.&amp;gt;&lt;/P&gt;&lt;P&gt;PERFORM f_check_date using &amp;lt;pass_req_date - to date.&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 05:05:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402260#M816949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T05:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: function module in form.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402261#M816950</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;While you create your function module. Specify IMPORT and EXPORT parameters with corresponding types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your program when you call the function module via Patterns, the function call will be displayed with EXPORTING and IMPORTING parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to pass in the EXPORTING parameter the IMPORT TYPE declared in your function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IMPORTING parameter in the function is the value it returns which you need to store in an appropriate variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ex_var TYPE C.&lt;/P&gt;&lt;P&gt;DATA: im_var TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'my_own_function' "using patterns &lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;import_var_defined_in_fm = ex_var.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;export_var_defined_in_fm = im_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 05:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402261#M816950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T05:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: function module in form.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402262#M816951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anand,&lt;/P&gt;&lt;P&gt;            ' Using'  is one of additional that we can use with the perform function..that is like pass by value in other languages. if u use 'changing' means its like pass by reference&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 05:14:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402262#M816951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T05:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: function module in form.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402263#M816952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for replying so soon.can u help me with one more thing :&lt;/P&gt;&lt;P&gt;when i define the perform initially in the program am i supposed to write perform f_date_check using.....p_date. or just perform f_check_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also what is the syntax for passing parameter later.&lt;/P&gt;&lt;P&gt;is just this way:&lt;/P&gt;&lt;P&gt;loop at itab into wa_tab.&lt;/P&gt;&lt;P&gt;perform f_date_check using wa_tab-fdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 05:27:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-form/m-p/3402263#M816952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T05:27:20Z</dc:date>
    </item>
  </channel>
</rss>

