cancel
Showing results for 
Search instead for 
Did you mean: 

SCRIPTS - EDIT MASK on the layout?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks guys ..i am done with it.

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi,

u can do this by adding (<) to the field which u want a leading sign.

ex : &l_netwr(<)&

Reward if helpful

kamal

Former Member
0 Kudos

Hi,

I am done but the alignment is getting disturbed .

This means that in the layout for the amounts with -ve signs in front are moving ahead and the ones with no -ve sign are fine.

How to handle this?

Thanks

Dany