‎2009 Nov 20 11:18 AM
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
‎2009 Nov 23 2:30 PM
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.
‎2009 Nov 20 11:28 AM
Hello Abishek,
Did you try downloading the file via Menu
system->list->save->office
This might work sometimes
‎2009 Nov 23 2:30 PM
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.
‎2009 Nov 23 2:35 PM
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