<?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 to derive data from table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905584#M1328941</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;Not Very clear requirements. If you know the table name you can simply use select query in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FM is a mandatory requirement then, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"  CHANGING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(T_OUTTAB) TYPE  TY_CONNECTIONS&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM SPFLI INTO&lt;/P&gt;&lt;P&gt;         TABLE t_outtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can replace table name SPFLI with your Z table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2009 10:31:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-24T10:31:32Z</dc:date>
    <item>
      <title>function module to derive data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905580#M1328937</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;I need to display the contents of a database table using a fucntion module.&lt;/P&gt;&lt;P&gt;Can any one please share the source code ...i have never created fnction modules before ...please help me achieving this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u &lt;/P&gt;&lt;P&gt;harika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 08:10:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905580#M1328937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T08:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: function module to derive data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905581#M1328938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for creating a function module go through d given link. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Archana Kumari on Jul 24, 2009 10:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 08:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905581#M1328938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T08:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: function module to derive data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905582#M1328939</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;Please specify, you need to have FM to fetch values from any table ( generic ) or some specific table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chk out this standard FM 'CATT_GET_TABLE_ENTRIES' using SE37. and you can modulate the code as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 08:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905582#M1328939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T08:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: function module to derive data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905583#M1328940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anuradha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam working on Virtual Cube in BI ,for tht i need to have a FM to derive the contents of a database table.The table is a Ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i get the source code for deriving the data from a database table using FM ,i can use the same code in BI side making some modifications&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanky ou &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 09:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905583#M1328940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T09:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: function module to derive data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905584#M1328941</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;Not Very clear requirements. If you know the table name you can simply use select query in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FM is a mandatory requirement then, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"  CHANGING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(T_OUTTAB) TYPE  TY_CONNECTIONS&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM SPFLI INTO&lt;/P&gt;&lt;P&gt;         TABLE t_outtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can replace table name SPFLI with your Z table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 10:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905584#M1328941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T10:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: function module to derive data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905585#M1328942</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 the reply ,i have replaced the SPFLI to required Ztable..iam getting an error with the T_OUTTAB stating tht it is not convertible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code iam using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION ZTAB_DISPLAY.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(E_T_DATA) TYPE  /BI0/MGL_ACCOUNT&lt;/P&gt;&lt;P&gt;*"     REFERENCE(E_END_OF_DATA) TYPE  RSBOOL&lt;/P&gt;&lt;P&gt;*"     REFERENCE(E_T_MSG) TYPE  RS_T_MSG&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      TABLE&lt;/P&gt;&lt;P&gt;*"  CHANGING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(T_OUTTAB) TYPE  TY_CONNECTIONS&lt;/P&gt;&lt;P&gt;*"     REFERENCE(OUTPUT) TYPE  TCURR&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:itab type standard table of /BI0/MGL_ACCOUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM /BI0/MGL_ACCOUNT INTO&lt;/P&gt;&lt;P&gt;TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im not knwing how to display the itab data in output ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i use this code&lt;/P&gt;&lt;P&gt;SELECT * FROM /BI0/MGL_ACCOUNT INTO E_T_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as E_T_DATA is a WA it is displaying only one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me how can i display all the contents of ITAB in output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;harika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 10:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905585#M1328942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T10:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: function module to derive data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905586#M1328943</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;You need to pass output in a TABLE TYPE parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TY_CONNECTIONS ( it is table type for SPFLI ), Hence the SPFLI table data is fetched in this.&lt;/P&gt;&lt;P&gt;DO REPLACE IT with your desired table type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 11:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905586#M1328943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T11:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: function module to derive data from table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905587#M1328944</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;&lt;/P&gt;&lt;P&gt;thanks for the reply....&lt;/P&gt;&lt;P&gt;please tell me how can i find the table type for desired database table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;harika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2009 13:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-derive-data-from-table/m-p/5905587#M1328944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-24T13:04:36Z</dc:date>
    </item>
  </channel>
</rss>

