<?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 Dump while fetching Query result from report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-fetching-query-result-from-report/m-p/9365859#M1732620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am facing an issue while fetching a SQ01 Query result in ALV format into a report via SUBMIT statement. The Query makes use of few &lt;EM&gt;local additional fields &lt;/EM&gt;along with joins on some standard DB tables. These &lt;EM&gt;local additional fields &lt;/EM&gt;takes up technical name as %Z_0001, %Z_0002, etc upon creation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/198341" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;To execute this Query from my custom report, I am using SUBMIT statement as below&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;SUBMIT &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;query_name &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;USING SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'1000'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;WITH SELECTION-TABLE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;rspar_tab&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;”rspar_tab contains all the input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;WITH &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;%alv &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EQ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;c_x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;”allows the list to be downloaded in ALV&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;AND RETURN.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Now, when I am trying to retrieve the list returned by this query into my data table, it is causing dump straightaway in the below statement of my program.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;cl_salv_bs_runtime_info&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;get_data_ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;IMPORTING &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;r_data &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;lr_pay_data &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The dump cites the reason 'Component Name '%Z_0001' of the Component 13 Contains an Invalid Character'. This is raised in standard code where it is preparing the field-catalog and checks for illegal characters in component name. Here it is treating '%' symbol as illegal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;While I am able to fetch ALV quite comfortably with queries having no &lt;EM&gt;local additional fields&lt;/EM&gt;, it is posing issues for above case. Kindly suggest if there is an alternative to fetch ALV output in our reports from such queries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;&lt;SPAN style="color: #000000;"&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Mar 2013 09:49:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-03-25T09:49:12Z</dc:date>
    <item>
      <title>Dump while fetching Query result from report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-fetching-query-result-from-report/m-p/9365859#M1732620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi experts,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am facing an issue while fetching a SQ01 Query result in ALV format into a report via SUBMIT statement. The Query makes use of few &lt;EM&gt;local additional fields &lt;/EM&gt;along with joins on some standard DB tables. These &lt;EM&gt;local additional fields &lt;/EM&gt;takes up technical name as %Z_0001, %Z_0002, etc upon creation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/198341" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;To execute this Query from my custom report, I am using SUBMIT statement as below&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;SUBMIT &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;query_name &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;USING SELECTION-SCREEN &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;'1000'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;WITH SELECTION-TABLE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;rspar_tab&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;”rspar_tab contains all the input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;WITH &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;%alv &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;EQ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;c_x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;”allows the list to be downloaded in ALV&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;AND RETURN.&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Now, when I am trying to retrieve the list returned by this query into my data table, it is causing dump straightaway in the below statement of my program.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;cl_salv_bs_runtime_info&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;get_data_ref&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;IMPORTING &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;r_data &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;lr_pay_data &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The dump cites the reason 'Component Name '%Z_0001' of the Component 13 Contains an Invalid Character'. This is raised in standard code where it is preparing the field-catalog and checks for illegal characters in component name. Here it is treating '%' symbol as illegal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;While I am able to fetch ALV quite comfortably with queries having no &lt;EM&gt;local additional fields&lt;/EM&gt;, it is posing issues for above case. Kindly suggest if there is an alternative to fetch ALV output in our reports from such queries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333399;"&gt;&lt;SPAN style="color: #000000;"&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 09:49:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-fetching-query-result-from-report/m-p/9365859#M1732620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-25T09:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while fetching Query result from report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-fetching-query-result-from-report/m-p/9365860#M1732621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would say that this is because special characters for variables are no longer allowed in the object context (your call to cl_salv_bs_runtime_info=&amp;gt;get_data_ref), as it still is in the procedural context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Type Definitions and Data Declarations&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;New naming conventions&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The names of components in classes, that is attributes, methods and events, must consist of the characters "A-Z", "0-9" and "_". They must not begin with a number."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check &lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-10274"&gt;http://scn.sap.com/docs/DOC-10274&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 10:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-fetching-query-result-from-report/m-p/9365860#M1732621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-25T10:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while fetching Query result from report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-fetching-query-result-from-report/m-p/9365861#M1732622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siddhartha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are getting this dump because the name foe local additional fields given by you has invalid character &lt;STRONG&gt;"%". &lt;/STRONG&gt; As sap recommends never use invalid characters in your naming conventions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the below link for SAP's naming convention standards: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://saptechnical.com/Tutorials/ABAP/PrgStandards/PrgStandards.htm"&gt;http://saptechnical.com/Tutorials/ABAP/PrgStandards/PrgStandards.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw73/helpdata/en/2a/6b0afe547a11d189600000e829fbbd/frameset.htm"&gt;http://help.sap.com/saphelp_nw73/helpdata/en/2a/6b0afe547a11d189600000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will be helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gourav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 10:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-fetching-query-result-from-report/m-p/9365861#M1732622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-25T10:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while fetching Query result from report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-fetching-query-result-from-report/m-p/9365862#M1732623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reverting in short time.&lt;/P&gt;&lt;P&gt;The naming convention should not contain any '%' sign is completely understandable but the fact that it has been assigned by system itself is causing the issue. As I mentioned earlier, whenever we are declaring any &lt;EM&gt;local additional field&lt;/EM&gt; in query, SAP does give the technical name as '%Z_****'. I could not find any provision to change it and hence moving ahead using the same in custom program. Afterwards, when we are trying to read the ALV table contents, it results in dump citing '%' as invalid character.&lt;/P&gt;&lt;P&gt;In debugging mode, I removed '%' sign and it executed smoothly. But since the convention check is happening in standard method, I could not modify it in my program.&lt;/P&gt;&lt;P&gt;Hope the scenario is clear now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 10:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-fetching-query-result-from-report/m-p/9365862#M1732623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-25T10:53:18Z</dc:date>
    </item>
  </channel>
</rss>

