<?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: Program crash when scrolling ALV table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-crash-when-scrolling-alv-table/m-p/12819708#M2026190</link>
    <description>&lt;P&gt;Crash when scrolling ALV makes me immediately think that you have passed a LOCAL internal table to the ALV:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD lo_alv-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
  EXPORTING
    is_layout = ls_layout
  CHANGING
    it_outtab = lt_crmd_orderadm_h
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i.e. the argument of IT_OUTTAB should not be a local internal table. &lt;/P&gt;&lt;P&gt;Only global variables or public attributes of alive instances can work with ALV (especially when scrolling but for other features too).&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2024 17:54:44 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2024-01-11T17:54:44Z</dc:date>
    <item>
      <title>Program crash when scrolling ALV table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-crash-when-scrolling-alv-table/m-p/12819706#M2026188</link>
      <description>&lt;P&gt;Hello, I am learning ABAP and for a few days, Im stuck in a problem of program crash when scrolling through ALV table. Everything worked perfectly when I used REUSE_ALV_GRID_DISPLAY and for field catalog SLIS_FIELDCAT_ALV. But then I had to switch to CL_GUI_ALV_GRID and LVC_S_LAYO with related changes. After that, scrolling crash problem appeared. No big data, just normal IDs, names etc. and max amount of results should be 513 rows and 3 columns. Interesting thing is, the more columns i add, the earlier i get the crash in scrolling. Dump text is "Field symbol has not been assigned yet."&lt;/P&gt;
  &lt;P&gt;Did someone faced similar issue and how did you fixed this? &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Thank you&lt;BR /&gt;&lt;BR /&gt;This is ALV part of the code. Filling of the table etc. is right above this:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt; DATA: lo_alv type ref to cl_gui_alv_grid,
  &lt;BR /&gt; lo_custom_container TYPE REF TO cl_gui_custom_container,
  &lt;BR /&gt; lt_fcat TYPE lvc_t_fcat,
  &lt;BR /&gt; ls_fcat TYPE lvc_s_fcat,
  &lt;BR /&gt; ls_layout TYPE lvc_s_layo.
  &lt;BR /&gt; IF lo_custom_container IS INITIAL. "neboli pokud objekt Kontejner neexistuje...
  &lt;BR /&gt; CREATE OBJECT lo_custom_container "...tak ho vytvoř
  &lt;BR /&gt; EXPORTING
  &lt;BR /&gt;* parent =
  &lt;BR /&gt; container_name = 'CUSTOM_CONTAINER'
  &lt;BR /&gt;* style =
  &lt;BR /&gt;* lifetime = lifetime_default
  &lt;BR /&gt;* repid =
  &lt;BR /&gt;* dynnr =
  &lt;BR /&gt;* no_autodef_progid_dynnr =
  &lt;BR /&gt; EXCEPTIONS
  &lt;BR /&gt; cntl_error = 1
  &lt;BR /&gt; cntl_system_error = 2
  &lt;BR /&gt; create_error = 3
  &lt;BR /&gt; lifetime_error = 4
  &lt;BR /&gt; lifetime_dynpro_dynpro_link = 5
  &lt;BR /&gt; others = 6
  &lt;BR /&gt; .
  &lt;BR /&gt; IF sy-subrc &amp;lt;&amp;gt; 0.
  &lt;BR /&gt;* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
  &lt;BR /&gt;* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  &lt;BR /&gt; ENDIF.
  &lt;BR /&gt; endif.
  &lt;BR /&gt; CREATE OBJECT lo_alv
  &lt;BR /&gt; EXPORTING
  &lt;BR /&gt; i_parent = lo_custom_container.
  &lt;BR /&gt;* ls_layout-col_opt = 'X'.
  &lt;BR /&gt;* ls_layout-stylefname = 'STYLE'.
  &lt;BR /&gt;&lt;BR /&gt;* DATA lt_fcat TYPE slis_t_fieldcat_alv.
  &lt;BR /&gt;* DATA ls_fcat TYPE slis_fieldcat_alv.
  &lt;BR /&gt; clear ls_fcat.
  &lt;BR /&gt; ls_fcat-col_pos = '1'.
  &lt;BR /&gt; ls_fcat-fieldname = 'object_id'.
  &lt;BR /&gt; ls_fcat-coltext = 'Číslo hlášení'.
  &lt;BR /&gt; append ls_fcat to lt_fcat.
  &lt;BR /&gt; clear ls_fcat.
  &lt;BR /&gt; ls_fcat-col_pos = '2'.
  &lt;BR /&gt; ls_fcat-fieldname = 'description'.
  &lt;BR /&gt; " ls_fcat-seltext_L = 'Popis hlášení'.
  &lt;BR /&gt; ls_fcat-coltext = 'Popis hlášení'.
  &lt;BR /&gt; append ls_fcat to lt_fcat.
  &lt;BR /&gt; clear ls_fcat.
  &lt;BR /&gt; ls_fcat-col_pos = '3'.
  &lt;BR /&gt; ls_fcat-fieldname = 'created_by'.
  &lt;BR /&gt; ls_fcat-coltext = 'Uživatel'.
  &lt;BR /&gt; append ls_fcat to lt_fcat.
  &lt;BR /&gt; " DATA: lo_container TYPE REF TO cl_gui_container. 
  &lt;BR /&gt; CALL METHOD lo_alv-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
  &lt;BR /&gt; EXPORTING
  &lt;BR /&gt; is_layout = ls_layout
  &lt;BR /&gt; CHANGING
  &lt;BR /&gt; it_outtab = lt_crmd_orderadm_h
  &lt;BR /&gt; it_fieldcatalog = lt_fcat
  &lt;BR /&gt; EXCEPTIONS
  &lt;BR /&gt; invalid_parameter_combination = 1
  &lt;BR /&gt; program_error = 2
  &lt;BR /&gt; too_many_lines = 3
  &lt;BR /&gt; OTHERS = 4.
  &lt;BR /&gt;*** call FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  &lt;BR /&gt;*** exporting
  &lt;BR /&gt;**** I_INTERFACE_CHECK = SPACE
  &lt;BR /&gt;**** I_BYPASSING_BUFFER = SPACE
  &lt;BR /&gt;**** I_BUFFER_ACTIVE = SPACE
  &lt;BR /&gt;**** I_CALLBACK_PROGRAM = SPACE
  &lt;BR /&gt;**** I_CALLBACK_PF_STATUS_SET = SPACE
  &lt;BR /&gt;**** I_CALLBACK_USER_COMMAND = SPACE
  &lt;BR /&gt;**** I_CALLBACK_TOP_OF_PAGE = SPACE
  &lt;BR /&gt;**** I_CALLBACK_HTML_TOP_OF_PAGE = SPACE
  &lt;BR /&gt;**** I_CALLBACK_HTML_END_OF_LIST = SPACE
  &lt;BR /&gt;**** I_STRUCTURE_NAME =
  &lt;BR /&gt;**** I_BACKGROUND_ID =
  &lt;BR /&gt;**** I_GRID_TITLE =
  &lt;BR /&gt;**** I_GRID_SETTINGS =
  &lt;BR /&gt;**** IS_LAYOUT =
  &lt;BR /&gt;*** IT_FIELDCAT = lt_fcat
  &lt;BR /&gt;**** IT_EXCLUDING =
  &lt;BR /&gt;**** IT_SPECIAL_GROUPS =
  &lt;BR /&gt;**** IT_SORT =
  &lt;BR /&gt;**** IT_FILTER =
  &lt;BR /&gt;**** IS_SEL_HIDE =
  &lt;BR /&gt;**** I_DEFAULT = 'X'
  &lt;BR /&gt;**** I_SAVE = SPACE
  &lt;BR /&gt;**** IS_VARIANT =
  &lt;BR /&gt;**** IT_EVENTS =
  &lt;BR /&gt;**** IT_EVENT_EXIT =
  &lt;BR /&gt;**** IS_PRINT =
  &lt;BR /&gt;**** IS_REPREP_ID =
  &lt;BR /&gt;**** I_SCREEN_START_COLUMN = 0
  &lt;BR /&gt;**** I_SCREEN_START_LINE = 0
  &lt;BR /&gt;**** I_SCREEN_END_COLUMN = 0
  &lt;BR /&gt;**** I_SCREEN_END_LINE = 0
  &lt;BR /&gt;**** I_HTML_HEIGHT_TOP = 0
  &lt;BR /&gt;**** I_HTML_HEIGHT_END = 0
  &lt;BR /&gt;**** IT_ALV_GRAPHICS =
  &lt;BR /&gt;**** IT_HYPERLINK =
  &lt;BR /&gt;**** IT_ADD_FIELDCAT =
  &lt;BR /&gt;**** IT_EXCEPT_QINFO =
  &lt;BR /&gt;**** IR_SALV_FULLSCREEN_ADAPTER =
  &lt;BR /&gt;**** importing
  &lt;BR /&gt;**** E_EXIT_CAUSED_BY_CALLER =
  &lt;BR /&gt;**** ES_EXIT_CAUSED_BY_USER =
  &lt;BR /&gt;*** tables
  &lt;BR /&gt;*** T_OUTTAB = lt_crmd_orderadm_h
  &lt;BR /&gt;**** exceptions
  &lt;BR /&gt;**** PROGRAM_ERROR = 1
  &lt;BR /&gt;**** OTHERS = 2
  &lt;BR /&gt;*** .
  &lt;BR /&gt;*** if sy-subrc &amp;lt;&amp;gt; 0.
  &lt;BR /&gt;**** message id sy-msgid type sy-msgty number sy-msgno
  &lt;BR /&gt;**** with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  &lt;BR /&gt;*** "break kalivodova.
  &lt;BR /&gt;*** endif.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jan 2024 17:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-crash-when-scrolling-alv-table/m-p/12819706#M2026188</guid>
      <dc:creator>muffy13</dc:creator>
      <dc:date>2024-01-11T17:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Program crash when scrolling ALV table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-crash-when-scrolling-alv-table/m-p/12819707#M2026189</link>
      <description>&lt;P&gt;Please edit your question (Actions&amp;gt;Edit), select your code and press the button [CODE], which makes the code appear colored/indented, it'll be easier for people to look at it. Thanks! &lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 17:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-crash-when-scrolling-alv-table/m-p/12819707#M2026189</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-01-11T17:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Program crash when scrolling ALV table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-crash-when-scrolling-alv-table/m-p/12819708#M2026190</link>
      <description>&lt;P&gt;Crash when scrolling ALV makes me immediately think that you have passed a LOCAL internal table to the ALV:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD lo_alv-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
  EXPORTING
    is_layout = ls_layout
  CHANGING
    it_outtab = lt_crmd_orderadm_h
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i.e. the argument of IT_OUTTAB should not be a local internal table. &lt;/P&gt;&lt;P&gt;Only global variables or public attributes of alive instances can work with ALV (especially when scrolling but for other features too).&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 17:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-crash-when-scrolling-alv-table/m-p/12819708#M2026190</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-01-11T17:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Program crash when scrolling ALV table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-crash-when-scrolling-alv-table/m-p/12819709#M2026191</link>
      <description>&lt;P&gt;Or perhaps a field name on the field cat is different from the table.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 18:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-crash-when-scrolling-alv-table/m-p/12819709#M2026191</guid>
      <dc:creator>Eduardo-CE</dc:creator>
      <dc:date>2024-01-11T18:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Program crash when scrolling ALV table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-crash-when-scrolling-alv-table/m-p/12819710#M2026192</link>
      <description>&lt;P&gt;Thank you so much, you were right! &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 20:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-crash-when-scrolling-alv-table/m-p/12819710#M2026192</guid>
      <dc:creator>muffy13</dc:creator>
      <dc:date>2024-01-11T20:14:08Z</dc:date>
    </item>
  </channel>
</rss>

