cancel
Showing results for 
Search instead for 
Did you mean: 

eliminate blank lines in scripts

Former Member
0 Kudos

Hi,

Can anyone tell me how to eliminate blank lines in scripts?

Title was edited by:

Alvaro Tejada Galindo

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Take a look at the Paragraph Formats for the lines you want to not print if they are blank.

In the "Standard" part of the paragraph format, there is a checkbox "No Blank Lines". If this is selected, blank lines are not output for any lines defined with this style.

Take care changing it - there may be other windows using the style where blank lines are wanted. Safest option is to copy the style to a new Z.. value and change the area where you want no blank lines so it uses the Z.. paragraph format. If several formats are involved, you may have to copy all of them so you keep the correct fonts, tabs, etc.

If Paragraph format is not causing the blank lines, it could be because of trailing spaces on the previous lines wrapping to a new line when printing. You can look at using the (C) option on fields to compress blanks if this is the case.

Andrew

Former Member
0 Kudos

Hello Swetha,

at what situation you are getting blank lines ?

if you see at text editor at SE71(Goto Page windows-> click on text elements)..

if you use below like this :

P1 &ITAB-MATNR&

P1

P1

P2 &ITAB-MAKTX&

P2

output would be

first line contains material number,2nd,3rd line will be blank line since there is no data ,4th line it prints material description,5th will be blank.

if you want to remove blank lines then

P1 &ITAB-MATNR&

P2 &ITAB-MAKTX&

here first line will print material number,second line will be print material description. so there is no blank line.

make sure that window size properly as per requirement.

Thanks

Seshu