cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms: display line only if not empty

Former Member
0 Kudos

Hello friends,

I have a smartform window in which I display the following:

Delivery Address:
&zvbdka-name1_we&
&zvbdka-name2_we&
&zvbdka-stree_we&

But not every time there is a "name2". In the case where there isn't, I don't want to display an empty line, but want to go directly from "name1" to "street".

Is there an easy way to do that? If not, can someone explain to me the complicated way?

Thanks,

Micol

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Micol,

<b>PR &zvbdka-name1_we&

/: IF NOT &ZVBDKA-NAME2_WE& IS INITIAL

PR &zvbdka-name2_we&

/: ENDIF.

PR &zvbdka-stree_we&</b>

where PR is ur paragraph format.

Reagrds

SAB

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Micol,

You said it, there is no simple way of achieving this.

You need to create different texts in smartforms and place conditions to check if the field is not initial, and depending on that you will display the values.

Another way would be to passed these three fields to an internal table. In smartforms, you just need to loop at this internal table into ONLY 1 ROW, and display the values. I think this one would be easier.

Cheers,

Zaheed

Former Member
0 Kudos

Hi,

Just check :

if &zvbdka-name2_we& is not initial.

&zvbdka-name2_we&

endif.

Reward points if this Helps.

Manish