<?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 Calling a SmartForm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-smartform/m-p/3720949#M895753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that I created a SmartForm and I called the FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"SSF_FUNCTION_MODULE_NAME",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I call my created Smartform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 May 2008 09:45:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-01T09:45:38Z</dc:date>
    <item>
      <title>Calling a SmartForm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-smartform/m-p/3720949#M895753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that I created a SmartForm and I called the FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"SSF_FUNCTION_MODULE_NAME",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I call my created Smartform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 09:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-smartform/m-p/3720949#M895753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-01T09:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a SmartForm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-smartform/m-p/3720950#M895754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaheen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. First call the below FM and pass the name of the Smart Form in Formname and :&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  w_fname TYPE rs38l_fnam.             " Form Name

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname                 = 'SMART_FORM_NAME'
*     VARIANT                  = ' '
*     DIRECT_CALL              = ' '
    IMPORTING
      fm_name                  = w_fname
    EXCEPTIONS
      no_form                  = 1
      no_function_module       = 2
      OTHERS                   = 3
            .
  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.
  ELSE.
*" Subroutine Call to Call the Smart Form .............................
    PERFORM call_smart_form.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Goto your SMART FORM, then go to ENVIRONMENT and click on FM name and copy the FM name.&lt;/P&gt;&lt;P&gt;3. Then in Driver Program click on Pattern and paste the FM name.&lt;/P&gt;&lt;P&gt;4. Then Replace the Name with w_fname (i.e. Import Parameter from First FM), as shown below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION w_fname
  EXPORTING
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
*   CONTROL_PARAMETERS         =
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
*   OUTPUT_OPTIONS             =
*   USER_SETTINGS              = 'X'
    p_vbeln                    = p_vbeln                         " User Parameter
* 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;Refer Below Site for More Info:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://www.saptechnical.com/Tips/SmartForms/FMImportance.htm" target="test_blank"&gt;http://www.saptechnical.com/Tips/SmartForms/FMImportance.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 09:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-smartform/m-p/3720950#M895754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-01T09:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a SmartForm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-smartform/m-p/3720951#M895755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes thank you Sunil after this step how can I proceed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 09:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-smartform/m-p/3720951#M895755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-01T09:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a SmartForm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-smartform/m-p/3720952#M895756</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;After coding, u just run the program. The Function Module&lt;/P&gt;&lt;P&gt;SSF_FUNCTION_MODULE_NAME captures the Function Module which is generated in the smartform and runs the smartform automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U need to pass the parameter p_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally the smart forms are runned by Function Module.&lt;/P&gt;&lt;P&gt;So we are capturing that function Module in our program and we are running the smartfrom from thr program.&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;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 10:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-smartform/m-p/3720952#M895756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-01T10:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a SmartForm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-smartform/m-p/3720953#M895757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shaheen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the Below Link and you will get whole Idea of the Working of this Procedure:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://www.saptechnical.com/Tips/SmartForms/FMImportance.htm" target="test_blank"&gt;http://www.saptechnical.com/Tips/SmartForms/FMImportance.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 10:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-smartform/m-p/3720953#M895757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-01T10:36:59Z</dc:date>
    </item>
  </channel>
</rss>

