Page 1 of 1

How to indicate a negative sign next to all values

PostPosted: Thu Dec 29, 2011 12:03 am
by Alicealice
Dear All,

I would like to know how to indicate a negative sign next to the values?

Example:
1234 - (add negative sign when it is positive value)
1234 (no negative sign if it is negative value)

Could someone guide me please?

Thanks.

Re: How to indicate a negative sign next to all values

PostPosted: Sat Dec 31, 2011 5:32 am
by Rich
Do you also have the Debit/Credit indicator SHKZG available ?

If so then just multiply the value by -1 dependant on the value of SHKZG S or H). If not then a simple if statement followed by a ultiplication would do the trick.

Re: How to indicate a negative sign next to all values

PostPosted: Mon Jan 02, 2012 4:50 pm
by Alicealice
Hi,

I'm not able to find the Debit/Credit indicator SHKZG, I don't think
it is available.

Below is one of code in my sapscript.
<H8><B>&'Total TVA 'PER1(2)'%'&,,</></>,,,,<H8>&v_vatamt_ch&</>

Could you please look into this problem? Could you provide an example?

Thanks.

Re: How to indicate a negative sign next to all values

PostPosted: Tue Jan 03, 2012 2:05 am
by Rich
Hmmm,

Well, you could've said it was Sapscript in your original post.

Re: How to indicate a negative sign next to all values

PostPosted: Tue Jan 03, 2012 2:06 am
by Gothmog
I'm moving this to the Sapscript/Smartform forum.

Re: How to indicate a negative sign next to all values

PostPosted: Sun Jan 29, 2012 10:50 pm
by abaper2009
i face the same problem and here is the answer, hope its help
Leading Sign to the Left
The leading sign is normally displayed to the right of a numeric value, except in
the case of a floating point number. This option enables you to specify that the
leading sign should be placed to the left of the number.
Syntax
&symbol(<)&


we just put '(<)' sign in our variable or symbol

:D

http://www.google.com.my/url?sa=t&rct=j ... H9nB6ix3FA

Re: How to indicate a negative sign next to all values

PostPosted: Mon Apr 23, 2012 4:33 am
by messki678
hi,
i think so we do (-<) what you say?