Skip to Content
author's profile photo Former Member
Former Member

Address printing ( removing space lines )...

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2007 at 01:56 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2007 at 06:04 AM

    Write your variable like this...

    IF &NAME& NE SPACE.

    &NAME&.

    ENDIF.

    IF &STREET& NE ' '.

    &STREET&.

    ENDIF.

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

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

    Regards,

    Sairam

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2007 at 06:12 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2007 at 07:58 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2007 at 08:01 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2007 at 08:01 AM

    hi

    good

    use

    CONDENSE FIELD NO-GAPS.

    thanks

    mrutyun^

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.