<?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: How to call smartforms from report program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955671#M66215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yopu can use pass in your SMartForm Name into FM SSF_FUNCTION_MODULE_NAME to get the generated FM id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_fm type rs38l_fnam.&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 = 'ZSMARTFROM'&lt;/P&gt;&lt;P&gt;inporting&lt;/P&gt;&lt;P&gt;fm_name = l_fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function l_fm&lt;/P&gt;&lt;P&gt;exporting.....&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;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2005 06:06:40 GMT</pubDate>
    <dc:creator>former_member221770</dc:creator>
    <dc:date>2005-08-23T06:06:40Z</dc:date>
    <item>
      <title>How to call smartforms from report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955669#M66213</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;           Please help me, &amp;lt;b&amp;gt;how to call smartform from ABAP Report programm&amp;lt;/b&amp;gt;. What are the function modules to be used in 4.6 version. It is very urgent apart my side. please kindly send an example also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will be thankfull to all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by &lt;/P&gt;&lt;P&gt;satish U.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 06:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955669#M66213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T06:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartforms from report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955670#M66214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use FM  'SSF_FUNCTION_MODULE_NAME'&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           = 'ZBTINVOICE'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            FM_NAME            = fm_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;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 06:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955670#M66214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T06:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartforms from report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955671#M66215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yopu can use pass in your SMartForm Name into FM SSF_FUNCTION_MODULE_NAME to get the generated FM id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_fm type rs38l_fnam.&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 = 'ZSMARTFROM'&lt;/P&gt;&lt;P&gt;inporting&lt;/P&gt;&lt;P&gt;fm_name = l_fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function l_fm&lt;/P&gt;&lt;P&gt;exporting.....&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;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 06:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955671#M66215</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-08-23T06:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartforms from report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955672#M66216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satish,&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;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;                      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;&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;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 06:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955672#M66216</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-08-23T06:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartforms from report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955673#M66217</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;Here is the sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_form_name TYPE rs38l_fnam.&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           = 'ZZZ_TEST3'&lt;/P&gt;&lt;P&gt;     importing&lt;/P&gt;&lt;P&gt;          fm_name            = v_form_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;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better use the generated FM name in pattern in SE38 and replace the FM name by v_form_name and pass the required parameters.&lt;/P&gt;&lt;P&gt;CALL FUNCTION v_form_name&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;    itab_select               = s_matnr&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FORMATTING_ERROR           = 1&lt;/P&gt;&lt;P&gt;   INTERNAL_ERROR             = 2&lt;/P&gt;&lt;P&gt;   SEND_ERROR                 = 3&lt;/P&gt;&lt;P&gt;   USER_CANCELED              = 4&lt;/P&gt;&lt;P&gt;   OTHERS                     = 5.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 06:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955673#M66217</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-08-23T06:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartforms from report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955674#M66218</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;Once you activate the smartform then it will generate the function module dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the smartforms goto Environment - &amp;gt; Function module name  , It gives the function module name.  you copy the FM name and call the function module in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you familar with that  then go for SSF_FUNCTION_MODULE_NAME ( this the one used to find out the above function module by using smart form name )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 06:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-smartforms-from-report-program/m-p/955674#M66218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T06:48:07Z</dc:date>
    </item>
  </channel>
</rss>

