<?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 UNexpected problem with ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126577#M110486</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;&lt;/P&gt;&lt;P&gt;I am trying an ALV report. The problem here is, If I define an internal table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_ekko ,&lt;/P&gt;&lt;P&gt;         ebeln LIKE ekko-ebeln, " Purchasing Document Number&lt;/P&gt;&lt;P&gt;         bukrs LIKE ekko-bukrs, " Company Code&lt;/P&gt;&lt;P&gt;         bsart LIKE ekko-bsart, " Purchasing Document Type&lt;/P&gt;&lt;P&gt;         ernam LIKE ekko-ernam, " Name of Person who Created&lt;/P&gt;&lt;P&gt;                                " the Object&lt;/P&gt;&lt;P&gt;         lifnr LIKE ekko-lifnr, " Account Number of the Vendor&lt;/P&gt;&lt;P&gt;         line_color(4) TYPE c,         " Line color&lt;/P&gt;&lt;P&gt;       END OF t_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---- Table Memory Allocation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA i_ekko TYPE t_ekko OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---- Work area Declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA wa_ekko LIKE LINE OF i_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I call the FM reuse_alv_fieldcatalog_merge the field catalog is not being populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I change the declaration like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of i_ekko occurs 0,&lt;/P&gt;&lt;P&gt;         ebeln LIKE ekko-ebeln, " Purchasing Document Number&lt;/P&gt;&lt;P&gt;         bukrs LIKE ekko-bukrs, " Company Code&lt;/P&gt;&lt;P&gt;         bsart LIKE ekko-bsart, " Purchasing Document Type&lt;/P&gt;&lt;P&gt;         ernam LIKE ekko-ernam, " Name of Person who Created&lt;/P&gt;&lt;P&gt;                                " the Object&lt;/P&gt;&lt;P&gt;         lifnr LIKE ekko-lifnr, " Account Number of the Vendor&lt;/P&gt;&lt;P&gt;         line_color(4) TYPE c,         " Line color&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       end of i_ekko.&lt;/P&gt;&lt;P&gt;this is working properly. But there are other instances where even the types declaration worked for me. I do not understand the strange behavioUr of ALV. If anyone can explain please explain me this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2006 13:44:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-07T13:44:18Z</dc:date>
    <item>
      <title>UNexpected problem with ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126577#M110486</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;&lt;/P&gt;&lt;P&gt;I am trying an ALV report. The problem here is, If I define an internal table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_ekko ,&lt;/P&gt;&lt;P&gt;         ebeln LIKE ekko-ebeln, " Purchasing Document Number&lt;/P&gt;&lt;P&gt;         bukrs LIKE ekko-bukrs, " Company Code&lt;/P&gt;&lt;P&gt;         bsart LIKE ekko-bsart, " Purchasing Document Type&lt;/P&gt;&lt;P&gt;         ernam LIKE ekko-ernam, " Name of Person who Created&lt;/P&gt;&lt;P&gt;                                " the Object&lt;/P&gt;&lt;P&gt;         lifnr LIKE ekko-lifnr, " Account Number of the Vendor&lt;/P&gt;&lt;P&gt;         line_color(4) TYPE c,         " Line color&lt;/P&gt;&lt;P&gt;       END OF t_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---- Table Memory Allocation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA i_ekko TYPE t_ekko OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---- Work area Declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA wa_ekko LIKE LINE OF i_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I call the FM reuse_alv_fieldcatalog_merge the field catalog is not being populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I change the declaration like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of i_ekko occurs 0,&lt;/P&gt;&lt;P&gt;         ebeln LIKE ekko-ebeln, " Purchasing Document Number&lt;/P&gt;&lt;P&gt;         bukrs LIKE ekko-bukrs, " Company Code&lt;/P&gt;&lt;P&gt;         bsart LIKE ekko-bsart, " Purchasing Document Type&lt;/P&gt;&lt;P&gt;         ernam LIKE ekko-ernam, " Name of Person who Created&lt;/P&gt;&lt;P&gt;                                " the Object&lt;/P&gt;&lt;P&gt;         lifnr LIKE ekko-lifnr, " Account Number of the Vendor&lt;/P&gt;&lt;P&gt;         line_color(4) TYPE c,         " Line color&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       end of i_ekko.&lt;/P&gt;&lt;P&gt;this is working properly. But there are other instances where even the types declaration worked for me. I do not understand the strange behavioUr of ALV. If anyone can explain please explain me this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 13:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126577#M110486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T13:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: UNexpected problem with ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126578#M110487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field catalog will only be built up when refering to  Data dictionary structures directly. In the first example you have defined a TYPE locally.&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 13:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126578#M110487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T13:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: UNexpected problem with ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126579#M110488</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 did not understand what you mean by saying declaring &amp;lt;b&amp;gt;types locally&amp;lt;/b&amp;gt;. But it worked fine the same way for other program. So where do you want me to declare types ?&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;Varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 14:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126579#M110488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T14:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: UNexpected problem with ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126580#M110489</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;if you declare the structure Globally (i mean in SE11) then it will come or else it won't.&lt;/P&gt;&lt;P&gt;so if you want to build it based on structure then you need to declare it globally. and use the FM.&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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 14:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126580#M110489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T14:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: UNexpected problem with ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126581#M110490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try to fill the field catalog manually in the program instead of using FM reuse_alv_fieldcatalog_merge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ls_fcat type lvc_s_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: ls_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fcat-fieldname = 'CARRID'.&lt;/P&gt;&lt;P&gt;ls_fcat-inttype = 'C'.&lt;/P&gt;&lt;P&gt;ls_fcat-outputlen = '3'.&lt;/P&gt;&lt;P&gt;ls_fcat-coltext = 'Carrier ID'.&lt;/P&gt;&lt;P&gt;ls_fcat-seltext = 'Carrier ID'.&lt;/P&gt;&lt;P&gt;append ls_fcat to pt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear: ls_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_fcat-fieldname = 'CONNID'.&lt;/P&gt;&lt;P&gt;ls_fcat-inttype = 'C'.&lt;/P&gt;&lt;P&gt;ls_fcat-outputlen = '3'.&lt;/P&gt;&lt;P&gt;ls_fcat-coltext = 'Connection ID'.&lt;/P&gt;&lt;P&gt;ls_fcat-seltext = 'Connection ID'.&lt;/P&gt;&lt;P&gt;append ls_fcat to pt_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use a macro for this. Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neeraj Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 14:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126581#M110490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T14:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: UNexpected problem with ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126582#M110491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt; can you define the internal table like the below and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA i_ekko TYPE standard table of t_ekko with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sai easwar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 16:06:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unexpected-problem-with-alv/m-p/1126582#M110491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T16:06:41Z</dc:date>
    </item>
  </channel>
</rss>

