cancel
Showing results for 
Search instead for 
Did you mean: 

Font : Display Leading Sign to the Left

Former Member
0 Kudos

Hi All,

I need to print the value with the SIGN on the LEFT SIDE.

I am using the variable in the with the sign - &gv_amt(<)&

variable -> gv_amt - contains the value NEGATIVE VALUE 123.456

NEGATIVE SIGN should come in the LEFT SIDE.

I am using the < symbol .

kindly let me know any other alternatives.

Regards

SH

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi SH,

You can use FM 'CLOI_PUT_SIGN_IN_FRONT'.

Thanks,

Gaurav Mittal

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

Try This It solves your Problem..!!

Ex:

declare :

gv_amt1 type string,

final_amt type string,

mins type c,

gv_amt type wrbtr.

gv_amt1 = bseg-wrbtr .

Move '-' to mins.

CONCATENATE mins gv_amt1 INTO final_amt.

Finally Move gv_amt to final_amt .

gv_amt = final_amt.

This Works ...

With Regards,

Vinu.R

venkat_o
Active Contributor
0 Kudos

Hi, Try this way.

&gv_amt(<)&
"Gives (-123.456)
&gv_amt(>)&
"Gives (123.456-) Thanks Venkat.O

Former Member
0 Kudos

HI

Even in smartforms , Double Click on the PEN symbol on the left it will open the editor where you can change the variable you have dragged and dropped..

&symbol(<)&

&ITCDP-TDULPOS& -> 100.00-

&ITCDP-TDULPOS(<)& -> -100.00

&ITCDP-TDULPOS(S)& -> 100.00

surya

Andri
Explorer
0 Kudos

Have you made sure that your variable is of a numeric kind? And not a character variable?

Former Member
0 Kudos

Hi,

try this way....



/: SET SIGN LEFT  &variable&
The leading sign appears to the left of the number. 

/: SET SIGN RIGHT &variable&
The leading sign appears to the right of the number. 

Prabhudas

Former Member
0 Kudos

prabhu

i tried with the mentioned approach

/: -- SET SIGN LEFT &V_ZK02_CHAR(C)&

it did not work out - kindly suggest

Former Member
0 Kudos

i am usign it to print in SMART FORM - KINDLY SUGGEST

Former Member
0 Kudos

Hi,

Try this type all upper case letters

Ex: &INT_AMOUNT(<)&

Regards

Krishna

Former Member
0 Kudos

please post the declaration of your variable GV_AMT.