<?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: program error on every function code (pushbutton) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-program-error-on-every-function-code-pushbutton/m-p/982746#M72307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP-OSS-Note 865989 is only for an industry solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Peter Gabler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2005 17:47:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-15T17:47:06Z</dc:date>
    <item>
      <title>ALV: program error on every function code (pushbutton)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-program-error-on-every-function-code-pushbutton/m-p/982745#M72306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi out there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I display an ALV-Grid with following structure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATUM	CMST_DATE	DATS	8 Datum
DAYOFWEEK	LANGT	CHAR	20 Name des Tages
COUNTER	GWY_COUNT	CHAR	10 Allgemeiner Zähler&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It has about 90 entries and display all data without errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everytime I press &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;ANY&lt;/P&gt; pushbutton the program aborts with following message:&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Meldungsnr. 0K534 Programmfehler&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So i searched in SAP coding for this Message and found statements like this (e.g. in method APPLY_SORT of class CL_GUI_ALV_GRID):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*... (1) Check Outtab
  assign mt_outtab-&amp;gt;* to &amp;lt;tab1&amp;gt;.
  if not sy-subrc is initial.
    message a534(0k).
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My coding is really simple. only this &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF g_custom_container IS INITIAL.
*   create container first
    CREATE OBJECT g_custom_container
      EXPORTING
*       this name is used in dynpro
        container_name = g_container.
*   second, create the instance of the grid control
    CREATE OBJECT alv_grid
      EXPORTING
        i_parent = g_custom_container.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
      EXPORTING
        i_structure_name = 'ZSPRM_OUTPUT_ALV'
      CHANGING
        ct_fieldcat      = lt_fieldcatalog.
    CALL METHOD alv_grid-&amp;gt;set_table_for_first_display
      CHANGING
        it_outtab            = lt_alv_output[]
        it_fieldcatalog      = lt_fieldcatalog[].
   ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2005 15:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-program-error-on-every-function-code-pushbutton/m-p/982745#M72306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-15T15:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV: program error on every function code (pushbutton)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-program-error-on-every-function-code-pushbutton/m-p/982746#M72307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP-OSS-Note 865989 is only for an industry solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Peter Gabler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2005 17:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-program-error-on-every-function-code-pushbutton/m-p/982746#M72307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-15T17:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALV: program error on every function code (pushbutton)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-program-error-on-every-function-code-pushbutton/m-p/982747#M72308</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_alv_output[] should be a global internal table declared in the top include and not a local internal table declared inside the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2005 11:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-program-error-on-every-function-code-pushbutton/m-p/982747#M72308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-16T11:28:01Z</dc:date>
    </item>
  </channel>
</rss>

