<?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: FUNCTION MODULE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082700#M731049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am passing all 4 fields and it is also showing 2 entries but when i am entering inside it,it shows no entries,only 2 columns that is keypart and funcpart is coming.&lt;/P&gt;&lt;P&gt;Plz suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2007 19:17:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-03T19:17:05Z</dc:date>
    <item>
      <title>FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082697#M731046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

Tables:
itab1 like itab.

Import Parameters:
p_erdat like vbak-erdat.
p_vkorg like vbak-vkorg.
p_vtweg like vbak-vtweg.
p_spart like vbak-spart.

Source Code:
DATA:BEGIN OF ITAB OCCURS 0,
       vbeln LIKE vbak-vbeln,
       bsark LIKE vbak-bsark,
       vtweg LIKE vbak-vtweg,
       spart LIKE vbak-spart,
       vdatu LIKE vbak-vdatu,
       END OF ITAB.

  SELECT vbeln bsark vtweg spart vdatu
  FROM vbak
  INTO CORRESPONDING FIELDS OF TABLE ITAB1
  WHERE
  erdat = p_erdat AND
  vkorg = p_vkorg AND
  vtweg = p_vtweg AND
  spart = p_spart.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Function Module in which I have given the above entries,but I am not getting any data in  internal table itab1.Can anyone please suggest.points will be no doubt rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 18:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082697#M731046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T18:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082698#M731047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to get the values from this select query you must pass all 4 fields with values. If you don't put value to any field you will not get any data in the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make your fields as mandatory parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 19:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082698#M731047</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-12-03T19:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082699#M731048</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;1. change itab1 to itab&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT vbeln bsark vtweg spart vdatu
  FROM vbak
  INTO CORRESPONDING FIELDS OF TABLE ITAB "&amp;lt;&amp;lt;&amp;lt;&amp;lt;
  WHERE
  erdat = p_erdat AND
  vkorg = p_vkorg AND
  vtweg = p_vtweg AND
  spart = p_spart.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If you are not getting value then first go to se16 --&amp;gt; enter table name VBAK and give all input values for erdat, vkorg, vtweg, spart and check whether you are getting entries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 19:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082699#M731048</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-12-03T19:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082700#M731049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am passing all 4 fields and it is also showing 2 entries but when i am entering inside it,it shows no entries,only 2 columns that is keypart and funcpart is coming.&lt;/P&gt;&lt;P&gt;Plz suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 19:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082700#M731049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T19:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082701#M731050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure the alpha exit ( Padding zeros) are fine...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 19:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082701#M731050</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2007-12-03T19:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082702#M731051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your table Parameter is WRONG. YOu have declared it with type ITAB ( Which is a structure with two fields KEYPART&lt;/P&gt;&lt;P&gt;FUNCPART )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should declare your own structure with required fields and then use that structure for declaring the parameter ITAB1 in your TABLES parameter for the Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a new structure with fields vbeln bsark vtweg spart vdatu. &lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Declare your Tables Parameter ITAB1 with type VBAK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Abhishek Jolly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 19:49:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082702#M731051</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-12-03T19:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082703#M731052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the date format which you are passing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 19:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082703#M731052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T19:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082704#M731053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;gt; I am passing all 4 fields &amp;lt;-- assuming that these are 4 import parameters
&amp;gt; and it is also showing 2 entries &amp;lt;-- what is 'it'? 2 entries means you see 2 records in itab1?
&amp;gt; but when i am entering inside it,it shows no entries, &amp;lt;-- What do you mean by "inside it"?
&amp;gt; only 2 columns that is keypart and funcpart is coming. &amp;lt;-- What do you mean by funcpart and keypart?&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 20:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082704#M731053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T20:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082705#M731054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean when I loook into itab1 in output, not a single field that are present in itab is present in itab1.&lt;/P&gt;&lt;P&gt;Is there any error in declaring internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 21:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082705#M731054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T21:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082706#M731055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your TABLES Parameter is WRONG. YOu have declared it with type ITAB ( Which is a structure with two fields KEYPART&lt;/P&gt;&lt;P&gt;FUNCPART )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should declare your own structure with required fields and then use that structure for declaring the parameter ITAB1 in your TABLES parameter for the Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Create a new structure with fields vbeln bsark vtweg spart vdatu and use it in the tables parameter for ITAB1&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Declare your Tables Parameter ITAB1  LIKE VBAK&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The TABLES Parameter ITAB1 is not using the Local Internal table structure declared in the Source code. Its using the Data dictinoary structure ITAB&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 21:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082706#M731055</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-12-03T21:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION MODULE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082707#M731056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  SELECT vbeln bsark vtweg spart vdatu
  FROM vbak
  APPENDING CORRESPONDING FIELDS OF TABLE ITAB1    "&amp;lt;===
  WHERE ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2007 21:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3082707#M731056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-03T21:41:47Z</dc:date>
    </item>
  </channel>
</rss>

