10-07-2007 6:22 PM
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>
10-07-2007 8:11 PM
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
10-07-2007 6:31 PM
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&
10-07-2007 8:11 PM
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
10-07-2007 8:14 PM
<b>Anji</b>, it did not work.
do you think it is because im doing only a PRINT PREVIEW?
10-07-2007 8:31 PM
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
10-07-2007 8:32 PM
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>