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

Re: Date format in Smartforms

Former Member
0 Likes
1,203

I am printing delivery date for each line item,for the first line item date is printing properly, for the second line item it's giving different format.i maintained date format in user profiles as dd.mm.yyyy.

for the first line item---dd.mm.yyyy.

for 2nd line item---dd/mm/yyyy.

i want to print 2 nd line as fist line item date.

Thanx In advance

5 REPLIES 5
Read only

Former Member
0 Likes
766

Hi Praveen,

Refer this thread:

[;

Thanks,

Archana

Read only

Former Member
0 Likes
766

Hi,

It is better to convert date into your required format using SET DATE MASK command by put a program lines node before displaying the date value.

Read only

Former Member
0 Likes
766

Hi,

You can use set date mask, refer this:

http://help.sap.com/saphelp_nw04/helpdata/en/d1/803508454211d189710000e8322d00/frameset.htm

Hope it helps

Regards

Mansi

Read only

Former Member
0 Likes
766

Try like this,

SET DATE MASK = 'MM/DD/YYYY'

Regards,

Joan

Read only

Former Member
0 Likes
766

Hi ,

please refer to the following code.

Using Function modules

************************

data: gd_date(8). "field to store output date

  • Converts date from 20010901 to 01SEP2001

gd_date = sy-datum.

CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'

EXPORTING

input = gd_date

IMPORTING

OUTPUT = gd_date.

Hope this is helpful to u.

Warm Regards,

Srilu.