Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove space from a variable in a smartform

Former Member
0 Kudos

Hi,

I have a problem in displaying a variable in a smartform..The variable shows some blank space that preceeds the data.

for eg:,

variable = 18.000.

How to remove space before 18.000?

6 REPLIES 6

Former Member
0 Kudos

To remove the decimal places for quantity and rate/quantity , use the syntax to restrict the number of digits after decimal places. The syntax is

&symbol(.N)&

where N is number of decimal places.

Since you dont want decimals use &symbol(.0)&

For the other case it depends on how the currency is represented , any way try using the syntex &symbol(T)&

Please give me reward point If it is useful

Thanks

Murali Poli

former_member188827
Active Contributor
0 Kudos

declare a typr c varaible in global definitions

zchar type char10

create program lines as:

input parameter:

zint(ur variable holding value 18)

output parameter:

zchar

Code:

write zint to zchar.

condense zchar.

in da text element display zchar

plz reward points if dis helps

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Try &variable_name&(C)

0 Kudos

Thank For your Solution.

I was try number of time try to remove leading space in smartform text .

it was resolve using &Variable(C)&

Former Member
0 Kudos

Friends ...

variable = 18.000

i dont want space between = and 18.000...decimal is required.

Former Member
0 Kudos

Thanks guys...