<?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: FM does not exist when executing Smartform in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554802#M1563820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try to go to production..at the TC smartforms.&lt;/P&gt;&lt;P&gt;Then execute (F8) and you will see the function module. If it didn´t generate nothing then or the smartform doesn´t exist or it has a problem.&lt;/P&gt;&lt;P&gt;But if you could put more information it will be better to help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jan 2011 12:07:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-06T12:07:41Z</dc:date>
    <item>
      <title>FM does not exist when executing Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554800#M1563818</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;When we are executing a Smartform in Production Server, FM not generating. But at the same smartform generating FM in Quality Server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should be the problem..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 11:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554800#M1563818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-06T11:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: FM does not exist when executing Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554801#M1563819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check whether all the elements of smartform are transported to production server.(ex: element like smartstyle)&lt;/P&gt;&lt;P&gt;Sometimes missing of elements in one of the  transport request will cause these kind of errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 12:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554801#M1563819</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2011-01-06T12:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: FM does not exist when executing Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554802#M1563820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try to go to production..at the TC smartforms.&lt;/P&gt;&lt;P&gt;Then execute (F8) and you will see the function module. If it didn´t generate nothing then or the smartform doesn´t exist or it has a problem.&lt;/P&gt;&lt;P&gt;But if you could put more information it will be better to help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 12:07:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554802#M1563820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-06T12:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: FM does not exist when executing Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554803#M1563821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Please see the log it generated at the time of Transport. It seems to be problem with Transport not done successfully.&lt;/P&gt;&lt;P&gt;Also try to debug the Driver program and see whether it generates a Function module dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 12:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554803#M1563821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-06T12:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: FM does not exist when executing Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554804#M1563822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you provide me the details on how your call your smart form in the driver program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 12:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554804#M1563822</guid>
      <dc:creator>former_member193284</dc:creator>
      <dc:date>2011-01-06T12:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: FM does not exist when executing Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554805#M1563823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Assuming you are using below code to call the smartform.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"Function Module Name received from Menu Item Environment-&amp;gt;FM Name
Call Function Function_Module_Name &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The reason this wont work is because the FM name is different across different environments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To call the smart form you will have to use: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'SSF_FUNCTION_MODULE_NAME'
  exporting
    formname                 = 'ZSMARTFORM' "Name Of SmartForm
  IMPORTING
    FM_NAME                  = FM_NAME.

call function FM_NAME .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 04:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554805#M1563823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-07T04:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: FM does not exist when executing Smartform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554806#M1563824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that  you are using CALL FUNCTION '/1BCDWB/SF00000048'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF you use this Function, It will be changed from one server to another server,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now only one way to you is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM 'SSF_FUNCTION_MODULE_NAME' is only used to find the generated FM name of the smartform. Once you get the generated FM name, you can call this function by passing the name of the generated FM dynamically. In the same code, you can send your export parameters outop. &lt;/P&gt;&lt;P&gt;What you have to do is this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"Assume your smartform name is ZSMARTFORM.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    formname                 = 'ZSMARTFORM'
*   VARIANT                  = ' '
*   DIRECT_CALL              = ' '
 IMPORTING
   FM_NAME                  = wrk_fname
* EXCEPTIONS
*   NO_FORM                  = 1
*   NO_FUNCTION_MODULE       = 2
*   OTHERS                   = 3
          .
 
outop-tddest = 'CANONMF4'.
  outop-tdprinter = 'CANONMF4'.
  cparam-no_dialog = 'X'.
  cparam-preview = space.
  cparam-getotf = 'X'.
 
  IF f1 = 'X'.
    CALL FUNCTION wrk_fname
      EXPORTING
        control_parameters = cparam
        output_options     = outop
        user_settings      = space
      IMPORTING
        job_output_info    = tab_otf_data
      TABLES
        itab               = itab     .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you want to get all the import and export parameters automatically into your code, click on Pattern and give the function module name /1BCDWB/SF00000053 directly. Then, remove the function module name and in its place use the variable wrk_fname which holds the function module name. In this way, when used in different landscapes (DEV, QAS, PRD), we will be able to get the correct FM name of the smartform without any error.&lt;/P&gt;&lt;P&gt;Hope this is clear to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 06:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-does-not-exist-when-executing-smartform/m-p/7554806#M1563824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-07T06:12:09Z</dc:date>
    </item>
  </channel>
</rss>

