cancel
Showing results for 
Search instead for 
Did you mean: 

SmartForm Output Problem

Former Member
0 Kudos

Hi friends,

i want to display below address in Smartform .

&wa_head-zname1&

&wa_head-zstreet&

&wa_head-ZSTR_SUPPL1&

Phone: &wa_head-Ztel_number&

Fax : &wa_head-Zfax_number&

if the field wa_head-zstreet is empty then i am getting space in ouput between zname1 and zstreet fields.

i have written the following code in text editor to remove the space but still i am getting space.

/: IF &wa_head-ZSTR_SUPPL1& NE ' '.

L9 &wa_head-ZSTR_SUPPL1&

/: ENDIF.

Please help how can i handle this.

Thanks

Ramesh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

You can use templets in smartform to over come this problem. Else create program line and place your condition.. if empty pass some flag and display your results according to your flags.

Rgds,

Sairam

Former Member
0 Kudos

Hi,

In your case ,suppose if wa_head-zstreet is empty ,then a space will appear between

&wa_head-zname1& and &wa_head-ZSTR_SUPPL1&.

To remove this space,under that address window ,first create three text nodes.In the first text node ,put &wa_head-zname1& for displaying,in the second text node ,put &wa_head-zstreet& and the for this second text node check the condition wa_head-ztreet NE INITIAL and in the third text node put the remaining fields ie &wa_head-ZSTR_SUPPL1&

Phone: &wa_head-Ztel_number&

Fax : &wa_head-Zfax_number&