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

Module pool program - date mask DD/MM/YYYY.

Former Member
0 Likes
1,374

Hi,

I am working with module pool program and have a date field on the screen. The date mask should be DD/MM/YYYY.

How can I achieve the same? By default the date mask is DD.MM.YYYY.

Thanks.

1 ACCEPTED SOLUTION
Read only

naveen_inuganti2
Active Contributor
0 Likes
1,054

Hi....

I dont thing there is a screen attribute for this.

So you can change it programitically.

Suppose the screen field is DATE.

You are passing the ERDAT say.

Now....

Declare one variable.

data: VDATE(10) type c.
concatnate ERDAT+6(2) ERDAT+4(2) ERDAT+0(4) into VDATE seperated by '/'.

Pass the VDATE to screen field DATE.

Thanks,

Naveen.I

8 REPLIES 8
Read only

Former Member
0 Likes
1,054

Hi,

We have FM in SAP to change the format of date ..

Conversion_exitdate search in SE37..

Raghunath.S

Read only

naveen_inuganti2
Active Contributor
0 Likes
1,055

Hi....

I dont thing there is a screen attribute for this.

So you can change it programitically.

Suppose the screen field is DATE.

You are passing the ERDAT say.

Now....

Declare one variable.

data: VDATE(10) type c.
concatnate ERDAT+6(2) ERDAT+4(2) ERDAT+0(4) into VDATE seperated by '/'.

Pass the VDATE to screen field DATE.

Thanks,

Naveen.I

Read only

Former Member
0 Likes
1,054

Hi,

HRGPBS_HESA_DATE_FORMAT

try this above function module.

Thanks,

Durai.V

Read only

Former Member
0 Likes
1,055

Hi,

I think not many have understood the issue.

I want to enable the user to enter date in dd/mm/yyyy format on the screen field (Module pool program). I am not talking abt the storage format of the date field.

Can anybody help?

Read only

0 Likes
1,055

hi,

u can validate the selection screen field ,if the date format is dd/mm/yyyy,than proceed.

Read only

Former Member
0 Likes
1,055

Hi kumar g,

Goto su01 then put username:(your system SAP username) then

click change button, find default which tabstrip values.

click change date format . and save the button.

next logout and again login the username..

u can find date format in output field..

Regards,

S.Suresh.

Read only

Former Member
0 Likes
1,055

hi dear,

use FM 'CONVERSION_EXIT_PDATE_OUTPUT' for conversion.

enjoy.

Manish

Read only

Former Member
0 Likes
1,055

-