<?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 Following a smartform tutorial, but getting the error that SFF_FUNCTION_MODULE_NAME isn't there. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/following-a-smartform-tutorial-but-getting-the-error-that-sff-function/m-p/13743251#M2028756</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm following &lt;A href="https://help.sap.com/docs/SUPPORT_CONTENT/abap/3353523871.html" target="_self"&gt;this tutorial&lt;/A&gt; to try and become familiar with smartforms. I feel like I've followed all the steps exactly as describe, but when I execute the driver program for the smartform, I get this error:&lt;/P&gt;&lt;P&gt;"An attempt was made to call function module "SFF_FUNCTION_MODULE_NAME".&lt;BR /&gt;This cannot be found in the library though."&lt;/P&gt;&lt;P&gt;I don't think the code is necessary here but I'll paste it anyway just in case. This is the code for the driver program that should eventually activate the smartform:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;REPORT Z_XPTRAINING_RDD_DRIVER.

DATA: FM_SFORM TYPE RS38L_FNAM.

TABLES: mara.
*  marc, mard, makt.

*DATA: begin of it_mara occurs 0,
*      matnr like mara-matnr,
*  ersda type mara-ersda,
*  ernam type mara-ernam,
*  mtart type mara-mtart,
*  end of it_mara.

  data: it_mara type standard table of mara with header line.
  parameters: p_matnr like mara_matnr.

  select single matnr ersda ernam mtart from mara into corresponding fields of it_mara
    where matnr = p_matnr.

*  Now call function: SSF_FUNCTION_MODULE_NAME
*  IN FORMNAMEL parameter pass the smartform name.
*  FM_NAME: PARAMETER PASS THE FUNCTIONMODULE VARIABLE WHICH IS * declared* over the program.
*
  CALL FUNCTION 'SFF_FUNCTION_MODULE_NAME'
  EXPORTING
    FORMNAME = 'ZTEST_RDC'
*    VARIANT = ' '
*    DIRECT_CALL = ' '
  IMPORTING
    F_NAME = FM_SFORM
*    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-MSGN0
*  WITH SY_MSGV1 SY_MSGV2 SY_MSGV3 SY_MSGV4.
ENDIF.

CALL FUNCTION FM_SFORM "'/1BCDWB/SF00000021'
* EXPORTING
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
*   CONTROL_PARAMETERS         =
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
*   OUTPUT_OPTIONS             =
*   USER_SETTINGS              = 'X'
* IMPORTING
*   DOCUMENT_OUTPUT_INFO       =
*   JOB_OUTPUT_INFO            =
*   JOB_OUTPUT_OPTIONS         =
  TABLES
    it_mara1                   = it_mara
* EXCEPTIONS
*   FORMATTING_ERROR           = 1
*   INTERNAL_ERROR             = 2
*   SEND_ERROR                 = 3
*   USER_CANCELED              = 4
*   OTHERS                     = 5
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
ENDIF.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;On the internet I did see some people talking about the function module, but those posts were from 2010. Does the function module just not exist anymore? And if so, does anyone know of a replacement I could use?&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2024 12:12:15 GMT</pubDate>
    <dc:creator>RomyA</dc:creator>
    <dc:date>2024-06-26T12:12:15Z</dc:date>
    <item>
      <title>Following a smartform tutorial, but getting the error that SFF_FUNCTION_MODULE_NAME isn't there.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/following-a-smartform-tutorial-but-getting-the-error-that-sff-function/m-p/13743251#M2028756</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm following &lt;A href="https://help.sap.com/docs/SUPPORT_CONTENT/abap/3353523871.html" target="_self"&gt;this tutorial&lt;/A&gt; to try and become familiar with smartforms. I feel like I've followed all the steps exactly as describe, but when I execute the driver program for the smartform, I get this error:&lt;/P&gt;&lt;P&gt;"An attempt was made to call function module "SFF_FUNCTION_MODULE_NAME".&lt;BR /&gt;This cannot be found in the library though."&lt;/P&gt;&lt;P&gt;I don't think the code is necessary here but I'll paste it anyway just in case. This is the code for the driver program that should eventually activate the smartform:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;REPORT Z_XPTRAINING_RDD_DRIVER.

DATA: FM_SFORM TYPE RS38L_FNAM.

TABLES: mara.
*  marc, mard, makt.

*DATA: begin of it_mara occurs 0,
*      matnr like mara-matnr,
*  ersda type mara-ersda,
*  ernam type mara-ernam,
*  mtart type mara-mtart,
*  end of it_mara.

  data: it_mara type standard table of mara with header line.
  parameters: p_matnr like mara_matnr.

  select single matnr ersda ernam mtart from mara into corresponding fields of it_mara
    where matnr = p_matnr.

*  Now call function: SSF_FUNCTION_MODULE_NAME
*  IN FORMNAMEL parameter pass the smartform name.
*  FM_NAME: PARAMETER PASS THE FUNCTIONMODULE VARIABLE WHICH IS * declared* over the program.
*
  CALL FUNCTION 'SFF_FUNCTION_MODULE_NAME'
  EXPORTING
    FORMNAME = 'ZTEST_RDC'
*    VARIANT = ' '
*    DIRECT_CALL = ' '
  IMPORTING
    F_NAME = FM_SFORM
*    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-MSGN0
*  WITH SY_MSGV1 SY_MSGV2 SY_MSGV3 SY_MSGV4.
ENDIF.

CALL FUNCTION FM_SFORM "'/1BCDWB/SF00000021'
* EXPORTING
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
*   CONTROL_PARAMETERS         =
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
*   OUTPUT_OPTIONS             =
*   USER_SETTINGS              = 'X'
* IMPORTING
*   DOCUMENT_OUTPUT_INFO       =
*   JOB_OUTPUT_INFO            =
*   JOB_OUTPUT_OPTIONS         =
  TABLES
    it_mara1                   = it_mara
* EXCEPTIONS
*   FORMATTING_ERROR           = 1
*   INTERNAL_ERROR             = 2
*   SEND_ERROR                 = 3
*   USER_CANCELED              = 4
*   OTHERS                     = 5
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
ENDIF.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;On the internet I did see some people talking about the function module, but those posts were from 2010. Does the function module just not exist anymore? And if so, does anyone know of a replacement I could use?&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 12:12:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/following-a-smartform-tutorial-but-getting-the-error-that-sff-function/m-p/13743251#M2028756</guid>
      <dc:creator>RomyA</dc:creator>
      <dc:date>2024-06-26T12:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Following a smartform tutorial, but getting the error that SFF_FUNCTION_MODULE_NAME isn't there.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/following-a-smartform-tutorial-but-getting-the-error-that-sff-function/m-p/13743377#M2028758</link>
      <description>&lt;P&gt;Is not it&amp;nbsp;&lt;STRONG&gt;SSF&lt;/STRONG&gt;_FUNCTION_MODULE_NAME ?&lt;/P&gt;&lt;P&gt;(typo mistake)&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 13:42:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/following-a-smartform-tutorial-but-getting-the-error-that-sff-function/m-p/13743377#M2028758</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2024-06-26T13:42:40Z</dc:date>
    </item>
  </channel>
</rss>

