<?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 HOW TO USE FUNCTION MODULE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740576#M636686</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;&lt;/P&gt;&lt;P&gt;  i have one function module which converts the number of Seconds into TIME format( HH:MM:SS)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; the function module name is :MONI_TIME_CONVERT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this   we need to give the seconds as input..  that function module will convert those and it will give the out put..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can we define as variables..  and   can u  give me the  code for using this FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how many variables can we decalr.. and how..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2007 11:55:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-29T11:55:46Z</dc:date>
    <item>
      <title>HOW TO USE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740576#M636686</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;&lt;/P&gt;&lt;P&gt;  i have one function module which converts the number of Seconds into TIME format( HH:MM:SS)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; the function module name is :MONI_TIME_CONVERT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this   we need to give the seconds as input..  that function module will convert those and it will give the out put..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can we define as variables..  and   can u  give me the  code for using this FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how many variables can we decalr.. and how..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 11:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740576#M636686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T11:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO USE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740577#M636687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Babu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Pattern Button that is available in the ABAP Editor (SE38). After clicking the Pattern Button you shall be asked for the function module name. Enter the name of the Function module and press enter. Inside your editor the code for that function module call gets generated. You need to just call the function module using the parameters that is defined in the function module code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if this helps,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 11:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740577#M636687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T11:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO USE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740578#M636688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go to se37.write name of the function module and click on display.&lt;/P&gt;&lt;P&gt;declare ur varaibles according to the types of import and export parameters variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 11:57:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740578#M636688</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-08-29T11:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO USE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740579#M636689</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; that i know in se37 checking.. but i want to use the same thing in my program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that what   can  write additinally.. along with the calling of that function module..&lt;/P&gt;&lt;P&gt;i means.. import  and export parameters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and how can define the variables  for giving import and export ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 11:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740579#M636689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T11:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO USE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740580#M636690</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;pass the No of seconds in LD_DURATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you get out put in LT_OUTPUT_DURATION in hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy paste the program below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data: lv_in type sytabix,&lt;/P&gt;&lt;P&gt;      lv_out type SWL_PM_CVH-DURATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_in = '76'. "76 seconds output should be 1 hrs 16 minutes&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MONI_TIME_CONVERT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ld_duration              =  lv_in&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   LT_OUTPUT_DURATION       = lv_out&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          write lv_out.&amp;lt;/b&amp;gt;rewards if useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 11:59:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740580#M636690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T11:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO USE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740581#M636691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BABU,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: hh like sy-tabix, gg like SWL_PM_CVH-DURATION.&lt;/P&gt;&lt;P&gt;move 30 to hh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MONI_TIME_CONVERT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ld_duration              = hh&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   LT_OUTPUT_DURATION       = gg&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt; write:/ gg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&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;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 12:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740581#M636691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T12:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO USE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740582#M636692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Babu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out my message in detail that is posted above,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 12:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740582#M636692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T12:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO USE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740583#M636693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sachin  can  i use..  parametrs statement insted of moving the data directly.. user needs to ener the  value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 12:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740583#M636693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T12:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO USE FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740584#M636694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Babu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use parameters instead of data variables in your code. Just write parameters statement instead of data statement in your report and pass this parameter to ld_duration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;PARAMETERS: P_HH LIKE SY-TABIX.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gg like SWL_PM_CVH-DURATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MONI_TIME_CONVERT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ld_duration = P_HH&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;LT_OUTPUT_DURATION = gg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ gg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2007 12:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module/m-p/2740584#M636694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-29T12:37:42Z</dc:date>
    </item>
  </channel>
</rss>

