‎2006 May 24 3:32 PM
Hi,
I have a date just with month and year. like this:
032006
what i want is to know if there is any function that inverts my date to stay like this:
200603
thanks,
ricardo
‎2006 May 24 3:33 PM
data: date1(6) value '032006',
new_date(6).
concatenate date12(4) date10(2) into new_date.
write:/ new_date.
Regards,
Ravi
‎2006 May 24 3:35 PM
Hi,
I don't think there is any FM which converts that way. Use <b>Concatenate</b> Statement or <b>Offset</b> to achieve the same. Any wayz Try Using <b>CONVERSION_EXIT_PDATE_INPUT</b>
‎2006 May 24 3:35 PM
‎2006 May 24 3:35 PM
Hi,
Use offset.
say, var1 = '062003'.
var2 = var1+0(2).
var3 = var1+2(4).
concatenate var3 var2 into var1.
Thanks,
Aswin
‎2006 May 24 3:38 PM
Hi ricardo,
concatenate date2(4) date0(2) into date.
regards,
keerthi.
Message was edited by: keerthi kiran varanasi
‎2006 May 24 3:38 PM
hii
use this fm
<b>CONVERSION_EXIT_PDATE_INPUT</b>
CALL FUNCTION 'CONVERSION_EXIT_PDATE_INPUT'
EXPORTING
INPUT = p_date
IMPORTING
OUTPUT = v_date
.
using offset of p_date .
Regards
Naresh
‎2006 May 24 3:41 PM
Yes, there is a function module. Check this conversion exit.
report zrich_0001.
data: input(6) type c value '032006'.
data: output(6) type c.
call function 'CONVERSION_EXIT_PERI_INPUT'
exporting
input = input
* NO_MESSAGE =
importing
output = output
* RETURN =
.
write:/ output.
This is the standard conversion exit which is tied to the data element SPBUP which is a 6 character numeric field which is for posting period(YYYYMM)
Regards,
Rich Heilman