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

FM to convert date

Former Member
0 Likes
5,999

hi everybody

theres a field in table tcurr, called as gdatu

the date format in this field is very strange , for example 80009898

Does anybody know any FM which converts this date into a readable format?

Regards

Anjali

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,525

Use the FM <b>CONVERSION_EXIT_INVDT_OUTPUT</b>.

Regards,

Prakash.

11 REPLIES 11
Read only

Former Member
0 Likes
4,526

Use the FM <b>CONVERSION_EXIT_INVDT_OUTPUT</b>.

Regards,

Prakash.

Read only

Former Member
0 Likes
4,525

Try using one of these fms:

CONVERSION_EXIT_INVDT_INPUT Conversion exit routine for inverted date (INPUT)

CONVERSION_EXIT_INVDT_OUTPUT Conversion exit routine for inverted date (OUTPUT)

Sample Usage:

CALL FUNCTION 'CONVERSION_EXIT_INVDT_OUTPUT'

EXPORTING

INPUT = TCURR-GDATU

IMPORTING

OUTPUT = DATE.

Regards,

ravi

Read only

0 Likes
3,732

In this FM for exporting parameter associated type is not given, what should be the associated type which can hold atleast 10 char as I want date to be printed as dd/mm/yyyy

Read only

FabioPagoti
Active Contributor
0 Likes
3,700

JM25 you are replying a "Former member" (aka nobody) from a thread from 2006!

Read only

Former Member
0 Likes
4,525

CONVERT INVERTED-DATE TCURR-GDATU INTO DATE VALID_FROM_DATE.

Read only

anversha_s
Active Contributor
0 Likes
4,525

hi ,

use this FM

CONVERSION_EXIT_INVDT_OUTPUT

rgds

anver

if hlped mark points

Read only

Former Member
0 Likes
4,525

Hi Sia,

Please try this FM.

<b>CONVERSION_EXIT_INVDT_INPUT

CONVERSION_EXIT_INVDT_OUTPUT</b>

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
4,525

the FM CONVERSION_EXIT_INVDT_OUTPUT works perfectly

Thanks Prakash!

Read only

0 Likes
4,525

have u tried mine , it works in single line

Read only

0 Likes
4,525

yea it works Chandrasekhar!thanks a lot for your help!

Read only

Former Member
0 Likes
4,525

Hello,

Use the function module CONVERSION_EXIT_INVDT_OUTPUT

Regs,

Venkat Ramanan N