<?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>Question Re: Error when trying to get ALV data from standard program in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010384#M4902449</link>
    <description>&lt;P&gt;Good news -&amp;nbsp;&lt;A title="As a result, the structure has not changed but only the include has been resolved." href="https://me.sap.com/notes/3288856/E" target="_self"&gt;3288856 - CL_SALV_BS_RUNTIME_INFO stops with runtime error UNCAUGHT_EXCEPTION and exception CX_SY_STRUCT_ATTRIBUTES in class CL_ABAP_STRUCTDESCR&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2025 10:37:13 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2025-02-07T10:37:13Z</dc:date>
    <item>
      <title>Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaq-p/14008909</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I am new to SAP and ABAP and need some advice here. I am trying to write a z program that receives information out of the ALV grid of a standard program and writes these into an excel file. I tried the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;cl_salv_bs_runtime_info=&amp;gt;set(    EXPORTING display  = abap_false
                                             metadata = abap_false
                                             data     = abap_true ).

SUBMIT (p_report) USING SELECTION-SET p_var AND RETURN.
TRY.
      cl_salv_bs_runtime_info=&amp;gt;get_data_ref( IMPORTING r_data = DATA(ls_data) ).
      ASSIGN ls_data-&amp;gt;* TO &amp;lt;lt_data&amp;gt;.

    CATCH cx_root INTO DATA(e_txt).
      WRITE: / e_txt-&amp;gt;get_text( ).
