on 08-08-2007 6:43 PM
Hi Experts,
Can we use the EDIT MASK option while passing a variable to display in the output? Or is there any option as such to be used in layout of SAP SCRIPTS
I need to display the - (minus) sign infront of a cusrrency variable without <b>converting to chararcter data type.</b>
Please reply.
Thanks
Dany
Hi Dan,
You can not using EDIT MASK in scripts.
The minus sign for a currency variable will come with the following syntax.
<b>&symbol(<)&</b>
Example
&ITCDP-TDULPOS& -> 100.00-
&ITCDP-TDULPOS(<)& -> -100.00
Thanks,
Vinay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solution to your questions.
1)You can use EDIT mask on scripts, but you should use it in different way.
/: SET DATE MASK = 'MM.DD.YYYY'
&DATE(Z)& "08.09.2007
/: SET DATE MASK = 'MMMM DD,YY'
&DATE& " August 9, 07
/:SET TIME MASK = 'HH:MM'
&TIME(Z)& "10:20
/:SET TIME MASK = 'HH hours MM minutes'
&TIME(Z)& " 10 hours 20 minutes
2) &SYMBOL(<)& "Leading sign to left
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
u can do this by adding (<) to the field which u want a leading sign.
ex : &l_netwr(<)&
Reward if helpful
kamal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.