Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OBJECTS_OBJREF_NOT_ASSIGNED error while exporting ALV to XML

Former Member
0 Likes
784

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

2 REPLIES 2
Read only

Former Member
0 Likes
620

I found something else..

If I disable totals and subtotals in my ALV export to XML works!

I simply commented the line wa_fieldcat-do_sum = 'X'. and it worked fine.

Is there any kind of restriction with subtotals/totals and export?

Many thanks

Josep

Read only

Former Member
0 Likes
620

This message was moderated.