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 Formates in SMARTFORMS

Former Member
0 Likes
737

Hi Friends,

i am working in Smartforms, i have a date field when used in smartform its date formate is dd.mm.yyyy but i need dd.mm.yy

example while taking printout its coming as 15.05.2008 but i need is 15.05.08,

i used SET DATE MASK but its not working.

is there any Function Module there to convert

please help me

Regards

kumar M

6 REPLIES 6
Read only

Former Member
0 Likes
695

Hi,

USE it:

CONVERSION_EXIT_SDATE_OUTPUT

Regards,

Shiva

Read only

0 Likes
695

Hi Frds

Try this simple coding .,

write : itab_date to date DD/MM/YY.

Reward Me Points

By

Pari

Read only

valter_oliveira
Active Contributor
0 Likes
695

Hello.

Create a char8 field and convert like this example:


DATA: data TYPE char8.
WRITE sy-datum TO data DD/MM/YY.

This is usefull also, because it will be shown like user default.

Best regards.

Valter Oliveira.

Read only

Former Member
0 Likes
695

Hi,

1.You can write using "EDIT MASK".

WRITE SY-DATUM TO TEMP USING EDIT MASK "__:__:____"

2.please try this Function Modules also.

OIUH_FORMAT_DATE

FORMAT_DATE_4_OUTPUT

Regards,

Raj.

Read only

Former Member
0 Likes
695

Hi,

Try with all:

DATE_CONVERT_TO_FACTORYDATE

DATE_GET_WEEK

DATE_COMPUTE_DAY

CONVERT_DATE_TO_ALPHA_NUMERIC

PERIOD_AND_DATE_CONVERT_INPUT

DATE_IN_FUTURE

Regards,

Kumar

Read only

Former Member
0 Likes
695

change it in print program...

data: date(10) type c value '15.02.2008',

day(2),

month(2),

year(4),

lv_year(10).

day = date+0(2).

month = date+3(2).

year = date+6(4).

year = year+2(2).

concatenate day month year into lv_year seperated by (whatever u want).

**and use this lv_year in your smartform.

regards