<?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>Question Re: How to call smartform FM after using SSF_FUNCTION_MODULE_NAME? in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531562#M1074702</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;Run trx SMARTFORMS and press test icon, here you'll be in SE37, copy the function name and go to your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here press PATTERN and past the function name generated by smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you'll insert in your program the call of the smartform:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION '/1BCDWB/SF00000003'
    EXPORTING
*     ARCHIVE_INDEX              =
*     ARCHIVE_INDEX_TAB          =
*     ARCHIVE_PARAMETERS         =
*     CONTROL_PARAMETERS         =
*     MAIL_APPL_OBJ              =
*     MAIL_RECIPIENT             =
*     MAIL_SENDER                =
*     OUTPUT_OPTIONS             =
*     USER_SETTINGS              = 'X'
      .................................&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after replace the name of fm of smartform with the variable function_name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION function_name
    EXPORTING
*     ARCHIVE_INDEX              =
*     ARCHIVE_INDEX_TAB          =
*     ARCHIVE_PARAMETERS         =
*     CONTROL_PARAMETERS         =
*     MAIL_APPL_OBJ              =
*     MAIL_RECIPIENT             =
*     MAIL_SENDER                =
*     OUTPUT_OPTIONS             =
*     USER_SETTINGS              = 'X'
      .................................&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 08:56:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-20T08:56:04Z</dc:date>
    <item>
      <title>How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaq-p/2531555</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;How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?&lt;/P&gt;&lt;P&gt;I mean, in driver program i called SSF_FUNCTION_MODULE_NAME to get the related FM  for my smart form. after that How do I call it(smartform fm) . I tried to call by pressing PATTERN button in Report. but it is showing FM is not exist error.&lt;/P&gt;&lt;P&gt;Call function SSF_FUNCTION_MODULE_NAME&lt;/P&gt;&lt;P&gt;Export&lt;/P&gt;&lt;P&gt;formname = 'zsmartform'&lt;/P&gt;&lt;P&gt;import&lt;/P&gt;&lt;P&gt;fm_name = function_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function_name is stored the corresponding smartform fm. then How do i call it to process my smartform?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaq-p/2531555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T08:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531556#M1074696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use after ssf_function_module call:&lt;/P&gt;&lt;P&gt;call function function_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;providing import and export parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        abapuser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:43:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531556#M1074696</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-07-20T08:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531557#M1074697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do it like this...&lt;/P&gt;&lt;P&gt;copy the function module name from Smartform, environment--&amp;gt; function module name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use pattern and paste the copied function module name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, replace Call function function_name "&amp;lt;b&amp;gt;SSF_FUNCTION_MODULE_NAME&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points to all useful answes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sai Ram Reddy Neelapu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531557#M1074697</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-07-20T08:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531558#M1074698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sai Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just read my question properly. using ssf_function_module_name . i will get the related fm for my smartform. after that i do i call either manually or automaticalaly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531558#M1074698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531559#M1074699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when u get ur fm name u'll have to call that  using another call function statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me kno if dere is still any confusion...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531559#M1074699</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-07-20T08:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531560#M1074700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;P&gt;Sample : &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>Fri, 20 Jul 2007 08:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531560#M1074700</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-07-20T08:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531561#M1074701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do call it manually and remove the function module name and replace with the variable where function module name is stored. As told above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531561#M1074701</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-07-20T08:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531562#M1074702</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;Run trx SMARTFORMS and press test icon, here you'll be in SE37, copy the function name and go to your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here press PATTERN and past the function name generated by smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you'll insert in your program the call of the smartform:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION '/1BCDWB/SF00000003'
    EXPORTING
*     ARCHIVE_INDEX              =
*     ARCHIVE_INDEX_TAB          =
*     ARCHIVE_PARAMETERS         =
*     CONTROL_PARAMETERS         =
*     MAIL_APPL_OBJ              =
*     MAIL_RECIPIENT             =
*     MAIL_SENDER                =
*     OUTPUT_OPTIONS             =
*     USER_SETTINGS              = 'X'
      .................................&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after replace the name of fm of smartform with the variable function_name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION function_name
    EXPORTING
*     ARCHIVE_INDEX              =
*     ARCHIVE_INDEX_TAB          =
*     ARCHIVE_PARAMETERS         =
*     CONTROL_PARAMETERS         =
*     MAIL_APPL_OBJ              =
*     MAIL_RECIPIENT             =
*     MAIL_SENDER                =
*     OUTPUT_OPTIONS             =
*     USER_SETTINGS              = 'X'
      .................................&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531562#M1074702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T08:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531563#M1074703</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;Chk this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: p_output_options TYPE ssfcompop, "occurs 0 with header line
p_control_parameters TYPE ssfctrlop. "occurs 0 with header line

p_output_options-TDCOPIES = 3. "number of copies.
p_output_options-tddest = 'LP01'. "def


p_control_parameters-no_dialog = 'X'. "no dilog box
p_control_parameters-preview = 'X'. "no preview


DATA : v_form_name TYPE rs38l_fnam.

*---- Function to get the function module name of the    ----
*---- specified Smart form.                              ----


CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'GIVE YOUR SMART FORM NAME'    
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = v_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3 .

*---- Function Module to call the Smart Form          ----


*step 1 - go to ur smart form
*step2 - take environment
*step3-take function module name
*copy that unique number.
*step4 -come back to ur driver program.
*step5 - place ur cursur here. take patter,.give that unique number.
*at that time u will get the below code.
*step6 - rename that unique number with 'v_form_name' in the code generated by pattern.

CALL FUNCTION v_form_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_PARAMETERS =
control_parameters = p_control_parameters
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = p_output_options
user_settings = ' '
* ARCHIVE_INDEX_TAB =
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
.
IF sy-subrc &amp;lt;&amp;gt; 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for any clarifiaction pls revert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 09:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531563#M1074703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T09:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531564#M1074704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cleared and rewarded marks according to answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 09:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-call-smartform-fm-after-using-ssf-function-module-name/qaa-p/2531564#M1074704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T09:15:57Z</dc:date>
    </item>
  </channel>
</rss>

