on 09-07-2007 6:52 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
good
use
CONDENSE FIELD NO-GAPS.
thanks
mrutyun^
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Write your variable like this...
IF &NAME& NE SPACE.
&NAME&.
ENDIF.
IF &STREET& NE ' '.
&STREET&.
ENDIF.
................
..............
Regards,
Sairam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.