<?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 Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3438624#M825780</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;I want to create a Function Module...&lt;/P&gt;&lt;P&gt;In my FM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, In &lt;STRONG&gt;Import&lt;/STRONG&gt; insert value -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;STRONG&gt;Parameter Name--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/DEL&gt;--Associate Type&lt;/P&gt;&lt;P&gt;KUNNR--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="------------" /&gt;LIKE----KNA1-KUNNR&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, In &lt;STRONG&gt;Export&lt;/STRONG&gt;  insert values -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;STRONG&gt;Parameter Name--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;Type Spec.&lt;/STRONG&gt;&lt;/DEL&gt;--Associate Type&lt;/P&gt;&lt;P&gt;NAME1--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;LIKE--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;KNA1-NAME1&lt;/P&gt;&lt;P&gt;LAND1--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;LIKE--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;KNA1-LAND1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want that &lt;STRONG&gt;data should come respectively KUNNR&lt;/STRONG&gt;...&lt;/P&gt;&lt;P&gt;When i insert KUNNR value, it show the NAME1 &amp;amp; LAND1 values according to KUNNR....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do....&lt;/P&gt;&lt;P&gt;Here i use an Internal Table (in Tables) or not....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, in Source Code....what i write....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz Explain.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Feb 2008 04:45:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-09T04:45:17Z</dc:date>
    <item>
      <title>Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3438624#M825780</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;I want to create a Function Module...&lt;/P&gt;&lt;P&gt;In my FM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, In &lt;STRONG&gt;Import&lt;/STRONG&gt; insert value -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;STRONG&gt;Parameter Name--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/DEL&gt;--Associate Type&lt;/P&gt;&lt;P&gt;KUNNR--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="------------" /&gt;LIKE----KNA1-KUNNR&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, In &lt;STRONG&gt;Export&lt;/STRONG&gt;  insert values -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;STRONG&gt;Parameter Name--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;Type Spec.&lt;/STRONG&gt;&lt;/DEL&gt;--Associate Type&lt;/P&gt;&lt;P&gt;NAME1--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;LIKE--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;KNA1-NAME1&lt;/P&gt;&lt;P&gt;LAND1--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;LIKE--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;KNA1-LAND1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want that &lt;STRONG&gt;data should come respectively KUNNR&lt;/STRONG&gt;...&lt;/P&gt;&lt;P&gt;When i insert KUNNR value, it show the NAME1 &amp;amp; LAND1 values according to KUNNR....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do....&lt;/P&gt;&lt;P&gt;Here i use an Internal Table (in Tables) or not....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, in Source Code....what i write....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz Explain.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 04:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3438624#M825780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T04:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3438625#M825781</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;if u want land1 and name1 depending on kunnr then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import parameters&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export  parameters&lt;/P&gt;&lt;P&gt;land1&lt;/P&gt;&lt;P&gt;name1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;itab like kna1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source code&lt;/P&gt;&lt;P&gt;select land1 name1 from kna1 into table itab where kunnr = p_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 04:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3438625#M825781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T04:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3438626#M825782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Go to source code of that funciton module.&lt;/P&gt;&lt;P&gt;write the below code in that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr name1 land1 from kna1 into table itab where kunnr in s_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you call that function module in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the program is like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-optiions : s_kunnr for kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of t_kunnr,&lt;/P&gt;&lt;P&gt;kunnr type kunnr,&lt;/P&gt;&lt;P&gt;name1 type name1,&lt;/P&gt;&lt;P&gt;land1 type land1,&lt;/P&gt;&lt;P&gt;end of t_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_kunnr type t_kunnr,&lt;/P&gt;&lt;P&gt;itab type table of t_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'function module name'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;kunnr = s_kunnr&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;name1 = name1&lt;/P&gt;&lt;P&gt;land1 = land1&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = itab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;swami&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 05:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3438626#M825782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T05:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3438627#M825783</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 need not use the "Tables" to strore the NAME1 and LAND1 values. KUNNR is the only key field in KNA1 table. So it will return only one record for a KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u can declare the NAME1 and LAND1 in &lt;STRONG&gt;EXPORT&lt;/STRONG&gt; parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KUNNR in &lt;STRONG&gt;Import&lt;/STRONG&gt; parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select single NAME1 LAND1 from KNA1 into (NAME1, LAND1) where kunnr = KUNNR.&lt;/STRONG&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;Now, u will have the output in NAME1 and in LAND1.&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;STRONG&gt;Kindly reward points if useful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shanthi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shanthi ps on Feb 9, 2008 6:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 05:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3438627#M825783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T05:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3438628#M825784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for a customer number kunnr if they are more names name1 then will ur select statement work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single NAME1 LAND1 from KNA1 into (NAME1, LAND1) where kunnr = KUNNR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Feb 2008 05:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3438628#M825784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-09T05:21:34Z</dc:date>
    </item>
  </channel>
</rss>

