Application Development 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: 

Which Function Module is used for converting the DATE in BDC

Former Member
0 Kudos

HI,

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
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 .
6 REPLIES 6

Former Member
0 Kudos

u can use simple command write to.

Regards

Prabhu

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

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

Regards,

Sreeram

Former Member
0 Kudos

Hi

Use

CONVERT_DATE_TO_INTERNAL

Reward points if useful

Regards

Anji

Former Member
0 Kudos
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 .

0 Kudos

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

Former Member
0 Kudos

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