cancel
Showing results for 
Search instead for 
Did you mean: 

display '-' sign in before the value in scripts?

Former Member
0 Kudos

Hi experts,

i want to display '-' sign before the value of variable in scripts(BASK-DMBTR) STORED IN (T_FINAL-DMBTR)

in report program '-' sign is displaying after the value.But it is not displaying in scripts.

I used in scripts "SET SIGN LEFT" BUT i didn't get.variable is currency field.I also put '<' sign (t_final-dmbtr(<)) but i didn't get.

what is the problem ? pls help me in this.

Accepted Solutions (1)

Accepted Solutions (1)

satyajit_mohapatra
Active Contributor
0 Kudos

Please test using condense (C) for the field. Also check the window size as it may be getting truncated due to that.

Former Member
0 Kudos

Hi satyajit,

Thank u for giving immediate reply.I applied CONDENSE but it is giving syntax error.

DMBTR is currency type field.Condense keyword is for only character variable?

pls help me in this?

Former Member
0 Kudos

hey navadeep.

Your problem is your variable. Since it is IT_FINAL-DMBTR i hardly assume you declared it of type DMBTR.

Well type DMBTR has domain WERTV7 which actually is declared without sign.

Just use a variable WITH sign and liek yout tried (<).

You can use domain WERTV8 for this e.G..

satyajit_mohapatra
Active Contributor
0 Kudos

Try using condense in sapscripts like &FIELD(C)&. May be you are trying to condense the amount in driver program.

Former Member
0 Kudos

thank u kemmer and satyajit,

the problem is solved .

the variable is WERTV7 is without sign.

now i declared WERTV8 .

NOW IT IS DISPLAYING.

once again thank u very much both of u.

Sandra_Rossi
Active Contributor
0 Kudos

wiki updated with this information: http://wiki.sdn.sap.com/wiki/display/ABAP/SAPscript

Answers (0)