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

Which Function Module is used for converting the DATE in BDC

Former Member
0 Likes
1,461

HI,

Which Function Module is used for converting the DATE Format in BDC for Uploading purpose please help me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,215
data : date like sy-datum.
data : odate(10) type c.
date = sy-datum.        " in format YYYYMMDD
 
 
CALL FUNCTION 'CONVERSION_EXIT_PDATE_OUTPUT'
  EXPORTING
   input         = date
 IMPORTING
   OUTPUT        = odate         .
 
write:/ odate.  "in ur format '.



1.
In ur itab make a field for date as 10 characters and use this Fm to store the date .

2. Pass the date as the charcter field to the screen and now check .

HI,

Which Function Module is used for converting the DATE Format in BDC for Uploading purpose please help me.

6 REPLIES 6
Read only

Former Member
0 Likes
1,215

u can use simple command write to.

Regards

Prabhu

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
1,215

Hi

Use the split and concatenate mechanism to get ur required date format.

Regards,

Sreeram

Read only

Former Member
0 Likes
1,215

Hi

Use

CONVERT_DATE_TO_INTERNAL

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
1,216
data : date like sy-datum.
data : odate(10) type c.
date = sy-datum.        " in format YYYYMMDD
 
 
CALL FUNCTION 'CONVERSION_EXIT_PDATE_OUTPUT'
  EXPORTING
   input         = date
 IMPORTING
   OUTPUT        = odate         .
 
write:/ odate.  "in ur format '.



1.
In ur itab make a field for date as 10 characters and use this Fm to store the date .

2. Pass the date as the charcter field to the screen and now check .
Read only

0 Likes
1,215

thanks for your Answer..it was working nice without any error

Read only

Former Member
0 Likes
1,215

use like this

data : var(10) value '31.03.2007'.

data : vdat type d.

CALL FUNCTION 'CONVERSION_EXIT_PDATE_INPUT'

EXPORTING

INPUT = var

IMPORTING

OUTPUT = var

.

vdat = var.

regards

shiba dutta