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

important date query

Former Member
0 Likes
341

how to convert date in mm dd yy format to 20yy mm dd format?

2 REPLIES 2
Read only

Former Member
0 Likes
317

HI ,

Prabhat , your question is not clear. alwayes date have fixed width dd.mm.yyyy like that or order will be change as per requirement.

if you want to suffix number 20 in each date then you have to define a another workarea for the same with help of concatenate command like

data : wa_str(15) type c.

CONCATENATE '20' sy-datum6(2) sy-datum4(2)

sy-datum+(4) INTO WA_STR separated BY SPACE.

tried it out I may help you.

Regards

Swati...

Read only

Former Member
0 Likes
317

Hi p bharath,

Try any of these function modules

CONVERSION_EXIT_SDATE_OUTPUT

CONVERSION_EXIT_IDATE_OUTPUT

CONVERSION_EXIT_PDATE_OUTPUT

Plzz reward if it is useful,

Mahi.