<?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: Calling the function module in smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-the-function-module-in-smartforms/m-p/2148312#M453375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi I got ur point, write it manually instead of calling function module&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                 = form_name&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARIANT                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIRECT_CALL              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FM_NAME                  = fm_name&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_FORM                  = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_FUNCTION_MODULE       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                   = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION fm_name&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    var1                 = var1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;  zitab = zitab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    var2                 = var2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont forget to award points if found helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Apr 2007 09:42:19 GMT</pubDate>
    <dc:creator>rahulkavuri</dc:creator>
    <dc:date>2007-04-07T09:42:19Z</dc:date>
    <item>
      <title>Calling the function module in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-the-function-module-in-smartforms/m-p/2148310#M453373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have called the ssf function module in smart forms. how to call the another function module which is having the function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks&lt;/P&gt;&lt;P&gt;Saravana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 09:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-the-function-module-in-smartforms/m-p/2148310#M453373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-07T09:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calling the function module in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-the-function-module-in-smartforms/m-p/2148311#M453374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz elabarate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 09:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-the-function-module-in-smartforms/m-p/2148311#M453374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-07T09:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calling the function module in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-the-function-module-in-smartforms/m-p/2148312#M453375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi I got ur point, write it manually instead of calling function module&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                 = form_name&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARIANT                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIRECT_CALL              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   FM_NAME                  = fm_name&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_FORM                  = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_FUNCTION_MODULE       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                   = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION fm_name&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    var1                 = var1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;  zitab = zitab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    var2                 = var2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont forget to award points if found helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 09:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-the-function-module-in-smartforms/m-p/2148312#M453375</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2007-04-07T09:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calling the function module in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-the-function-module-in-smartforms/m-p/2148313#M453376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After calling ssf function module, call the function module returned by ssf function module with your parareters and tables defined in smartforms interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you write your program, use model and the generated name then change =the name of the FM by the variable returned by ssf function module .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at &amp;lt;a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf"&amp;gt;SAP Smart Forms (BC-SRV-SCR)&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
 EXPORTING
  FORMNAME = '&amp;lt;form name&amp;gt;'
 IMPORTING
  FM_NAME = fm_name
  EXCEPTIONS
  NO_FORM = 1
  NO_FUNCTION_MODULE = 2
  OTHERS = 3.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
&amp;lt;error handling&amp;gt;
ENDIF.

CALL FUNCTION fm_name
 EXPORTING
*  ARCHIVE_INDEX =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
  G_CARRID = &amp;lt;variable&amp;gt;
  G_CONNID = &amp;lt;variable&amp;gt;
  G_FLDATE = &amp;lt;variable&amp;gt;
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
 TABLES
  GT_SBOOK = &amp;lt;internal table&amp;gt;
 EXCEPTIONS
  FORMATTING_ERROR = 1
  INTERNAL_ERROR = 2
  SEND_ERROR = 3
  USER_CANCELED = 4
  OTHERS = 5.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
&amp;lt;error handling&amp;gt;
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2007 09:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-the-function-module-in-smartforms/m-p/2148313#M453376</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-04-07T09:56:11Z</dc:date>
    </item>
  </channel>
</rss>

