2015 Feb 01 1:49 PM
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
2015 Feb 01 11:00 PM
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
2015 Feb 01 11:11 PM
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,
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |