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

Moving Date to Alphanumeric

Former Member
0 Likes
1,025

Hi,

Can somebody tell me how to move a date field in to an alpha numeric field in "YYYYMMDD" format?

Thanks,

John.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
749

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

4 REPLIES 4
Read only

Former Member
0 Likes
749

Hi John,

Can you please elaborate your need.

Regards,

Atish

Read only

0 Likes
749

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.

Read only

Former Member
0 Likes
750

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

Read only

Former Member
0 Likes
749

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