ENDTRY.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everytime I run it I get an Exception of the type "cx_sy_struct_attributes" that isn't declared in RAISING. I've tried to find the error with the debugger but I could not find much. I only know that the error occurs in the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;cl_salv_bs_runtime_info=&amp;gt;get_data_ref( IMPORTING r_data = DATA(ls_data) ).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me find the error or has a different idea on how I get the AVL data from a standard program (in my case&amp;nbsp;RTPM_TRL_SHOW_FLOWS) into an internal table?&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;I've looked at the issue again in the Debugger but I am not quite sure what to do with it.&lt;/P&gt;&lt;P&gt;I've figured out that there is a suffix for component 9 even tho it is not allowed:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EWim_0-1738916259579.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/223179iB78CFE800260A67C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EWim_0-1738916259579.png" alt="EWim_0-1738916259579.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what lt_comp and lt_components look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EWim_1-1738916301140.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/223180iD14449A6A64C0C91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EWim_1-1738916301140.png" alt="EWim_1-1738916301140.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EWim_2-1738916318293.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/223181i5AD99CE128CB6AE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EWim_2-1738916318293.png" alt="EWim_2-1738916318293.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The issue appears when the following method is called:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EWim_3-1738916405190.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/223182i3F377E30E048EA1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EWim_3-1738916405190.png" alt="EWim_3-1738916405190.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am honestly very lost on what's going on and how to solve it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 09:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaq-p/14008909</guid>
      <dc:creator>EWim</dc:creator>
      <dc:date>2025-02-07T09:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14008943#M4902256</link>
      <description>&lt;P&gt;The error indicates some&amp;nbsp;Inconsistent Structure Table?&lt;/P&gt;&lt;P&gt;Did you already&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Define your extracted internal table as TYPE TRLY_FLOW_ALV (or TABLE OF TRLS_FLOW_ALV)&lt;/LI&gt;&lt;LI&gt;Use&amp;nbsp;R_DATA_DESCR for some dynamic coding with RTTI&lt;/LI&gt;&lt;LI&gt;Debug to look at actual received data type&lt;/LI&gt;&lt;LI&gt;Try to use&amp;nbsp;GET_DATA and not&amp;nbsp;GET_DATA_REF&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Could you provide definition of fields such as LS_DATA (TYPE REF TO DATA?)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 09:47:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14008943#M4902256</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2025-02-06T09:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14008990#M4902263</link>
      <description>When it happens, you can debug and find the location where it's raised. Add a break-point there, run again, and see the values of the components. Reason/my 2 cents: one of the components has a "non-strict" name (i.e. a special character in the name like a dash), and it's not supported.</description>
      <pubDate>Thu, 06 Feb 2025 10:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14008990#M4902263</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2025-02-06T10:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14009010#M4902265</link>
      <description>&lt;UL&gt;&lt;LI&gt;Are there any enhancements to the TRLS_FLOW_ALV structure or report logic in your system?&lt;/LI&gt;&lt;LI&gt;Call the report directly and view the&amp;nbsp;&lt;A href="https://help.sap.com/docs/search?q=ALV+Consistency+Check&amp;amp;locale=en-US&amp;amp;format=standard,html,pdf,others" target="_self"&gt;ALV Consistency Check&lt;/A&gt;&amp;nbsp;for 'exotic' fields in internal table and/or field catalog.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 06 Feb 2025 10:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14009010#M4902265</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2025-02-06T10:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010180#M4902420</link>
      <description>&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/145194"&gt;@Sandra_Rossi&lt;/a&gt; I have upated my post with screenshots from the Debugger. I don't think the issue is the name of a component but the suffix of it. Can you maybe help?</description>
      <pubDate>Fri, 07 Feb 2025 08:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010180#M4902420</guid>
      <dc:creator>EWim</dc:creator>
      <dc:date>2025-02-07T08:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010186#M4902423</link>
      <description>&lt;P&gt;Thank you for your help&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/185148"&gt;@RaymondGiuseppi&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;I have tried to define my extracted internal table as TYPE TRLY_FLOW_ALV and LS_DATA as TYPE REF TO DATA. Sadly it did not make a difference. I have updated my post with screenshots of the results from the debugger.&lt;/P&gt;&lt;P&gt;I have not tried GET_DATA instead of GET_DATA_REF and I did not use R_DATA_DESCR yet. I will look into it and come back with updates.&lt;/P&gt;&lt;P&gt;EDIT: There are also no enhancements made to TRLS_FLOW_ALV and the ALV Consistency Check also shows nothing.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 08:54:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010186#M4902423</guid>
      <dc:creator>EWim</dc:creator>
      <dc:date>2025-02-07T08:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010257#M4902434</link>
      <description>I've now tried using R_DATA_DESCR and also tried using GET_DATA instead of GET_DATA_REF. Sadly I still get the same error.</description>
      <pubDate>Fri, 07 Feb 2025 09:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010257#M4902434</guid>
      <dc:creator>EWim</dc:creator>
      <dc:date>2025-02-07T09:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010260#M4902437</link>
      <description>&lt;P&gt;You're correct, and the reason of the failure is that cl_salv_bs_runtime_info is using the RTTS creation strict mode, and included structure with suffix is not supported in strict mode. The only way (*) to make it work is to enhance/modify cl_salv_bs_runtime_info to make it run RTTS in strict mode.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(*) EDIT&lt;/STRONG&gt;: as Raymond found out, there is a fix by SAP concerning&amp;nbsp;&lt;SPAN&gt;RTPM_TRL_SHOW_FLOWS, they changed the DDIC structure TRLS_SUBPOSITION_I so CL_SALV_BS_RUNTIME_INFO can now be used. No need to enhance/modify cl_salv_bs_runtime_info.&amp;nbsp;&lt;A href="https://me.sap.com/notes/3288856/E" target="_blank"&gt;3288856 - CL_SALV_BS_RUNTIME_INFO stops with runtime error UNCAUGHT_EXCEPTION and exception CX_SY_STRUCT_ATTRIBUTES in class CL_ABAP_STRUCTDESCR - SAP for Me&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 11:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010260#M4902437</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2025-02-07T11:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010377#M4902446</link>
      <description>&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/145194"&gt;@Sandra_Rossi&lt;/a&gt; as someone being new to SAP/ABAP how would I make sure that cl_salv_bs_runtime_info is running in the correct mode if i decided to modiy/enhance it. Also is there maybe a different way to get the output data from another report (in my case RTPM_TRL_SHOW_FLOWS) without using cl_salv_bs_runtime_info that avoids this issue? Thank you so much for your help! You definitely cleared some things up for me! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 07 Feb 2025 10:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010377#M4902446</guid>
      <dc:creator>EWim</dc:creator>
      <dc:date>2025-02-07T10:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010384#M4902449</link>
      <description>&lt;P&gt;Good news -&amp;nbsp;&lt;A title="As a result, the structure has not changed but only the include has been resolved." href="https://me.sap.com/notes/3288856/E" target="_self"&gt;3288856 - CL_SALV_BS_RUNTIME_INFO stops with runtime error UNCAUGHT_EXCEPTION and exception CX_SY_STRUCT_ATTRIBUTES in class CL_ABAP_STRUCTDESCR&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 10:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010384#M4902449</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2025-02-07T10:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010420#M4902455</link>
      <description>&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/185148"&gt;@RaymondGiuseppi&lt;/a&gt; I don't know how I missed that... Thank you so much for your help!</description>
      <pubDate>Fri, 07 Feb 2025 10:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010420#M4902455</guid>
      <dc:creator>EWim</dc:creator>
      <dc:date>2025-02-07T10:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error when trying to get ALV data from standard program</title>
      <link>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010708#M4902482</link>
      <description>My systems had been updated too recently for me to see the anomaly. I had to remove my advanced search filters for notes</description>
      <pubDate>Fri, 07 Feb 2025 13:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-when-trying-to-get-alv-data-from-standard-program/qaa-p/14010708#M4902482</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2025-02-07T13:17:08Z</dc:date>
    </item>
  </channel>
</rss>

