Skip to Content
0
Former Member
Feb 23, 2006 at 05:39 PM

Getting negative sign in beginning while printing in smartform

885 Views

Hi,

I am defining following is defined in global definitions in smartform.

DATA: gv_discount type kwert,

gv_disscount_ch TYPE CHAR18,

Inside code node in smartform I using following,

Data: lv_waerk type vbap-waerk.

gv_discount = gv_discount + gv_item_disc_total.

write gv_discount to gv_discount_ch currency lv_waerk

right justified.

Now I am using gv_discount_ch to write in text node in smartform using following:

&gv_discount_ch(c)&

It giving 250-

But I want -250. So I used &gv_discount_ch(<)&

But it still gives me 250-

I want to get the negative sign in beginning at the same time I want to use (C) also. How do I do it ?

Please help me out.

Thanks.

Regards,

Tushar.