<?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 Problem facing in Function module. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-facing-in-function-module/m-p/3180711#M757267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy New year to all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing the problem while crating Function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As my requirement:&lt;/P&gt;&lt;P&gt;I need to call this Function module in SAP-BW application area. I am creating this in BW side(SE37).&lt;/P&gt;&lt;P&gt;The intenal table which i am passing to the function module will vary. The structure is not constant. &lt;/P&gt;&lt;P&gt;Data is flowing from one table(source table) to another table(Destination table) . In BW if we want to refer the data in source table in START ROUTINE while loading, we use SOURCE_PACKAGE internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I am passing Source_package internal table as ITAB_SOURCE_PACKAGE. (this source_package strucute also not canstant, it will vary)&lt;/P&gt;&lt;P&gt;2) passing second internal table as ITAB1, this structure also vary. I will declare this structure before calling the function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Function module Table tab i given as &lt;/P&gt;&lt;P&gt;PARAMETER       TYPE           Associated Type&lt;/P&gt;&lt;P&gt;ITAB1                   LIKE           ANY	&lt;/P&gt;&lt;P&gt;ITAB_SOURCE_PACK   LIKE	 ANY&lt;/P&gt;&lt;P&gt;In Import tab:&lt;/P&gt;&lt;P&gt;SOURCEINFOOBJECT           pass value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In source code i written as&lt;/P&gt;&lt;P&gt;DATA: WA_SOURCE_PACK like line of ITAB_SOURCE_PACK.&lt;/P&gt;&lt;P&gt;DATA: WA_ITAB1 like line of ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB_SOURCE_PACK INTO WA_SOURCE_PACK.&lt;/P&gt;&lt;P&gt;  READ TABLE ITAB1 WITH KEY SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT&lt;/P&gt;&lt;P&gt;  INTO WA_ITAB1.&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IF SY-SUBRC NE  0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    WA_ITAB1-SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT.&lt;/P&gt;&lt;P&gt;    INSERT WA_ITAB1 INTO TABLE ITAB1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;(Note: this is piece of code)&lt;/P&gt;&lt;P&gt;While checking i am getting as error&lt;/P&gt;&lt;P&gt;Field "ANY" is unknown. It is neither in one of the specified tablesnor defined by a "DATA" statement. "DATA" statement. "DATA" statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this what i need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i am not very good in ABAP, pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regard&lt;/P&gt;&lt;P&gt;MRK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Dec 2007 06:06:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-26T06:06:26Z</dc:date>
    <item>
      <title>Problem facing in Function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-facing-in-function-module/m-p/3180711#M757267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy New year to all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing the problem while crating Function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As my requirement:&lt;/P&gt;&lt;P&gt;I need to call this Function module in SAP-BW application area. I am creating this in BW side(SE37).&lt;/P&gt;&lt;P&gt;The intenal table which i am passing to the function module will vary. The structure is not constant. &lt;/P&gt;&lt;P&gt;Data is flowing from one table(source table) to another table(Destination table) . In BW if we want to refer the data in source table in START ROUTINE while loading, we use SOURCE_PACKAGE internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I am passing Source_package internal table as ITAB_SOURCE_PACKAGE. (this source_package strucute also not canstant, it will vary)&lt;/P&gt;&lt;P&gt;2) passing second internal table as ITAB1, this structure also vary. I will declare this structure before calling the function module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Function module Table tab i given as &lt;/P&gt;&lt;P&gt;PARAMETER       TYPE           Associated Type&lt;/P&gt;&lt;P&gt;ITAB1                   LIKE           ANY	&lt;/P&gt;&lt;P&gt;ITAB_SOURCE_PACK   LIKE	 ANY&lt;/P&gt;&lt;P&gt;In Import tab:&lt;/P&gt;&lt;P&gt;SOURCEINFOOBJECT           pass value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In source code i written as&lt;/P&gt;&lt;P&gt;DATA: WA_SOURCE_PACK like line of ITAB_SOURCE_PACK.&lt;/P&gt;&lt;P&gt;DATA: WA_ITAB1 like line of ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB_SOURCE_PACK INTO WA_SOURCE_PACK.&lt;/P&gt;&lt;P&gt;  READ TABLE ITAB1 WITH KEY SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT&lt;/P&gt;&lt;P&gt;  INTO WA_ITAB1.&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IF SY-SUBRC NE  0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    WA_ITAB1-SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT.&lt;/P&gt;&lt;P&gt;    INSERT WA_ITAB1 INTO TABLE ITAB1.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;(Note: this is piece of code)&lt;/P&gt;&lt;P&gt;While checking i am getting as error&lt;/P&gt;&lt;P&gt;Field "ANY" is unknown. It is neither in one of the specified tablesnor defined by a "DATA" statement. "DATA" statement. "DATA" statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this what i need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i am not very good in ABAP, pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regard&lt;/P&gt;&lt;P&gt;MRK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 06:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-facing-in-function-module/m-p/3180711#M757267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T06:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem facing in Function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-facing-in-function-module/m-p/3180712#M757268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of like use type..&lt;/P&gt;&lt;P&gt;ITAB1 TYPE ANY &lt;/P&gt;&lt;P&gt;ITAB_SOURCE_PACK type ANY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward points if dis helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 06:10:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-facing-in-function-module/m-p/3180712#M757268</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-12-26T06:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem facing in Function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-facing-in-function-module/m-p/3180713#M757269</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;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still i am getting same message. Even after chainging LIKE to TYPE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 06:14:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-facing-in-function-module/m-p/3180713#M757269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T06:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem facing in Function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-facing-in-function-module/m-p/3180714#M757270</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 do like this..decalre itab1 and ITAB_SOURCE_PACK in the tables parameter...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so change like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Function module Table tab do like this &lt;/P&gt;&lt;P&gt;PARAMETER TYPE Associated Type&lt;/P&gt;&lt;P&gt;ITAB1 &lt;/P&gt;&lt;P&gt;ITAB_SOURCE_PACK &lt;/P&gt;&lt;P&gt;In Import tab:&lt;/P&gt;&lt;P&gt;SOURCEINFOOBJECT pass value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In source code i written as&lt;/P&gt;&lt;P&gt;DATA: WA_SOURCE_PACK type ITAB_SOURCE_PACK.&lt;/P&gt;&lt;P&gt;DATA: WA_ITAB1 type ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB_SOURCE_PACK INTO WA_SOURCE_PACK.&lt;/P&gt;&lt;P&gt;READ TABLE ITAB1 WITH KEY SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT&lt;/P&gt;&lt;P&gt;INTO WA_ITAB1.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;WA_ITAB1-SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT.&lt;/P&gt;&lt;P&gt;INSERT WA_ITAB1 INTO TABLE ITAB1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 06:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-facing-in-function-module/m-p/3180714#M757270</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-12-26T06:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem facing in Function module.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-facing-in-function-module/m-p/3180715#M757271</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;What should i give associated type for &lt;/P&gt;&lt;P&gt;ITAB1 and ITAB_SOURCE_PACK  in TABLES tab of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i left empty, it giving as ITAB_SOURCE_PACK   is not defined. If i give TYPING as TYPES and associated type  as ANY, it giving error as &lt;/P&gt;&lt;P&gt;Field "ANY" is unknown. It is neither in one of the specified tablesnor defined by a "DATA" statement. "DATA" statement. "DATA" statement.		&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;MRK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 06:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-facing-in-function-module/m-p/3180715#M757271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T06:37:46Z</dc:date>
    </item>
  </channel>
</rss>

