I posted this in the BI section but got no responses. I get much faster responses on this forum and while it is BI related, it is a code issue as well. Question is below:
I am trying to get data from one info object that has a data value of Char to another info object that has a data value of Date.
The Char value looks like this: mm/dd/yy hh:mm:ss
The Date value looks like this: dd-mm-yy
When I put the first half of the char value in it does this: -d/d-/yyyy
How do I filter out the dashes in the Char???
Thanks.
Hi,
May be this way
replace all occurrences of '-' in text with ' '.
a®
you can try like this:
data: l_char(10) type c value '11/29/2007', l_date(10) type c value '29-11-2007'. replace all OCCURRENCES of '/' in l_char with ' '. replace all OCCURRENCES of '-' in l_date with ' '. write: / l_char, / l_date.
Regards,
Naimesh Patel
Add a comment