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

Problem regarding Export functionality in ALV OOPS

Former Member
0 Likes
508

Hello Experts,

I have a requirement where i have to display report in ALV OOPS and this should be downloadable

using export functionality present in ALV oops toolbar.

Now when i choose download to local file it gives a dump 'OBJECTS_NOT_CHARLIKE'.

Now this problem is due to quantity fields like KWMENG and KBMENG fields present in the output table.

If i comment out these statements while field catalog prepartion the export functionality works. Hence i believe there

must be more information that must be provide while field catalog preparation for quantity fields in ALV OOPS.

But i am not able to understand. HEnce require help and guidance for this.

i Have prepared field catalog in following manner


PERFORM f_create_fc_grid USING c_kwmeng     c_kwmeng  15      text-t23.

FORM f_create_fc_grid  USING us_fieldname TYPE  any
                             us_ref_field TYPE  any
                             us_op_length TYPE  any
                             us_seltext_l TYPE  any.


  CLEAR: e_fcat.

  MOVE   us_fieldname    TO   e_fcat-fieldname.

  MOVE   us_ref_field    TO   e_fcat-ref_field.

  MOVE   us_op_length    TO   e_fcat-outputlen.

  MOVE   us_seltext_l    TO   e_fcat-seltext.

  MOVE us_seltext_l TO e_fcat-coltext.

  APPEND e_fcat TO   i_fcat.

ENDFORM. " F_CREATE_FC_GRID

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
473

Hi Abhishek,

I faced similar problem once. Such dumps are due to quantity fields in the internal table. Try giving the reference table for the quantity field in the 'REF_TABLE' field of the fieldcatalog, along with the 'REF_FIELD'. This helps in determining the length of the quantity field. Hope, this solves your problem.

Regards,

Bhavesh Solanki.

3 REPLIES 3
Read only

Former Member
0 Likes
473

Hello Abishek,

Did you try downloading the file via Menu

system->list->save->office

This might work sometimes

Read only

Former Member
0 Likes
474

Hi Abhishek,

I faced similar problem once. Such dumps are due to quantity fields in the internal table. Try giving the reference table for the quantity field in the 'REF_TABLE' field of the fieldcatalog, along with the 'REF_FIELD'. This helps in determining the length of the quantity field. Hope, this solves your problem.

Regards,

Bhavesh Solanki.

Read only

Former Member
0 Likes
473

Hi abhishek,

If you have quantity fields in your ALV, please give REF_TABLE in the field catalog for that field.

Hope this helps.

Regards

Avinash