<?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 Replacing the select query with function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228200#M1380167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to abap and i got a requirement to have a details of sales order and customer master.  So i have written a select query for that but now they are asking me to replace the select query with function module.&lt;/P&gt;&lt;P&gt;here is the select queries,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1)  SELECT vbeln vkorg vtweg spart kunnr&lt;/P&gt;&lt;P&gt;         FROM vbak&lt;/P&gt;&lt;P&gt;         INTO TABLE t_vbak&lt;/P&gt;&lt;P&gt;         WHERE vbeln IN s_order&lt;/P&gt;&lt;P&gt;         AND kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;         AND vkorg IN s_sorg&lt;/P&gt;&lt;P&gt;         AND vtweg IN s_dc&lt;/P&gt;&lt;P&gt;         AND spart IN s_div.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2)   SELECT kunnr vkorg vtweg spart&lt;/P&gt;&lt;P&gt;         FROM knvv&lt;/P&gt;&lt;P&gt;         INTO TABLE t_knvv&lt;/P&gt;&lt;P&gt;         WHERE kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;         AND  vkorg IN s_sorg&lt;/P&gt;&lt;P&gt;         AND  vtweg IN s_dc&lt;/P&gt;&lt;P&gt;         AND  spart IN s_div.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the s_sorg, s_dc, s_div, s_kunnr all are select options and the mandatory select option is "Sales Organization(vkorg)" so in selection screen i may enter the sales order number and customer number, if i dont enter those then according to the sales organization i need to get the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell me the function module for this??? or select query is the correct option for this task........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also can anyone explain me how to search the function module for any of the requirement ........ so that i can search the function module independently......... it will be a great help if u explain me............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2009 06:01:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-19T06:01:04Z</dc:date>
    <item>
      <title>Replacing the select query with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228200#M1380167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to abap and i got a requirement to have a details of sales order and customer master.  So i have written a select query for that but now they are asking me to replace the select query with function module.&lt;/P&gt;&lt;P&gt;here is the select queries,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1)  SELECT vbeln vkorg vtweg spart kunnr&lt;/P&gt;&lt;P&gt;         FROM vbak&lt;/P&gt;&lt;P&gt;         INTO TABLE t_vbak&lt;/P&gt;&lt;P&gt;         WHERE vbeln IN s_order&lt;/P&gt;&lt;P&gt;         AND kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;         AND vkorg IN s_sorg&lt;/P&gt;&lt;P&gt;         AND vtweg IN s_dc&lt;/P&gt;&lt;P&gt;         AND spart IN s_div.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2)   SELECT kunnr vkorg vtweg spart&lt;/P&gt;&lt;P&gt;         FROM knvv&lt;/P&gt;&lt;P&gt;         INTO TABLE t_knvv&lt;/P&gt;&lt;P&gt;         WHERE kunnr IN s_kunnr&lt;/P&gt;&lt;P&gt;         AND  vkorg IN s_sorg&lt;/P&gt;&lt;P&gt;         AND  vtweg IN s_dc&lt;/P&gt;&lt;P&gt;         AND  spart IN s_div.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the s_sorg, s_dc, s_div, s_kunnr all are select options and the mandatory select option is "Sales Organization(vkorg)" so in selection screen i may enter the sales order number and customer number, if i dont enter those then according to the sales organization i need to get the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell me the function module for this??? or select query is the correct option for this task........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also can anyone explain me how to search the function module for any of the requirement ........ so that i can search the function module independently......... it will be a great help if u explain me............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kalai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 06:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228200#M1380167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T06:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing the select query with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228201#M1380168</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;You can create your own &lt;STRONG&gt;Z&lt;/STRONG&gt; function module, and then use this FM instead of queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 06:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228201#M1380168</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-10-19T06:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing the select query with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228202#M1380169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi tarun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i should not use zfunction module.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 06:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228202#M1380169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T06:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing the select query with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228203#M1380170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u shud create a Z FM for ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create ur own function module for your requirement. &lt;/P&gt;&lt;P&gt;Goto SE37 -&amp;gt; give a FM name with 'Z'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the &lt;STRONG&gt;Exporting&lt;/STRONG&gt; parameters of the FM give the names of ur internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the &lt;STRONG&gt;Importing&lt;/STRONG&gt; parameters, give ur select-options data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use ur logic of selecting the fields as u wanted..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in ur code u can call this FM with the Importing parameters and the Exporting parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can google to find the list of FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html" target="test_blank"&gt;http://sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html&lt;/A&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;Surya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Surya PK on Oct 19, 2009 8:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 06:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228203#M1380170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T06:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing the select query with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228204#M1380171</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;can anyone tell me how should i search for function module not for this requirement im asking generally so that i can independently search.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 07:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228204#M1380171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T07:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing the select query with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228205#M1380172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 07:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228205#M1380172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T07:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing the select query with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228206#M1380173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to se37.  Click on the binoculars symbol.  Use * as a wildcard, search by function module name and description.  Note - there may not be a function module that meets your requirements.  If that is the case, and you are not allowed to write your own function module, tell your employer that it is &lt;STRONG&gt;impossible&lt;/STRONG&gt; to meet their requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 07:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228206#M1380173</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-10-19T07:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing the select query with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228207#M1380174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you valuable tips.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the only way to find the function module or else is there any other way to find a function module im asking generically !!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 09:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228207#M1380174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-19T09:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing the select query with function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228208#M1380175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; A generic way to find function modules that use table XYZ:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- transaction SE11; enter the table name XYZ&lt;/P&gt;&lt;P&gt;- display&lt;/P&gt;&lt;P&gt;- click on table name XYZ &amp;amp; press 'where-used' button&lt;/P&gt;&lt;P&gt;- restrict the search to 'function modules'&lt;/P&gt;&lt;P&gt;- eyeball the list to find a function module that performs selections (eg GET_..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's a very hard way to go about it though. It's unlikely you will find exactly what you want.&lt;/P&gt;&lt;P&gt;It's often easier to write your own class method or a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Paul Bakker&lt;/P&gt;&lt;P&gt;Hanabi Technology&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2009 12:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-the-select-query-with-function-module/m-p/6228208#M1380175</guid>
      <dc:creator>paul_bakker2</dc:creator>
      <dc:date>2009-10-19T12:20:02Z</dc:date>
    </item>
  </channel>
</rss>

