cancel
Showing results for 
Search instead for 
Did you mean: 

Address printing ( removing space lines )...

Former Member
0 Kudos

Hi Experts,

In Order Printer, The address of thr Sold to party is like :

ABC

136, AVVC

PUNE - 499000.

I want to remove spaces between lines. Some line is on third line or some times it is on second line.

How to remove line space ? Is there any FM for this ? Pl. reply.

Yusuf

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

With the number of responses to this post, I would have thought someone would have pointed out the basics of paragraph formats:

Take a look at the Paragraph Format used for the lines of the address.

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 you are printing using the ADDRESS command, you can specify a paragraph format for it on the first line - format is "/: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]"

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

Answers (5)

Answers (5)

Former Member
0 Kudos

hi

good

use

CONDENSE FIELD NO-GAPS.

thanks

mrutyun^

Former Member
0 Kudos

Hi Mrutunjaya,

Will U give an example with coding ? Pl.

Yusuf

Former Member
0 Kudos

Hello Yusuf,

There is no command condense no-gap at SE71 ,you can condense statement in SE38 not in SE71.

If you want to remove blank lines then look at Default paragarph at SE71.

Goto Header -> see basic settings ,just look at Paragraph format,here line to line space is more so that you are getting.

do not modify default paragraph since it effects the all other windows.

Follow Sai reply..

/: IF &NAME1& NE ' '.

P1 &VBDKR-NAME1&

/: ENDIF.

Please write the code in address window.

Thanks

Seshu

Former Member
0 Kudos

If you have the address number for your sold to party you should call function module ADDRESS_INTO_PRINTFORM. This returns the address correctly formatted.

Regards,

Nick

Former Member
0 Kudos

Hi Yusuf,

If youre using the address function to print the address, then the issue is

the script paragraph style.

go to the paragraph styles in se72 and check whether line spacing property of your

paragraph style is more than 1. Set it to 1 LN if it is anything else.

Former Member
0 Kudos

Are you using sapscript or smartforms to print the layout . If you are using Sapscript use if statement in the layout

/: if &var& ne ' '

  • &var&

/: endif.

for smartforms use conditions tab. If you are using separate text element to display things becomes easier.

Regards,

Mallick

former_member196280
Active Contributor
0 Kudos

Write your variable like this...

IF &NAME& NE SPACE.

&NAME&.

ENDIF.

IF &STREET& NE ' '.

&STREET&.

ENDIF.

................

..............

Regards,

Sairam