<?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: ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618807#M276989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anurita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is with the FM of field catalog. Though the previous declaration was correct, but the FM does not accept it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, if you pass a internal table without header line or a internal table with the 2nd declaration which you had mentioned, then it would work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its alwayz good to use explicit work area along with Internal table rather than using internal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So try to avoid using internal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Sep 2006 08:30:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-23T08:30:54Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618797#M276979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creatin a field catalog by using func module REUSE_ALV_FIELDCATALOG_MERGE. In this we have to pass the Internal Table name. IT_DATA is the name of my internal table. When I declare it as &lt;/P&gt;&lt;P&gt;IT_DATA TYPE IT_TYPE OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;its gives a runtime error that 'Field catalog not found'.But when I declare my internal table by using &lt;/P&gt;&lt;P&gt;BEGIN OF IT_DATA OCCURS 0,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;END OF IT_DATA.&lt;/P&gt;&lt;P&gt;It is working.&lt;/P&gt;&lt;P&gt;Please tell me the difference in these two declarations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 05:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618797#M276979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-23T05:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618798#M276980</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;When you declare :&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Data : IT_DATA TYPE IT_TYPE OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also have to declar IT_TYPE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : Begin of IT_TYPE,&lt;/P&gt;&lt;P&gt;            matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;            maktx type makt-matkx,&lt;/P&gt;&lt;P&gt;        end of IT_TYPE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Data : IT_DATA TYPE IT_TYPE OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above declarations, we have declared a TYPE first and then declared an internal table of that TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA : BEGIN OF IT_DATA OCCURS 0,&lt;/P&gt;&lt;P&gt;            matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;            maktx type makt-matkx, &lt;/P&gt;&lt;P&gt;       END OF IT_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, we havent declared any TYPE, but directly created an internal table. This is the difference.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : Please reward all helpful answers by selecting appropriate radio buttons on the left&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 05:29:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618798#M276980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-23T05:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618799#M276981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prashant,&lt;/P&gt;&lt;P&gt;I have declared IT_TYPE in the similar manner,otherwise it would have thrown a syntax error that 'IT_TYPE is unknown'.&lt;/P&gt;&lt;P&gt;Syntactically my code is correct in both the case.&lt;/P&gt;&lt;P&gt;But there is a runtime error when I declare internal table using TYPE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 05:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618799#M276981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-23T05:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618800#M276982</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;Could you please post the declartions.&lt;/P&gt;&lt;P&gt;Please paste the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 05:58:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618800#M276982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-23T05:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618801#M276983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPES : BEGIN OF it_type ,&lt;/P&gt;&lt;P&gt;         ebeln LIKE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;         ebelp LIKE ekpo-ebelp,&lt;/P&gt;&lt;P&gt;         werks LIKE ekpo-werks,&lt;/P&gt;&lt;P&gt;         matnr LIKE ekpo-matnr,&lt;/P&gt;&lt;P&gt;         menge LIKE ekpo-menge,&lt;/P&gt;&lt;P&gt;         wempf LIKE ekkn-wempf,&lt;/P&gt;&lt;P&gt;         maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;       END OF it_type.&lt;/P&gt;&lt;P&gt;DATA : it_data TYPE it_type OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;In this case field catalog is not filled with the field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF IT_DATA OCCURS 0,&lt;/P&gt;&lt;P&gt;         ebeln LIKE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;         ebelp LIKE ekpo-ebelp,&lt;/P&gt;&lt;P&gt;         werks LIKE ekpo-werks,&lt;/P&gt;&lt;P&gt;         matnr LIKE ekpo-matnr,&lt;/P&gt;&lt;P&gt;         menge LIKE ekpo-menge,&lt;/P&gt;&lt;P&gt;         wempf LIKE ekkn-wempf,&lt;/P&gt;&lt;P&gt;         maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;       END OF IT_DATA.&lt;/P&gt;&lt;P&gt;This works properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 06:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618801#M276983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-23T06:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618802#M276984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anurita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remember correctly this "old" function module REUSE_ALV_FIELDCATALOG_MERGE can used internally defined structures only if the field are typed with LIKE and not with TYPE.&lt;/P&gt;&lt;P&gt;Since we should not type variables using LIKE anymore you should not use this feature of the function module anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 06:09:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618802#M276984</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-09-23T06:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618803#M276985</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;TYPES : BEGIN OF it_type ,&lt;/P&gt;&lt;P&gt;ebeln LIKE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;ebelp LIKE ekpo-ebelp,&lt;/P&gt;&lt;P&gt;werks LIKE ekpo-werks,&lt;/P&gt;&lt;P&gt;matnr LIKE ekpo-matnr,&lt;/P&gt;&lt;P&gt;menge LIKE ekpo-menge,&lt;/P&gt;&lt;P&gt;wempf LIKE ekkn-wempf,&lt;/P&gt;&lt;P&gt;maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;END OF it_type.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA : it_data TYPE STANDARD TABLE OF it_type.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;In this case field catalog is not filled with the field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF IT_DATA OCCURS 0,&lt;/P&gt;&lt;P&gt;ebeln LIKE ekpo-ebeln,&lt;/P&gt;&lt;P&gt;ebelp LIKE ekpo-ebelp,&lt;/P&gt;&lt;P&gt;werks LIKE ekpo-werks,&lt;/P&gt;&lt;P&gt;matnr LIKE ekpo-matnr,&lt;/P&gt;&lt;P&gt;menge LIKE ekpo-menge,&lt;/P&gt;&lt;P&gt;wempf LIKE ekkn-wempf,&lt;/P&gt;&lt;P&gt;maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;END OF IT_DATA.&lt;/P&gt;&lt;P&gt;This works properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the change highlighted in BOLD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 06:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618803#M276985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-23T06:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618804#M276986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Anurita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to declare DATA: IT_DATA TYPE STANDARD TABLE OF IT_TYPE and declare IT_TYPE as TYPES: BEGIN of IT_TYPE,&lt;/P&gt;&lt;P&gt;                          -&lt;/P&gt;&lt;HR originaltext="------" /&gt;&lt;P&gt;                          -&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;                         End of IT_TYPE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 07:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618804#M276986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-23T07:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618805#M276987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it works.&lt;/P&gt;&lt;P&gt;Can you please explain me the reason for the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 08:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618805#M276987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-23T08:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618806#M276988</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;Just as Uwe said the problem is on the way to be used to read the declaration of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple there'r a fm scans the abap code to search how the table is declared and this fm can't see the declaration with TYPE statament.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you want to use REUSE_ALV_FIELDCATALOG_MERGE u have to use LIKE instead of TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It' stupid but it's the true, I can only suppose some declarations are recognized by fm scans ABAP code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 08:18:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618806#M276988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-23T08:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618807#M276989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anurita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is with the FM of field catalog. Though the previous declaration was correct, but the FM does not accept it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence, if you pass a internal table without header line or a internal table with the 2nd declaration which you had mentioned, then it would work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its alwayz good to use explicit work area along with Internal table rather than using internal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So try to avoid using internal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 08:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618807#M276989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-23T08:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618808#M276990</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'm not agree with you Prashant, I think the problem it's only how the table is defined and not if there's the header line or not, because the problem is on the fm ABAP_SCAN_DATA_DESCRIPTION used to extract the table defination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This fm reads the abap code so the headerline i not important here, but it can't recognize all declaration types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Sep 2006 09:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/1618808#M276990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-23T09:08:24Z</dc:date>
    </item>
  </channel>
</rss>

