cancel
Showing results for 
Search instead for 
Did you mean: 

Negative numbers in SAPScript

Former Member
0 Kudos

Hello Experts,

I need to display negative number in SAPscript form. The field, which I want to display is e.g. value 75,00-, but the sign is not displayed in SAPscript (only spac instead of sign). Is ther any special formating to display it?

Thanks&regards,

Jirka

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Normally account is to printed with "SIGN "allignment.

If its set to sign then it automatically makes it as sign - Right aligned

Try creating a new paragraph format using the above said and take care of your tab position .

I hope it solves your problem.

Regards,

K.Sibi

Edited by: sibi k kanagaraj on Mar 4, 2009 10:05 AM

Former Member
0 Kudos

hi,

GO through the following link..

[Negative Sign|;

Hope this help you

Regards

Ritesh J

Former Member
0 Kudos

Hi Jiri,

You can try one thing. Define a paragraph format and in that define a tab with Alignement as 'SIGN'. Now use that tab to display the negative value. See if this works.

Former Member
0 Kudos

Field ACCIT-PSWBT does not include a sign. You have to determine it using the debit/credit indicator field (SHKZG).

Rob

Former Member
0 Kudos

But in debugger, it has a sign.

J.

Former Member
0 Kudos

Hi,

If that field has negative value all the time then its better to define negative mark symbol and then print element in front of that symbol.

Here you can define negative symbol as :-

😕 DEFINE SYMBOL = '-'.

then print text element by using required paragraph format as:-

A1 &SYMBOL& &TextElement& (Here A1 is on of the paragraph format)

Hope this works for you.

Thanks.....

Former Member
0 Kudos

use SET SIGN

кu03B1ятu03B9к

Former Member
0 Kudos

&wa_symbol(<)& Display Leading Sign to the Left

&wa_symbol(>)& Display Leading Sign to the Right

Or use

/: SET SIGN LEFT

/: SET SIGN RIGHT

Former Member
0 Kudos

Hello,

thanks for your tip. Unfortunatelly, it doesn't help. I'm trying to display negative value from structure ACCIT field PSWBT. Any other advice? I can do some logic in Sapscript and write minus sign manually, but I think there should be some standard to display it.

Thanks&regards,

Jirka