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

Error displaying date as column header in RTTS

Former Member
0 Likes
1,261

Hi Alli,

   I have an output where I am using a sate for the column header in RTTS as below. I am getting a short dump when I get to line gr_struct_type ?= cl_abap_structdescr=>create(p_components = gt_component)  I  have tried making the field a Character, Sy-DATUM and Number. The dump states component name '02012015' of the component 2  contains an illegal character. I do not need the display format as I can change it before output, though that would be easier if it could be entered initiallly as is.

I am working around this at the moment by formatting the date in my column output. Also to give my rows actual names the only solution I could think of was to make a field called with my row names in it. So in this case Field = "Total Sales" is there a cleaner solution?

Thanks,George

Hi George,

Not sure if I fullt understood your problem... I believe you your component name was '02/1/2015' and you were getting an error because of this? If so, my recomendation is that you create your component name as '20150102' (date format) and on col_decription you just use write statement to foprmat:

write col_name into col_desc DD/MM/YYYY

Regards,

Custodio

2 REPLIES 2
Read only

custodio_deoliveira
Active Contributor
0 Likes
1,218

Hi George,

Not sure if I fullt understood your problem... I believe you your component name was '02/1/2015' and you were getting an error because of this? If so, my recomendation is that you create your component name as '20150102' (date format) and on col_decription you just use write statement to foprmat:

write col_name into col_desc DD/MM/YYYY

Regards,

Custodio

Read only

0 Likes
1,217

Hi Custodio,

   Thank you, I am actually doing that now however it won't even allow me to put in '20150102', I get the same error with that so I actually put "DATE" in the component. It does not appear to take anything other than text. It seems to be the way gt_component is defined.

Thanks,