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: 

deleting leading space in smartform

Former Member
0 Kudos

hi guyz,

i have a currency field , i wanna delete the leading spaces before it..

plz advise

regards

7 REPLIES 7

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi

<b>Call FM : alpha_exit_output.</b>

before u used that field for display.

Regards,

Sree

0 Kudos

hi sree,

thanks for your reply , but theres no function module called alpha_exit_output..

plz advise..

0 Kudos

sudheer,

use CONVERSION_EXIT_ALPHA_OUTPUT.

Satish

Former Member
0 Kudos

Hi,

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

Reward if helpful.

Regards,

Harini.S

former_member188827
Active Contributor
0 Kudos

create program lines as:

data zchar(15) type c.

write <ur_currency_field> to zchar.

shift zchar left deleting leading space.

den use dis zchar for printing.

plz reward points if dis helps

Former Member
0 Kudos

Since you want to print this information anyway, I suggest you move it to a character field of the appropriate length and you use the following :

In your code (Program Lines node) :

WRITE currency_field TO character_field.

SHIFT character_field LEFT DELETING LEADING space.

Don't forget to add the character_field as an output parmater of your Program Lines node, the currency_field staying as an input parmater.

Former Member
0 Kudos

Hi guys thanks for all replies..

its sayin gv_total has no defined value.

where gv_total is character field

regards..