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

Date Conversion

Former Member
0 Likes
1,038

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,014

Hi Jeetu,

Check out this thread this might help u in solving ur problem.

Regards,

Nagarajan.

10 REPLIES 10
Read only

Former Member
0 Likes
1,014

Use write to statement

Data v_datum(10).

write sy-datum to v_datum.

Read only

0 Likes
1,014

I have tried write sy-datum to dt MM/DD/YYYY.

But it is not working.

Read only

0 Likes
1,014

I have tried it and its working for me..

Read only

0 Likes
1,014

Alternatively to make the logic to work,

Change the User settings for the date format to MM/DD/YYYY in SU3 transaction.

Regards,

ravi

Read only

0 Likes
1,014

Alternatively to make the logic to work,

Change the User settings for the date format to MM/DD/YYYY in SU3 transaction.

Regards,

ravi

Read only

0 Likes
1,014

Alternatively to make the logic to work,

Change the User settings for the date format to MM/DD/YYYY in SU3 transaction.

Regards,

ravi

Read only

Former Member
0 Likes
1,015

Hi Jeetu,

Check out this thread this might help u in solving ur problem.

Regards,

Nagarajan.

Read only

Former Member
0 Likes
1,014

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

Read only

Former Member
0 Likes
1,014

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

Read only

Former Member
0 Likes
1,014

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.