04-05-2019 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
04-10-2019 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
04-05-2019 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/
04-05-2019 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 ...
04-05-2019 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?
04-05-2019 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 ).
04-05-2019 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[]...
04-05-2019 2:53 PM
Why SAP stopped using header lines, because it's prone to errors...
04-05-2019 2:54 PM
04-05-2019 8:05 AM
See the "not yet", maybe knowing your ABAP version could be of some interest here...
04-05-2019 1:42 PM
04-10-2019 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
04-11-2019 1:36 AM
04-11-2019 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.
09-22-2020 5:09 AM
12-08-2021 3:55 PM
12-14-2021 11:58 AM
Hi Horst
Nice Blog it will be very helpful for everyone want to explore CL_DEMO_OUTPUT
Thanks for sharing.