on 02-10-2007 6:49 AM
Hi,
I'm working on a Application where i need to download the content of the internal table into Excel sheet. For that i'm using FileDownload UI element. I followed the example application WDR_TEST_EVENTS for this purpose.
I've created a Context attribute under a node with a supply function where i've the following code,
data: conv_out type ref to cl_abap_conv_out_ce.
data: struct type if_mainview=>element_filecontent_node.
conv_out = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ).
conv_out->convert(
exporting
data = ITAB_SFLIGHT
importing
buffer = struct-filecontent ).
node->bind_structure( struct ).
Problem: Its giving a Type Mismatch Error with the data assignment..
Can we pass the internal table as a Data attribute for conversion?
Please Suggest..
Thanks,
Sachi
Hello Sachi,
I wonder which line actually causes the dump. Especially DATA = ITAB_SFLIGHT looks suspicious as the convert() method can only deal with simple data types. In case it is an internal table you need to convert each single line with help of the convert_struct() method.
Regards,
Klaus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.