<?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: 1.Select Distinct 2.Call Function v_name????? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546667#M579397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are half right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_name is not the name of the function module but the name of the variable which stores the function module name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go into debug mode, you will be able to see the name of the function module&lt;/P&gt;&lt;P&gt;it will be something like '/1BCDWB/SF00000107' and that is the function that the smartform created upon activation of the smart form&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2007 06:45:28 GMT</pubDate>
    <dc:creator>former_member189059</dc:creator>
    <dc:date>2007-07-09T06:45:28Z</dc:date>
    <item>
      <title>1.Select Distinct 2.Call Function v_name?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546659#M579389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.select distinct aufnr&lt;/P&gt;&lt;P&gt;       from mseg&lt;/P&gt;&lt;P&gt;       into table it_mseg_new&lt;/P&gt;&lt;P&gt;       where mblnr in s_mblnr and&lt;/P&gt;&lt;P&gt;             mjahr = p_mjahr.&lt;/P&gt;&lt;P&gt;What does Select Distinct mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Here we have called a smartform using the Fn Mod&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           = v_form&lt;/P&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;    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;&lt;/P&gt;&lt;P&gt;CALL FUNCTION v_name&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         v_werks   = v_plant&lt;/P&gt;&lt;P&gt;         v_name1   = v_name1&lt;/P&gt;&lt;P&gt;         v_refer   = p_refer&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;         it_header = it_header&lt;/P&gt;&lt;P&gt;         it_final  = it_final1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_names is declared rs38l_fnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting what is this fn  mod v_name is.&lt;/P&gt;&lt;P&gt;What is the logic behind this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone here please let me know about the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546659#M579389</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-07-09T05:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: 1.Select Distinct 2.Call Function v_name?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546660#M579390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Select distinct means that if there are two same values for aufnr in the table mseg, then only one value will be selected into your internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:28:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546660#M579390</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-07-09T05:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: 1.Select Distinct 2.Call Function v_name?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546661#M579391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2. Say i have a program in which I have called the smartform in direct method by using the function module generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I change that smartform so much, sometimes a new function module will be generated. or if I delete that smartform and create a new one with same name, a new function module will be generated. Then I need to go and change all programs that call this smartform directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the two step process, it is not necessary. Everytime the function module related to a smart form changes, the SSF_FUNCTION_MODULE_NAME fetches the latest. So we dont need to update our report programs each time we manipulate the smartform&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546661#M579391</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-07-09T05:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: 1.Select Distinct 2.Call Function v_name?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546662#M579392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;( &lt;A href="https://community.sap.com/DISTINCT"&gt;&lt;/A&gt; ( &lt;A href="https://community.sap.com/DISTINCT"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read a several entries from the database, use the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;A href="https://community.sap.com/DISTINCT"&gt;&lt;/A&gt; . If the target area is not an internal table, but a flat structure, you must include an ENDSELECT statement after the SELECT statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;A href="https://community.sap.com/DISTINCT"&gt;&lt;/A&gt; FM Name.&lt;/P&gt;&lt;P&gt;It is the same , but instead of hard-coding it you can take it as V_NAME.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546662#M579392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T05:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: 1.Select Distinct 2.Call Function v_name?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546663#M579393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran, Sorry for the last thread!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546663#M579393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-09T05:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: 1.Select Distinct 2.Call Function v_name?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546664#M579394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SSF fn mod itself  I am using v_name instead of giving the smartform name,that is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why we are using again &amp;lt;b&amp;gt;call function v_name&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;I just wanna know how this function module is called.I had checked in se37 but in vain.So,it is not a z fun.mod,then how is this called in the program,what is the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546664#M579394</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-07-09T05:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: 1.Select Distinct 2.Call Function v_name?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546665#M579395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the SSF function mod v_name is used as an import parameter&lt;/P&gt;&lt;P&gt;that means that the function returns a value (the name of the smartform function) and stores it in v_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this fn module is dynamically generated when a smartform is activated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we call this v_name function which we get from the SSF function to execute the smartform&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 05:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546665#M579395</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-07-09T05:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: 1.Select Distinct 2.Call Function v_name?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546666#M579396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you mean to say this function module &amp;lt;b&amp;gt;call function v_name&amp;lt;/b&amp;gt; has got generated automatically along with that ssf.......Did I get you right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 06:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546666#M579396</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-07-09T06:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: 1.Select Distinct 2.Call Function v_name?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546667#M579397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are half right&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_name is not the name of the function module but the name of the variable which stores the function module name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go into debug mode, you will be able to see the name of the function module&lt;/P&gt;&lt;P&gt;it will be something like '/1BCDWB/SF00000107' and that is the function that the smartform created upon activation of the smart form&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 06:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546667#M579397</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-07-09T06:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: 1.Select Distinct 2.Call Function v_name?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546668#M579398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right,I was able to see the same Fn Mod num in this v_name fn.&lt;/P&gt;&lt;P&gt;Thanks a ton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2007 06:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546668#M579398</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-07-09T06:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: 1.Select Distinct 2.Call Function v_name?????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546669#M579399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem Solved.&lt;/P&gt;&lt;P&gt;Thanks a ton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 05:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/1-select-distinct-2-call-function-v-name/m-p/2546669#M579399</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-07-24T05:24:35Z</dc:date>
    </item>
  </channel>
</rss>

