<?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 with ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv/m-p/3845996#M924637</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 am creating ALV report. I have declared one internal table with fields &lt;/P&gt;&lt;P&gt;like tables ables, anlv, anek,anlz, anlcv..tec. I am using Logial database &lt;/P&gt;&lt;P&gt;to select the data for internal table. After selecting all the required data &lt;/P&gt;&lt;P&gt;to internal table, I am facing the following problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the following code to create ALV I am getting the error saying &lt;/P&gt;&lt;P&gt;.."IAN (Internal table) is not compatible with formal parameter "IT_OUTTAB" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE PBO OUTPUT. &lt;/P&gt;&lt;P&gt;SET PF-STATUS 'MAIN100'. &lt;/P&gt;&lt;P&gt;IF G_CUSTOM_CONTAINER IS INITIAL. &lt;/P&gt;&lt;P&gt;CREATE OBJECT G_CUSTOM_CONTAINER &lt;/P&gt;&lt;P&gt;EXPORTING CONTAINER_NAME = G_CONTAINER. &lt;/P&gt;&lt;P&gt;CREATE OBJECT GRID1 &lt;/P&gt;&lt;P&gt;EXPORTING I_PARENT = G_CUSTOM_CONTAINER. &lt;/P&gt;&lt;P&gt;CALL METHOD GRID1-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY &lt;/P&gt;&lt;P&gt;CHANGING &lt;/P&gt;&lt;P&gt;IT_OUTTAB = IAN. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I use single table only like ANLV there is no problem.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 16:29:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T16:29:19Z</dc:date>
    <item>
      <title>Problem with ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv/m-p/3845996#M924637</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 am creating ALV report. I have declared one internal table with fields &lt;/P&gt;&lt;P&gt;like tables ables, anlv, anek,anlz, anlcv..tec. I am using Logial database &lt;/P&gt;&lt;P&gt;to select the data for internal table. After selecting all the required data &lt;/P&gt;&lt;P&gt;to internal table, I am facing the following problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the following code to create ALV I am getting the error saying &lt;/P&gt;&lt;P&gt;.."IAN (Internal table) is not compatible with formal parameter "IT_OUTTAB" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE PBO OUTPUT. &lt;/P&gt;&lt;P&gt;SET PF-STATUS 'MAIN100'. &lt;/P&gt;&lt;P&gt;IF G_CUSTOM_CONTAINER IS INITIAL. &lt;/P&gt;&lt;P&gt;CREATE OBJECT G_CUSTOM_CONTAINER &lt;/P&gt;&lt;P&gt;EXPORTING CONTAINER_NAME = G_CONTAINER. &lt;/P&gt;&lt;P&gt;CREATE OBJECT GRID1 &lt;/P&gt;&lt;P&gt;EXPORTING I_PARENT = G_CUSTOM_CONTAINER. &lt;/P&gt;&lt;P&gt;CALL METHOD GRID1-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY &lt;/P&gt;&lt;P&gt;CHANGING &lt;/P&gt;&lt;P&gt;IT_OUTTAB = IAN. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I use single table only like ANLV there is no problem.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 16:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv/m-p/3845996#M924637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T16:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv/m-p/3845997#M924638</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;Can you elaborate your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 16:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv/m-p/3845997#M924638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T16:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv/m-p/3845998#M924639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is your table IAN is with header line , if yes the pass IAN[] to the method and see,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 16:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv/m-p/3845998#M924639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T16:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv/m-p/3845999#M924640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes such problem comes in case of ALV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to resolve the same in 2 ways : &lt;/P&gt;&lt;P&gt;1. You can create a User defined structure in SAP and refer &lt;/P&gt;&lt;P&gt;to the sam when writing the code. As in following code &lt;/P&gt;&lt;P&gt;ZSFLIGHT. &lt;/P&gt;&lt;P&gt;*&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;CALL METHOD grid-&amp;gt;set_table_for_first_display &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;I_STRUCTURE_NAME = 'ZSFLIGHT' =93Structure data &lt;/P&gt;&lt;P&gt;CHANGING &lt;/P&gt;&lt;P&gt;IT_OUTTAB = gt_sflight. =93 Output table &lt;/P&gt;&lt;P&gt;*&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OTHERWISE, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create a field catalog and use the same integrating with your ALV &lt;/P&gt;&lt;P&gt;for that you have to use &lt;/P&gt;&lt;P&gt;*&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;call function 'LVC_FIELDCATALOG_MERGE' &lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;i_structure_name = 'STRUCT / table' &lt;/P&gt;&lt;P&gt;changing &lt;/P&gt;&lt;P&gt;ct_fieldcat = p_invfieldcat[]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***then associate the same with set_table_for_first_display as follows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method grid-&amp;gt;set_table_for_first_display &lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;is_layout = gs_layout &lt;/P&gt;&lt;P&gt;changing &lt;/P&gt;&lt;P&gt;it_fieldcatalog = invfieldcat[] &lt;/P&gt;&lt;P&gt;it_outtab = outinvoice. &lt;/P&gt;&lt;P&gt;*&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more option is to USE full screen ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 16:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv/m-p/3845999#M924640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T16:53:44Z</dc:date>
    </item>
  </channel>
</rss>

