‎2006 Jan 12 10:30 AM
I want to coonvert sy-datum to mm/dd/yyyy form which is going to be a input field for BDC.
Could anyone help?
Thanks
‎2006 Jan 12 10:38 AM
‎2006 Jan 12 10:32 AM
Use write to statement
Data v_datum(10).
write sy-datum to v_datum.
‎2006 Jan 12 10:35 AM
I have tried write sy-datum to dt MM/DD/YYYY.
But it is not working.
‎2006 Jan 12 10:38 AM
‎2006 Jan 12 10:47 AM
Alternatively to make the logic to work,
Change the User settings for the date format to MM/DD/YYYY in SU3 transaction.
Regards,
ravi
‎2006 Jan 12 10:48 AM
Alternatively to make the logic to work,
Change the User settings for the date format to MM/DD/YYYY in SU3 transaction.
Regards,
ravi
‎2006 Jan 12 10:48 AM
Alternatively to make the logic to work,
Change the User settings for the date format to MM/DD/YYYY in SU3 transaction.
Regards,
ravi
‎2006 Jan 12 10:38 AM
‎2006 Jan 12 10:40 AM
try this.
data : c1(10) type c .
concatenate sy-datum4(2) '/' sy-datum6(2) '/' sy-datum+0(4) into c1.
Hope this helps you.
Message was edited by: Asit Garg
‎2006 Jan 12 10:47 AM
I would like to thank all of u for your prompt response.
Everybody has been awarded the appropriate points.
Now the problem has been solved.
Regards,
Jeetu
‎2006 Jan 12 11:31 AM
Hi,
Can you brief me the exact requirement. Before passing the date value to BDC, we need to findout the date settings in the system by using fm SLS_MISC_GET_USER_DATE_FORMAT, accordingly we need to convert input date format to system format.
Hope it solves your problem.