Quantcast
Channel: SCN : All Content - User Interface Development in ABAP
Viewing all articles
Browse latest Browse all 540

OBJECTS_OBJREF_NOT_ASSIGNED error while exporting ALV to XML

$
0
0

Hi,

 

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:

 

OBJECTS_OBJREF_NOT_ASSIGNED

 

Posición desencadenante de error tiempo ejecución                                    

         Programa                                     CL_SALV_BS_DATA_TABLE=========CP         

         Include                                      CL_SALV_BS_DATA_TABLE=========CM00N      

         Línea                                        53                                       

         Tp.módulo                                    (METHOD)                                 

         Nombre módulo                                GET_ATTRIBUTE_DESCR       

 

   39       clear l_reffieldtype.                                                  

   40       l_reffieldtype = ls_attribute-reference_field_type.                    

   41                                                                              

   42       if ls_attribute-reference_field is not initial.                        

   43         l_reffieldvalue = reference_value.                                   

   44       endif.                                                                 

   45                                                                              

   46       data:                                                                  

   47         l_decimals type i.                                                   

   48                                                                              

   49       clear l_decimals.                                                      

   50                                                                              

   51       try.                                                                   

   52           lr_elemdescr ?= ls_attribute-rtti.                                 

>>>>>           l_decimals = lr_elemdescr->decimals.                               

   54         catch cx_sy_move_cast_error.                        "#EC NO_HANDLER  

   55       endtry.                                                                

   56                                                                              

   57     *... determine attribute description                                     

   58       field-symbols:                                                         

   59          type any.                                               

   60                                                                              

 

Any help will be appreciated.

 

Many thanks,

 

Josep

 


Viewing all articles
Browse latest Browse all 540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>