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 convertion

Former Member
0 Kudos
475

Does it exists a function module that converts a date

05-JUL-06 into 20060705. I know how to do it in abap but i'd like a Standard function module

thanks in advance.

6 REPLIES 6
Read only

dani_mn
Active Contributor
0 Kudos
428

HI,

use the following FM

<b>CONVERSION_EXIT_SDATE_INPUT</b>

pass the date in '05.jul.06' format and it will return in

'20060705' format you required

Regards,

Read only

Former Member
0 Kudos
428

use this fm

CONVERSION_EXIT_SDATE_INPUT

simply pass the value - 25OCT2006 u will get 20061025

Regards

-


Sachin

Read only

0 Kudos
428

25-jul-06.. separator here should be in ur own system format

CONVERSION_EXIT_SDATE_INPUT

Read only

Former Member
0 Kudos
428

hi,

ch the solution given by viven in this thread

Read only

Former Member
0 Kudos
428

Check the following

CONVERSION_EXIT_PDATE_INPUT Conversion Exit for Domain GBDAT: DD/MM/YYYY -> YYYYMMDD

CONVERSION_EXIT_PDATE_OUTPUT Conversion Exit for Domain GBDAT: YYYYMMDD -> DD/MM/YYYY

SCA1 Date: Conversion

CONVERSION_EXIT_IDATE_INPUT External date INPUT conversion exit (e.g. 01JAN1994)

CONVERSION_EXIT_IDATE_OUTPUT External date OUTPUT conversion exit (e.g. 01JAN1994)

CONVERSION_EXIT_LDATE_OUTPUT Internal date OUTPUT conversion exit (e.g. YYYYMMDD)

CONVERSION_EXIT_SDATE_INPUT External date (e.g. 01.JAN.1994) INPUT conversion exit

CONVERSION_EXIT_SDATE_OUTPUT Internal date OUTPUT conversion exit (e.g. YYYYMMDD)

TB01_ADDON

CONVERSION_EXIT_DATEX_INPUT

CONVERSION_EXIT_DATEX_OUTPUT

Read only

anversha_s
Active Contributor
0 Kudos
428

hi,

chk this.

CALL FUNCTION 'CONVERSION_EXIT_IDATE_INPUT'

EXPORTING

INPUT = lcdate

IMPORTING

OUTPUT = out_date.

rgds

anver

pls mark hlpful asnwers