‎2007 Apr 30 7:01 AM
Hi,
Can somebody tell me how to move a date field in to an alpha numeric field in "YYYYMMDD" format?
Thanks,
John.
‎2007 Apr 30 7:44 AM
hi,
u can use <b>MOVE</b> starement ... type conversion is done automatically ...for example
date is 04/30/2007 means the result will be 20070430
regards
aswin
‎2007 Apr 30 7:26 AM
‎2007 Apr 30 7:44 AM
Hi,
Actually, I want to store a date into a character or alphanumeric field.
Lets say, BKPF-BUDAT is a date field. I have a custom field (Characteristic in COPA) into which I want the date field to be moved. Hope I am clear about it. Also, if you can, please give me an idea as to how to add a custom characteristic in COPA0005 (EXIT_SAPLKEII_001) exit.
Thanks,
John.
‎2007 Apr 30 7:44 AM
hi,
u can use <b>MOVE</b> starement ... type conversion is done automatically ...for example
date is 04/30/2007 means the result will be 20070430
regards
aswin
‎2007 May 01 7:14 AM
Hi Developers,
data :date(2) type c.
data:month(2) type c.
data:year(4) type c.
data:rer_date(12) type c.
your date is bkpf-budat.
clear :month date year.
move bkpf-budat+0(2) to date.
move bkpf-budat+3(2) to month.
move bkpf-budat+6(4) to year.
clear:rer_date
concatenate year month date into rer_date.
Thanks,
babu.G