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 Issue

Former Member
0 Likes
371

Hi all,

How can i format a date field of length 8 to user profile formats such as

(mm-dd-yyyy)

i am using BDC and i have to populate a standard date field in this format.

Please guide me.

Thank U..

Helpful answers will be rewarded...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
353

Hi,

Use the WRITE statement..

DATA: V_CHAR(10).

WRITE SY-DATUM TO V_CHAR.

Thanks,

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
354

Hi,

Use the WRITE statement..

DATA: V_CHAR(10).

WRITE SY-DATUM TO V_CHAR.

Thanks,

Naren

Read only

Former Member
0 Likes
353

see the system uses date in internal foramt like YYYYMMDD

this assignment is enough .

so u can assign the date


data : date like sy-datum ,
         input_Date like sy-datum.

date =  input_date.

substitute this date to the screen field , this will do .

regards,

vijay