cancel
Showing results for 
Search instead for 
Did you mean: 

Date in the output format is showing wrong

Former Member
0 Kudos

Hi,

I have a requirement to dispaly the date in a smartform in the format: ex: feb 28, 2008.

For this i have used the following code in a text node, But the smartform is not showing the correct format in the Preview, even in the printout. it is showing like 02/28/2008.....

AD Order No:,,&G_W_VBAK-VBELN&

/: SET DATE MASK = 'MMM DD, YYYY'

AD Order Date:,,&G_W_VBAK-ERDAT&

AD Delivery Date:,,&G_W_VBAK-VDATU&

could anybody guide me..

Thanks,

Sekhar.J

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Create a Program lines node and define a global variable of type sy-datum and the set the date format in ABAP.

bye

0 Kudos

How to change date formate on output screen in abap ?
It's showing worng format on screen while redering the output of our report:
10 20.9..28.0

It should be 2019.10.28

Former Member
0 Kudos

Hi,

SET DATE MASK is a SAPscript command and so won't work in Smartfroms. What you will need to do is create an ABAP node with a global variable for your new date field and use ABAP to format the date (the function module in the earlier answer may be useful).

Regards,

Nick

Former Member
0 Kudos

hi

i think it is giving correct only.... for u r code

try to use this function module

MONTH_NAMES_GET---it will return month name

may be it is useful.

Thanks,

usha

reward points if useful.