cancel
Showing results for 
Search instead for 
Did you mean: 

No blank lines in smartforms

Former Member
0 Kudos

Hi,

I am printing the adreess information in a window . but when there is no addreess data then no blank space should be printed.Does anyone have any options?

In other words assume I have the following:

&LINE1&

&LINE2&

&LINE3&

&LINE4&

where &LINE1& = 'A',

&LINE2& = 'B',

&LINE3& = 'C',

&LINE4& = 'D',

If &LINE3& does not contain any values I don't want to see:

A

B

<blank>

D

I want to see:

A

B

D

Correct answers or helpful suggestions will be rewarded.

Accepted Solutions (0)

Answers (5)

Answers (5)

liam_wilkinson
Participant
0 Kudos

Hi Neha,

working on something similar, try

IF &LINE3& NE ''.

&LINE3&

ENDIF.

liam

Former Member
0 Kudos

Hi Neha,

You can do validation by providing contion

IF NOT &LINE1& initial.

&LINE1&.

ENDIF.

OR

In Smartforms you can use address text instead of providing all the variables. There you need to pass only address no & all the address will be prinited & all the blank lines will be ignored automatically.

Ashven

Former Member
0 Kudos

Hi friend,

Try to establish an if-else condition such that if record exists for the line then it will display that line otherwise it will display blank line and if u want not to display blank line and show next line establish a condition such that it will not display that line instead display next line.

Regards,

Ameet.

Former Member
0 Kudos

hi,

better do one thing,

create diff text node for each line

i mean

line1 in text node 1

line 2 in text node 2.. etc..

then goto window -> create -> flow logic -> alternative

then u got condition node in that general attributes

give your condition for example field name not equal to ' '

then place your textnode in true part

so it will display only that field contain value

i am sure it will work.

thank you

regards

Murugan.B

Former Member
0 Kudos

In the texts, u can specify a condition.

use command option and specify the condition for that line.

Former Member
0 Kudos

Hi ,

I have given the condition as

If line3 ne space but still it is showing the blank spaces.

Former Member
0 Kudos

Try not equal to INITIAL

Former Member
0 Kudos

hi neha,

delete from <itab> where line = ' '.

try this neha, it works if i think right.

regards,

seshu.