<?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: Executing Report in a Funtion Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769074#M1117876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renu,&lt;/P&gt;&lt;P&gt;Thanks for the quick reply,&lt;/P&gt;&lt;P&gt;Can you please help me with some code example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Upendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2008 05:13:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-07T05:13:18Z</dc:date>
    <item>
      <title>Executing Report in a Funtion Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769072#M1117874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which I have to execute a Report in my function module, &lt;/P&gt;&lt;P&gt;Also, I have to  show the smart form which is the output from the report in the FM export parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me your helpful suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Upendra Agrawal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 04:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769072#M1117874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T04:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Report in a Funtion Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769073#M1117875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;u can use SUBMIT report  and return ... &lt;/P&gt;&lt;P&gt;and then in that report can call the smartform FM ... &lt;/P&gt;&lt;P&gt;u can also try background processing and get the smartfrom in spool ,,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 05:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769073#M1117875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T05:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Report in a Funtion Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769074#M1117876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Renu,&lt;/P&gt;&lt;P&gt;Thanks for the quick reply,&lt;/P&gt;&lt;P&gt;Can you please help me with some code example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Upendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 05:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769074#M1117876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T05:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Report in a Funtion Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769075#M1117877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So i suppose you have already written the code for the report which is calling the smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See &lt;STRONG&gt;F1 help&lt;/STRONG&gt; for &lt;STRONG&gt;SUBMIT&lt;/STRONG&gt; or Search the Forum to get sample codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And and after calling the &lt;STRONG&gt;SSF_FUNCTION_MODULE_NAME&lt;/STRONG&gt; in the report pass the FM name of the smartgorm to the export parameter of your FM and call that fm from the program calling your FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 05:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769075#M1117877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T05:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Report in a Funtion Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769076#M1117878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Upendra ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call the Report from the FM using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit zreport&lt;/P&gt;&lt;P&gt;    with param1 = param11&lt;/P&gt;&lt;P&gt; and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Param1 is the passing parameter ... if u have any ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the smartform function module name from the SMARTFORM transaction second screen. Go to Environment -&amp;gt; Function module name. But you cannot straight away call this from your program because the function module name changes in other system when you transport. So the solution is to use the following logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;formname = &amp;lt;- Smartform name&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;fm_name = &amp;lt;- Function module name&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;no_form = 1&lt;/P&gt;&lt;P&gt;no_function_module = 2&lt;/P&gt;&lt;P&gt;others = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module will return the function module name of the smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now call the smartform function module like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function lf_fm_name&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;archive_index = toa_dara&lt;/P&gt;&lt;P&gt;archive_parameters = arc_params&lt;/P&gt;&lt;P&gt;control_parameters = ls_control_param&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;mail_appl_obj =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mail_recipient = ls_recipient&lt;/P&gt;&lt;P&gt;mail_sender = ls_sender&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'lf_fm_name' is the return from the 'SSF_FUNCTION_MODULE_NAME function module name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Renu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 05:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769076#M1117878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T05:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Report in a Funtion Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769077#M1117879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Upendra from top to bottom i will say..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First use fm SSF_FUNCTION_MODULE_NAME to trigger the smart form automatically use that in the report ....and using sumbit keyword in the fm source code call the events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve ur query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2008 05:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/executing-report-in-a-funtion-module/m-p/4769077#M1117879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-07T05:42:32Z</dc:date>
    </item>
  </channel>
</rss>

