07-31-2008 10:22 AM
07-31-2008 10:24 AM
07-31-2008 10:24 AM
07-31-2008 10:25 AM
07-31-2008 10:26 AM
hi,
do this way ...
concatenate sy-datum+0(6) 'AA' into v_date. " Provide the AA value in the quotes
07-31-2008 10:27 AM
Hi,
What do you mean by AA in the date format YYYYMMAA?
If it is YYYYMMDD format, it is an SAP standard format. If you want to set the user profile settings Go to SU3 transaction and in the Defaults tab set the date format to your desired format.
Regards,
Ramesh
07-31-2008 10:27 AM
Hi Nani,
Check this sample code.
data : v_datum like sy-datum value sy-datum.
concatenate v_datum+0(4) v_datum+4(2) v_datum+6(2) into v_date.
write : v_date.
Regards,
Suresh.S
07-31-2008 10:29 AM
Hi,
Try this Fm
CONVERSION_EXIT_LDATE_OUTPUT u2013 Converts date format
07-31-2008 10:32 AM
Please read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting any further.
You will notice that I have deleted or locked some of your threads. This is known as cross-posting => not allowed.
Welcome to SDN though,
Julius
07-31-2008 10:33 AM
parameters:p_date type sy-datum .
data:year(4) type c ,
month(2) type c ,
date(2) type c ,
date1(8) type c.
year = p_date+0(4).
month = p_date+4(2).
date = p_date+6(2).
concatenate year month date into date1 .
write:/ date1 .
07-31-2008 10:34 AM
Hi,
First refrain from posting multiple threads for same question.
What do u mean by AA?
Is it YYYYMMDD?
Variable of type sy-datum always stores date in the format YYYYMMDD. But when u output it displays the seperater.
If u don't want that then simply take it into one character variable.
Check below code.
DATA: date TYPE sy-datum,
char(8) TYPE c.
date = sy-datum.
char = date.
WRITE: date, char.
Thanks,
Vinod.