2019 Apr 05 7:00 AM
Hi,
is it possible to use CL_DEMO_OUTPUT class with Internal Table? when i pass
internet table : cl_demo_output=>display_data( i_final ).
am getting error : Data type not yet supported ...
Regards
2019 Apr 10 5:07 PM
Hi
I was able to solve the issue by adding [] to the Internal Table name
cl_demo_output=>display_data( i_final[] ).
now am able to display Internal Table
Regards
2019 Apr 05 7:06 AM
Yes it is possible. Read the blog/s with examples? https://blogs.sap.com/2016/05/10/cldemooutput-part-1-of-2-usage/
2019 Apr 05 7:26 AM
Hello Tomas,
in the blog he is using, mmm open SQL while in my case
SELECT VBRP~VKORG_AUFT VBRP~MATNR vbrp~fkimg
INTO CORRESPONDING FIELDS OF TABLE i_final
FROM vbrp
WHERE VBRP~MATNR IN S_MATNR.
cl_demo_output=>display_data( i_final ).
here am getting error: Data type not yet supported in DEMO output ...
2019 Apr 05 8:08 AM
Why are you using display_data method? Have you tried method display (which is used in the blog examples)? What has SQL to do with this? How exactly is the i_final typed?
2019 Apr 05 1:46 PM
Hi Tomas
even with Display only am getting same error
TYPES : BEGIN OF ty_i_final,
matkl TYPE VBRP-matkl,
mfrnr TYPE mara-mfrnr,
vkorg TYPE vbrk-vkorg,
bstkd TYPE vbkd-bstkd,
END OF ty_i_final.
.... SQL Statement ..
DATA : i_final TYPE STANDARD TABLE OF ty_i_final WITH HEADER LINE.
cl_demo_output=>display( i_final ).
am able to display the i_final on ALV Grid. but it fail with cl_demo_output=>display( i_final ).
2019 Apr 05 2:36 PM
That is strange. I am on same version (740) and it displays internal table defined exactly like yours without a problem.
Try internal table without HEADER LINE (it is quite old concept using header lines). It could be problem because there is a difference between i_final and i_final[]...
2019 Apr 05 2:53 PM
Why SAP stopped using header lines, because it's prone to errors...
2019 Apr 05 2:54 PM
2019 Apr 05 8:05 AM
See the "not yet", maybe knowing your ABAP version could be of some interest here...
2019 Apr 05 1:42 PM
2019 Apr 10 5:07 PM
Hi
I was able to solve the issue by adding [] to the Internal Table name
cl_demo_output=>display_data( i_final[] ).
now am able to display Internal Table
Regards
2019 Apr 11 1:36 AM
2019 Apr 11 7:53 AM
Stop using those obsolete header lines (since 6.10?), they are so prone to errors. And if you used ABAP Objects, as recommended "now" (for 20 years?), header lines automatically generate syntax errors.
2020 Sep 22 5:09 AM
2021 Dec 08 3:55 PM
2021 Dec 14 11:58 AM
Hi Horst
Nice Blog it will be very helpful for everyone want to explore CL_DEMO_OUTPUT
Thanks for sharing.