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 masking issue

Former Member
0 Likes
796

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
Read only

Former Member
0 Likes
751

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

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>

5 REPLIES 5
Read only

Former Member
0 Likes
751

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&

Read only

Former Member
0 Likes
752

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

Read only

0 Likes
751

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

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

Read only

0 Likes
751

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

Read only

Former Member
0 Likes
751

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>