<?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: OBJECTS_OBJREF_NOT_ASSIGNED error while exporting ALV to XML in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-error-while-exporting-alv-to-xml/m-p/5227122#M1208433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2016 07:15:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-04-12T07:15:03Z</dc:date>
    <item>
      <title>OBJECTS_OBJREF_NOT_ASSIGNED error while exporting ALV to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-error-while-exporting-alv-to-xml/m-p/5227120#M1208431</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;We've developed an ALV report that uses a dynamic internal table to populate its data (this is beacause we needed dynamic columns). ALV displays properly and cells have INT4 type because we needed to print totals and subtotals. All export functions work properly (I can export to XLS without any problem) except XML export which throws the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTS_OBJREF_NOT_ASSIGNED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Posición desencadenante de error tiempo ejecución                                     &lt;/P&gt;&lt;P&gt;    	Programa                                	CL_SALV_BS_DATA_TABLE=========CP          &lt;/P&gt;&lt;P&gt;    	Include                                 	CL_SALV_BS_DATA_TABLE=========CM00N       &lt;/P&gt;&lt;P&gt;    	Línea                                   	53                                        &lt;/P&gt;&lt;P&gt;    	Tp.módulo                               	(METHOD)                                  &lt;/P&gt;&lt;P&gt;    	Nombre módulo                           	GET_ATTRIBUTE_DESCR        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   39	  clear l_reffieldtype.                                                   &lt;/P&gt;&lt;P&gt;   40	  l_reffieldtype = ls_attribute-reference_field_type.                     &lt;/P&gt;&lt;P&gt;   41	                                                                          &lt;/P&gt;&lt;P&gt;   42	  if ls_attribute-reference_field is not initial.                         &lt;/P&gt;&lt;P&gt;   43	    l_reffieldvalue = reference_value.                                    &lt;/P&gt;&lt;P&gt;   44	  endif.                                                                  &lt;/P&gt;&lt;P&gt;   45	                                                                          &lt;/P&gt;&lt;P&gt;   46	  data:                                                                   &lt;/P&gt;&lt;P&gt;   47	    l_decimals type i.                                                    &lt;/P&gt;&lt;P&gt;   48	                                                                          &lt;/P&gt;&lt;P&gt;   49	  clear l_decimals.                                                       &lt;/P&gt;&lt;P&gt;   50	                                                                          &lt;/P&gt;&lt;P&gt;   51	  try.                                                                    &lt;/P&gt;&lt;P&gt;   52	      lr_elemdescr ?= ls_attribute-rtti.                                  &lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;	      l_decimals = lr_elemdescr-&amp;gt;decimals.                                &lt;/P&gt;&lt;P&gt;   54	    catch cx_sy_move_cast_error.                        "#EC NO_HANDLER   &lt;/P&gt;&lt;P&gt;   55	  endtry.                                                                 &lt;/P&gt;&lt;P&gt;   56	                                                                          &lt;/P&gt;&lt;P&gt;   57	*... determine attribute description                                      &lt;/P&gt;&lt;P&gt;   58	  field-symbols:                                                          &lt;/P&gt;&lt;P&gt;   59	     type any.                                                &lt;/P&gt;&lt;P&gt;   60	                                                                          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Josep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 12:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-error-while-exporting-alv-to-xml/m-p/5227120#M1208431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T12:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: OBJECTS_OBJREF_NOT_ASSIGNED error while exporting ALV to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-error-while-exporting-alv-to-xml/m-p/5227121#M1208432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found something else..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I disable totals and subtotals in my ALV export to XML works! &lt;/P&gt;&lt;P&gt;I simply commented the line &lt;EM&gt;wa_fieldcat-do_sum = 'X'.&lt;/EM&gt; and it worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any kind of restriction with subtotals/totals and export? &lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Josep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 10:34:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-error-while-exporting-alv-to-xml/m-p/5227121#M1208432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T10:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: OBJECTS_OBJREF_NOT_ASSIGNED error while exporting ALV to XML</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-error-while-exporting-alv-to-xml/m-p/5227122#M1208433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 07:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/objects-objref-not-assigned-error-while-exporting-alv-to-xml/m-p/5227122#M1208433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-12T07:15:03Z</dc:date>
    </item>
  </channel>
</rss>

