<?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: Smartform Que. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-que/m-p/3808566#M916048</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 getting the function module name, use the name(w_form_name as below) and call the function module by passing all the variables and tables you want to pass to the smart form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the function name for the smart form by passing the smartform name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      formname           = w_smartform&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      fm_name            = w_form_name&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      no_form            = 1&lt;/P&gt;&lt;P&gt;      no_function_module = 2&lt;/P&gt;&lt;P&gt;      OTHERS             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_ctrlop-getotf    = k_charx.&lt;/P&gt;&lt;P&gt;  s_ctrlop-no_dialog = k_charx.&lt;/P&gt;&lt;P&gt;  s_outopt-tdnoprev  = k_charx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the smartform&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION w_form_name&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      control_parameters = s_ctrlop&lt;/P&gt;&lt;P&gt;      output_options     = s_outopt&lt;/P&gt;&lt;P&gt;      user_settings      = 'X'&lt;/P&gt;&lt;P&gt;      i_bun_date         = w_bun_date&lt;/P&gt;&lt;P&gt;      i_sup              = w_sup&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      job_output_info    = t_otfdata&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_oeb              = t_oeb_final&lt;/P&gt;&lt;P&gt;      t_opa_fcr          = t_opa_fcr&lt;/P&gt;&lt;P&gt;      t_opa_req          = t_opa_req&lt;/P&gt;&lt;P&gt;      t_opa_inc          = t_opa_inc&lt;/P&gt;&lt;P&gt;      t_next_bundle      = t_next_bundle&lt;/P&gt;&lt;P&gt;      t_text             = text_tab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      formatting_error   = 1&lt;/P&gt;&lt;P&gt;      internal_error     = 2&lt;/P&gt;&lt;P&gt;      send_error         = 3&lt;/P&gt;&lt;P&gt;      user_canceled      = 4&lt;/P&gt;&lt;P&gt;      OTHERS             = 5.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Message : Error opening smartform&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE text-009 TYPE 'I'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2008 06:26:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-13T06:26:24Z</dc:date>
    <item>
      <title>Smartform Que.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-que/m-p/3808565#M916047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expart ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Wht is work function module SSF_FUNCTION_MODULE_NAME calling smartform driver prg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhabani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 06:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-que/m-p/3808565#M916047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T06:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform Que.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-que/m-p/3808566#M916048</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 getting the function module name, use the name(w_form_name as below) and call the function module by passing all the variables and tables you want to pass to the smart form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the function name for the smart form by passing the smartform name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      formname           = w_smartform&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      fm_name            = w_form_name&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      no_form            = 1&lt;/P&gt;&lt;P&gt;      no_function_module = 2&lt;/P&gt;&lt;P&gt;      OTHERS             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  s_ctrlop-getotf    = k_charx.&lt;/P&gt;&lt;P&gt;  s_ctrlop-no_dialog = k_charx.&lt;/P&gt;&lt;P&gt;  s_outopt-tdnoprev  = k_charx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the smartform&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION w_form_name&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      control_parameters = s_ctrlop&lt;/P&gt;&lt;P&gt;      output_options     = s_outopt&lt;/P&gt;&lt;P&gt;      user_settings      = 'X'&lt;/P&gt;&lt;P&gt;      i_bun_date         = w_bun_date&lt;/P&gt;&lt;P&gt;      i_sup              = w_sup&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      job_output_info    = t_otfdata&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_oeb              = t_oeb_final&lt;/P&gt;&lt;P&gt;      t_opa_fcr          = t_opa_fcr&lt;/P&gt;&lt;P&gt;      t_opa_req          = t_opa_req&lt;/P&gt;&lt;P&gt;      t_opa_inc          = t_opa_inc&lt;/P&gt;&lt;P&gt;      t_next_bundle      = t_next_bundle&lt;/P&gt;&lt;P&gt;      t_text             = text_tab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      formatting_error   = 1&lt;/P&gt;&lt;P&gt;      internal_error     = 2&lt;/P&gt;&lt;P&gt;      send_error         = 3&lt;/P&gt;&lt;P&gt;      user_canceled      = 4&lt;/P&gt;&lt;P&gt;      OTHERS             = 5.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Message : Error opening smartform&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE text-009 TYPE 'I'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 06:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-que/m-p/3808566#M916048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T06:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform Que.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-que/m-p/3808567#M916049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhabani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM returns the name of the FM generated by specified smart form,&lt;/P&gt;&lt;P&gt;You may not use this FM and directly call the FM generated by the smartform but &lt;STRONG&gt;this will give dump in prod&lt;/STRONG&gt; as name of the FM generated in the prod will not be same as the name in development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we use the FM:   SSF_FUNCTION_MODULE_NAME to get the name of the FM generated by the smartform at run time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 06:28:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-que/m-p/3808567#M916049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T06:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform Que.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-que/m-p/3808568#M916050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;if u write the code in se38 for smartforms then we have to assign that form name in the driver program so we call &lt;/P&gt;&lt;P&gt;SSF_FUNCTION_MODULE_NAME  fm.In this we give our form name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am sending u sample code.go through it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;data declaration--&lt;HR originaltext="------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:wa_lfa1 type zsf_lfa1,&lt;/P&gt;&lt;P&gt;     wa_ekko type zsf_ekko,&lt;/P&gt;&lt;P&gt;    it_ekpo type zsf_ekpo_tb,&lt;/P&gt;&lt;P&gt;    v_ebeln type ekko-ebeln,&lt;/P&gt;&lt;P&gt;    v_name type rs38l_fnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;parameter for purchase document number--&lt;HR originaltext="------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;parameters:p_ebeln type ekko-ebeln.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                AT SELECTION-SCREEN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;  perform validate_ebeln.&lt;/P&gt;&lt;P&gt;  perform get_data_from_ekko.&lt;/P&gt;&lt;P&gt;  perform get_data_from_lfa1.&lt;/P&gt;&lt;P&gt;  perform get_data_from_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            END-OF-SELECTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&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                 = 'Z50886_SMARTFORMS'&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                  = v_name&lt;/P&gt;&lt;P&gt; exceptions&lt;/P&gt;&lt;P&gt;   no_form                  = 1&lt;/P&gt;&lt;P&gt;   no_function_module       = 2&lt;/P&gt;&lt;P&gt;   others                   = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;         with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;calling function module--&lt;HR originaltext="---------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*'/1BCDWB/SF00000724'&lt;/P&gt;&lt;P&gt;  call function v_name&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      wa_lfa1                    = wa_lfa1&lt;/P&gt;&lt;P&gt;      wa_ekko                    = wa_ekko&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      it_ekpo                    = it_ekpo&lt;/P&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     formatting_error           = 1&lt;/P&gt;&lt;P&gt;     internal_error             = 2&lt;/P&gt;&lt;P&gt;     send_error                 = 3&lt;/P&gt;&lt;P&gt;     user_canceled              = 4&lt;/P&gt;&lt;P&gt;     others                     = 5.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;         with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  VALIDATE_EBELN&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form validate_ebeln .&lt;/P&gt;&lt;P&gt;  select single ebeln&lt;/P&gt;&lt;P&gt;   from  ekko&lt;/P&gt;&lt;P&gt;   into v_ebeln&lt;/P&gt;&lt;P&gt;   where ebeln eq p_ebeln.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e030.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " VALIDATE_EBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  GET_DATA_FROM_LFA1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_data_from_lfa1 .&lt;/P&gt;&lt;P&gt;  if wa_ekko-lifnr is not initial.&lt;/P&gt;&lt;P&gt;    select single lifnr&lt;/P&gt;&lt;P&gt;                  land1&lt;/P&gt;&lt;P&gt;                  name1&lt;/P&gt;&lt;P&gt;                  ort01&lt;/P&gt;&lt;P&gt;                  pstlz&lt;/P&gt;&lt;P&gt;                  regio&lt;/P&gt;&lt;P&gt;             from lfa1&lt;/P&gt;&lt;P&gt;             into wa_lfa1&lt;/P&gt;&lt;P&gt;            where lifnr eq wa_ekko-lifnr.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " GET_DATA_FROM_LFA1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  GET_DATA_FROM_EKKO&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_data_from_ekko .&lt;/P&gt;&lt;P&gt;  select single   ebeln&lt;/P&gt;&lt;P&gt;                  bukrs&lt;/P&gt;&lt;P&gt;                  bstyp&lt;/P&gt;&lt;P&gt;                  bsart&lt;/P&gt;&lt;P&gt;                  aedat&lt;/P&gt;&lt;P&gt;                  ernam&lt;/P&gt;&lt;P&gt;                  lifnr&lt;/P&gt;&lt;P&gt;             from  ekko&lt;/P&gt;&lt;P&gt;            into wa_ekko&lt;/P&gt;&lt;P&gt;            where ebeln eq p_ebeln.&lt;/P&gt;&lt;P&gt;endform.                    " GET_DATA_FROM_EKKO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  GET_DATA_FROM_EKPO&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_data_from_ekpo .&lt;/P&gt;&lt;P&gt;  if not wa_ekko is initial.&lt;/P&gt;&lt;P&gt;    select ebeln&lt;/P&gt;&lt;P&gt;           ebelp&lt;/P&gt;&lt;P&gt;           aedat&lt;/P&gt;&lt;P&gt;           matnr&lt;/P&gt;&lt;P&gt;           bukrs&lt;/P&gt;&lt;P&gt;           matkl&lt;/P&gt;&lt;P&gt;           from ekpo into corresponding fields of table it_ekpo&lt;/P&gt;&lt;P&gt;           where ebeln = wa_ekko-ebeln.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " GET_DATA_FROM_EKPO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 07:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-que/m-p/3808568#M916050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T07:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Smartform Que.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-que/m-p/3808569#M916051</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;&lt;/P&gt;&lt;P&gt;SMARTFORM &amp;lt;----&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;&amp;gt; Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Every smartform,There is one Function Module (se37),.This FM, is GENERATED DYNAMICALLY,and the name is also dynamic. IT MEANS, that the FM name will Be DIFFERENT.in DEV, QA and PRD Server.Hence, we CANNOT HARDCODE the fm name.So, to fetch the FM name, given the smartform name,&lt;/P&gt;&lt;P&gt;this fm SSF_FUNCTION_MODULE_NAME is used. After that, we call the FM dynamically,with some specified/pre-defined format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link.I am expalining here how to use this function module.&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/pages/pointstab/viewpageversion.action?pageId=36109&amp;amp;version=2" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/pages/pointstab/viewpageversion.action?pageId=36109&amp;amp;version=2&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling SMARTFORMS from your ABAP program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZSMARTFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calling SMARTFORMS from your ABAP program. &lt;/P&gt;&lt;P&gt;Collecting all the table data in your program, and pass once to SMARTFORMS &lt;/P&gt;&lt;P&gt;SMARTFORMS &lt;/P&gt;&lt;P&gt;Declare your table type in :- &lt;/P&gt;&lt;P&gt;Global Settings -&amp;gt; Form Interface &lt;/P&gt;&lt;P&gt;Global Definintions -&amp;gt; Global Data &lt;/P&gt;&lt;P&gt;Main Window -&amp;gt; Table -&amp;gt; DATA &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming &lt;/P&gt;&lt;P&gt;&lt;A href="http://sapr3.tripod.com" target="test_blank"&gt;http://sapr3.tripod.com&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FM_NAME TYPE RS38L_FNAM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_MKPF OCCURS 0. &lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE MKPF. &lt;/P&gt;&lt;P&gt;DATA: END OF INT_MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR. &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING MKPF TO INT_MKPF. &lt;/P&gt;&lt;P&gt;APPEND INT_MKPF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of your program. &lt;/P&gt;&lt;P&gt;Passing data to SMARTFORMS &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 = 'ZSMARTFORM' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VARIANT = ' ' &lt;/P&gt;&lt;P&gt;DIRECT_CALL = ' ' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;FM_NAME = FM_NAME &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;NO_FORM = 1 &lt;/P&gt;&lt;P&gt;NO_FUNCTION_MODULE = 2 &lt;/P&gt;&lt;P&gt;OTHERS = 3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc 0. &lt;/P&gt;&lt;P&gt;WRITE: / 'ERROR 1'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function FM_NAME &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX = &lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX_TAB = &lt;/P&gt;&lt;P&gt;ARCHIVE_PARAMETERS = &lt;/P&gt;&lt;P&gt;CONTROL_PARAMETERS = &lt;/P&gt;&lt;P&gt;MAIL_APPL_OBJ = &lt;/P&gt;&lt;P&gt;MAIL_RECIPIENT = &lt;/P&gt;&lt;P&gt;MAIL_SENDER = &lt;/P&gt;&lt;P&gt;OUTPUT_OPTIONS = &lt;/P&gt;&lt;P&gt;USER_SETTINGS = 'X' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;DOCUMENT_OUTPUT_INFO = &lt;/P&gt;&lt;P&gt;JOB_OUTPUT_INFO = &lt;/P&gt;&lt;P&gt;JOB_OUTPUT_OPTIONS = &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;GS_MKPF = INT_MKPF &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;FORMATTING_ERROR = 1 &lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 2 &lt;/P&gt;&lt;P&gt;SEND_ERROR = 3 &lt;/P&gt;&lt;P&gt;USER_CANCELED = 4 &lt;/P&gt;&lt;P&gt;OTHERS = 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc 0. &lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 07:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartform-que/m-p/3808569#M916051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T07:24:27Z</dc:date>
    </item>
  </channel>
</rss>

