Application Development 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: 

date masking issue

Former Member
0 Kudos

im trying to self-study sapscript. i have date mask issue.

this is the code:

http://i150.photobucket.com/albums/s116/painkiller2007/SAP/sapscript002.jpg

this is the result:

http://i150.photobucket.com/albums/s116/painkiller2007/SAP/sapscript001.jpg

why do i get xx/xx/xxxx instead of the normal date? when i try the sy-datum on a program it works normal. <b>pls help. thanks. </b>

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Remove TODAY IS from the field and use

SET DATE MASK = 'MMMM DD, YYYY'

this will print March 01, 2007

So use

SET DATE MASK = 'MM/DD/YYYY'

SET TIME MASK = 'HH:MM:SS'

You will get the Required Output

Regards

Anji

5 REPLIES 5

Former Member
0 Kudos

I just found out the same thing is happening when i use the time. below is the code:

__________________

SET DATE MASK = 'TODAY IS MM/DD/YYYY'
SET TIME MASK = 'HH:MM:SS'
&DATE&
&TIME&

Former Member
0 Kudos

Hi

Remove TODAY IS from the field and use

SET DATE MASK = 'MMMM DD, YYYY'

this will print March 01, 2007

So use

SET DATE MASK = 'MM/DD/YYYY'

SET TIME MASK = 'HH:MM:SS'

You will get the Required Output

Regards

Anji

0 Kudos

<b>Anji</b>, it did not work.

do you think it is because im doing only a PRINT PREVIEW?

0 Kudos

Hi

Where you are using this actually?

In which script are you using this?

It will work hundred percent...

Something wrong in your execution...

Reward if useful

Regards

Anji

Former Member
0 Kudos

ok i got. it is because of the print preview on the form itself. when you do print preview in the program, it works ok. <b>thanks Anji for the help. I gave points!</b>