cancel
Showing results for 
Search instead for 
Did you mean: 

suppress the sign in sapscript

Former Member
0 Kudos

hi friends..

what is command for suppress the sign in sapscript

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use the String length on that fiels, lets say that field is OUTTABLE_FIELD,

Data: length type i.

Length = STRLEN(OUTTABLE_FIELD).

Length =  length - 1.   " TO ignore the Minus sign, this will be there in the Last of the field

OUTTABLE_FIELD = OUTTABLE_FIELD+0(Length).  " So here the Minus will not be there in the field

Regards

Sudheer

Former Member
0 Kudos

thanx sudheer its working..

thank u very much..

keep in touch

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

There si no command to suppress the sign in SAPSCRIPT, Just using the offset, write upto the last charecter, so the Minus sign will be ignored

Regards

Sudheer

Former Member
0 Kudos

hi,

follow this logic........

&variable&---> 1000-

<b>&variable(s)&-----> 1000</b>

&variable(<)&-----> -1000

we can use the S option to ensure that the value is formated without the sign.

regards,

Ashok Reddy

Former Member
0 Kudos

I USED PERFORM STATEMENT IN LAYOUT..

JUST I WANT TO PRINT THAT CHANGING PARAMETER..

BEFORE THAT I WANT TO SUPPRESS THE SIGN IN VARIABLE( IN CHANGING PARAMETRS)

CAN U TELL ME PLZ

former_member196280
Active Contributor
0 Kudos

This can be done in two ways, before passing back to form try to do like this in perform statement.

IF value < 0.

value = value *-1.

ENDIF.

and pass it back to form and it dispalys with out sign.

OR

IF you pass the value with negative sign to form you can surpress the sign while display like this

&value(S)& " here S indicates surpress.

Regards,

SaiRam

Former Member
0 Kudos

thanx sai ram its working..

thank u very much..

keep in touch