2006 Jun 09 11:13 AM
Hello.
I have a problem with a form in SapCript. Inside the form I have a text elemen that writes a date :
®UH-VALUT&, and usually have the value 20060602
and when i display the result of the form sometimes it writes "02.04.2006" correctly and others writes "02 de Junio de 2006" and i don´t wnat this.
What is the reason ?? you know??
Thanks.
2006 Jun 09 11:17 AM
2006 Jun 09 11:15 AM
Hi Jorge,
use this:
/: set date mask 'mmddyyyy'.
reward if helpful.
regards,
keerthi.
2006 Jun 09 11:16 AM
2006 Jun 09 11:17 AM
But with my user profile sometimes writes the correct form and others the incorrect..
2006 Jun 09 11:18 AM
hi jorge,
yes inside the form in <b>text elements</b>
give
/: SET TIME MASK = time mask
/: SET TIME MASK = HH:MM
&TIME&
/: SET TIME MASK = HH hours MM minutes
&TIME&
hope this helps,
do reward if it helps,
priya.
2006 Jun 09 11:19 AM
Then, its better to convert the date format manually in print program by taking offset positions and rearrange them in a variable by specifying dots between day month year.
or you can SET DATE MASK ddmmyyy.
regards,
ram
2006 Jun 09 12:13 PM
Iva tested with SET DATE MASK ddmmyyy but it dosen´t go well.
Some idea???
2006 Jun 09 11:15 AM
convert the date in the desired format and then pass it to SAP Script.
If you dont convert it, it will automatially take default format from User profile.
regards,
ram
2006 Jun 09 11:16 AM
check the language settings
inside the form use
<b>/: SET DATE MASK = MMMM, DD. YYYY
&DATE&</b>
2006 Jun 09 11:17 AM
2006 Jun 09 11:20 AM
In some documents with the same user and profile and language options the form shows 02.06.2006 ( is the correct ) sometimes and other shows 02 de Junio de 2006 ( Incorrect ) .
2006 Jun 09 12:03 PM
Hi Jorge,
that may be because of country specific date formatting within SAP... u can override all such side effects by using the SET DATE MASK command as suggested by other ppl.
just before ur variable in sapscript..
/: SET DATE MASK = 'DD.MM.YYYY'.
the next line contains ur date variable...similarly u can use this anywhere else...
2006 Jun 09 11:19 AM
Hi
IN se71 before printing ®UH-VALUT&,
use below code
set date 'DD.MM.YYYY'.
®UH-VALUT&
Regards,
Amole
2006 Jun 09 11:19 AM
Hi,
are you sure ?, and both the places are you using the same variable ®UH-VALUT&.
i doubt check it once you might be converting some where in your program.....
Regards
vijay