<?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: Error in ALV report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445001#M827369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lakshman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you declare your internal table. It shoudl not be with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this program for reference "BCALV_GRID_DEMO".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that is due to declaration of your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2008 05:30:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-12T05:30:45Z</dc:date>
    <item>
      <title>Error in ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445000#M827368</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;    I have written an ALV report.I declared an internal table wiht my own table fields. while calling method set_table_for_table_display using object of the cl_gui_alv_grid, it throws the error "the internal table you have created is not type compatible witht it_outtab" of the class.Please help me out and guide me where to check for correcting it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reply me soon...its urgent..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lakshmanan JK on Feb 12, 2008 6:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 05:21:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445000#M827368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T05:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445001#M827369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lakshman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you declare your internal table. It shoudl not be with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this program for reference "BCALV_GRID_DEMO".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess that is due to declaration of your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 05:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445001#M827369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T05:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error in ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445002#M827370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think the problem is with ur internal table declaration,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i suppose u have declared ur internal table as with header line or occurs 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead try declaring like this.&lt;/P&gt;&lt;P&gt;u have to create a work area say WA&lt;/P&gt;&lt;P&gt;and then create a internal table type work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab type table of wa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 05:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445002#M827370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T05:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445003#M827371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kiran,&lt;/P&gt;&lt;P&gt;   thanks for ur kind and quick reply. i have declared my internal table with data statement along with occurs 0 and without header line only. ok i will check that program as u told....but tel me where to check for the error...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 05:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445003#M827371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T05:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445004#M827372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lakshaman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaring with Occurs 0 it self means with header line. While using classes we should not use internal tabel with header line, rather you should declare internal table and header separately. &lt;/P&gt;&lt;P&gt;You can see the before program as example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 05:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445004#M827372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T05:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error in ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445005#M827373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are telling me to create my internal table with types statement and declare a work area using data statement right. then will it work fine?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 05:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445005#M827373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T05:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error in ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445006#M827374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let us have a trial in that prospective also. I think it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 05:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445006#M827374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T05:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error in ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445007#M827375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no it is not working fine..give some other idea. my internal table is with customized table fields so i cant use standard table in the i_structurename parameter in the function module.&lt;/P&gt;&lt;P&gt;my internal table has collection of fileds from various standard as well as customer tables, so i m confused where to check for the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 05:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445007#M827375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T05:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error in ALV report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445008#M827376</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;see try this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) create a work area.&lt;/P&gt;&lt;P&gt;   data : begin of wa,&lt;/P&gt;&lt;P&gt;              matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;              vbelen like vbap-vbeln,&lt;/P&gt;&lt;P&gt;            end of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  2) create a table.&lt;/P&gt;&lt;P&gt;     data : itab type table of wa.&lt;/P&gt;&lt;P&gt;now here according to your need i have a work area with fields from different table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now all u have to do is create a field catalog say gt_fieldcat&lt;/P&gt;&lt;P&gt;and use the function module &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;data : GRID1 TYPE REF TO CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD GRID1-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;     CHANGING IT_FIELDCATALOG = GT_FIELDCAT&lt;/P&gt;&lt;P&gt;                       IT_OUTTAB       = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you use &lt;STRONG&gt;i_structurename&lt;/STRONG&gt; parameter only when ur internal table is type standard SAP table and hence you dont need to create a field catalog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 06:05:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-alv-report/m-p/3445008#M827376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T06:05:06Z</dc:date>
    </item>
  </channel>
</rss>

