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

Regarding Date Problem

Former Member
0 Likes
501

Hi

I wrote a BDC by using WSO1 transaction when iam giving date as 19/20/2006 it is showing 20060920 and it is giving error invalid date format .

Plz tell me which function module i have to use .

Thanks

Maheedhar.T

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
468

Use the statement

write date to v_date.

Then use v_date for the bdc.

Regards,

Ravi

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
468

Hello Maheedhar

Try to use a CHAR10 field instead of a date field to fill your BDC:

DATA:
  ld_date(10)  TYPE c.


  WRITE date_field TO ld_DATE DD/MM/YYYY.

Now use the ld_date field to fill your BDC.

Regards

Uwe

Read only

Former Member
0 Likes
469

Use the statement

write date to v_date.

Then use v_date for the bdc.

Regards,

Ravi

Read only

anversha_s
Active Contributor
0 Likes
468

hi,

use this

FM - > CONVERSION_EXIT_PDATE_OUTPUT

YYYYMMDD -> DD/MM/YYYY

rgds

anver

if helped mark points