<?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: Passing data to custom smartform from a custom program... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-custom-smartform-from-a-custom-program/m-p/4482017#M1061150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;  In SMart form there  is form interface there you need to declare internal tables .To declare internal table you should have reference structure of Internal table in data base.Then only you can define Internal tables in smart form.Then after declaring Internal tables in smart form using dictionary structures, when you call smart form using function module '/XXXXXX' the internal tables which you declared in the form come automatically come as parameters, you can pass data to that internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you can retrive all the data in the smart form it self.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Narendra.Soma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2008 04:21:10 GMT</pubDate>
    <dc:creator>former_member761936</dc:creator>
    <dc:date>2008-09-17T04:21:10Z</dc:date>
    <item>
      <title>Passing data to custom smartform from a custom program...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-custom-smartform-from-a-custom-program/m-p/4482015#M1061148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;Since, the function module gets generated dynamically at runtime when smartform is activated, I know that first I should use  "SSF_FUNCTION_MODULE_NAME" and pass custom smartform name to it to get the name of function module. Then I have to use call function '/XXXXXXXXX'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I am writing a custom code and I want the data from my select program in custom program to be passed to smartform ? How can I pass the data from my custom program to smartform ? Do I pass it before using function module "SSF_FUNCTION_MODULE_NAME" ? If yes, how ?&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;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 02:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-custom-smartform-from-a-custom-program/m-p/4482015#M1061148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T02:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Passing data to custom smartform from a custom program...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-custom-smartform-from-a-custom-program/m-p/4482016#M1061149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In form interface if you declare internal table then it appears in fm you called there you can pass the data that is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 03:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-custom-smartform-from-a-custom-program/m-p/4482016#M1061149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T03:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Passing data to custom smartform from a custom program...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-custom-smartform-from-a-custom-program/m-p/4482017#M1061150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;  In SMart form there  is form interface there you need to declare internal tables .To declare internal table you should have reference structure of Internal table in data base.Then only you can define Internal tables in smart form.Then after declaring Internal tables in smart form using dictionary structures, when you call smart form using function module '/XXXXXX' the internal tables which you declared in the form come automatically come as parameters, you can pass data to that internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you can retrive all the data in the smart form it self.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Narendra.Soma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 04:21:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-custom-smartform-from-a-custom-program/m-p/4482017#M1061150</guid>
      <dc:creator>former_member761936</dc:creator>
      <dc:date>2008-09-17T04:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Passing data to custom smartform from a custom program...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-custom-smartform-from-a-custom-program/m-p/4482018#M1061151</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;u have to declare ur structures in form interface and can retrive the data from custom program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare structure in interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_MKPF TYPE MKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write ur custom code lik this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wahz TYPE zmemigo_form_header,&lt;/P&gt;&lt;P&gt;      wa_mkpf  TYPE mkpf.&lt;/P&gt;&lt;P&gt;DATA: t_itemz LIKE zmemigo_form_item OCCURS 0,&lt;/P&gt;&lt;P&gt;      t_mseg   TYPE mseg OCCURS 0,&lt;/P&gt;&lt;P&gt;      waitemz TYPE zmemigo_form_item,&lt;/P&gt;&lt;P&gt;      waitem TYPE mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : form_name TYPE tdsfname VALUE 'ZPS_STN'.&lt;/P&gt;&lt;P&gt;  DATA : fnc_module TYPE rs38l_fnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT SINGLE mblnr INTO wa_mkpf-mblnr FROM mseg&lt;/P&gt;&lt;P&gt;            CLIENT SPECIFIED WHERE  mandt EQ sy-mandt&lt;/P&gt;&lt;P&gt;                               AND  mblnr EQ p_mblnr&lt;/P&gt;&lt;P&gt;                               AND  mjahr EQ p_mjahr&lt;/P&gt;&lt;P&gt;                               AND  bwart EQ '351'&lt;/P&gt;&lt;P&gt;                               AND  shkzg EQ 'H'.&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                 = form_name&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                  = fnc_module&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;/P&gt;&lt;P&gt;  CALL FUNCTION fnc_module&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      wa_headz         = wahz&lt;/P&gt;&lt;P&gt;      wa_mkpf          = wa_mkpf&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      it_itemz         = t_itemz&lt;/P&gt;&lt;P&gt;      it_mseg          = t_mseg&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 04:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-data-to-custom-smartform-from-a-custom-program/m-p/4482018#M1061151</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-09-17T04:49:58Z</dc:date>
    </item>
  </channel>
</rss>

