Skip to Content
avatar image
Former Member

Smart form doubt

Hi All,

I have developed a smart form(a letter) which has about 5 address fields in the following order.

&address_line1&

&addressline2&

&city& , &state& &zip&

&addressline2& is not mandatory. When this parameter is empty then i get the output like this

1234 wood creek street

Herndon, VA 20171

I do not want the gap . What am i supposed to do. I want something like If addressline2 is null then delete line .

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 23, 2007 at 02:48 AM

    &address_line1&

    <b>IF &addressline2& is not initial.

    &addressline2&

    ENDIF</b>

    &city&,&state& &zip&

    Or you can create new text and add condition as above in condition part

    so you will get

    1234 wood creek street

    Herndon, VA 20171

    Rewards if useful......

    Minal Nampalliwar

    null

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 23, 2007 at 02:55 AM

    I guess in your paragraph format (which you are using to print address) you can tick the check box no blank lines and it will not display any blank line.

    Hope this helps.

    ashish

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I have checked STYLES but there is no option in these for "No Blank Lines" which we have in SAP Scripts.

      can you handle this with abap command? ( IF &TEST& IS NOT INITIAL)

      ashish

  • avatar image
    Former Member
    Oct 23, 2007 at 04:03 AM

    Hi Madhu,

    1. Execute Transaction SMARTFORMS

    2. CLICK on SMARTSTYLE

    3. Enter your Smartsytele & click Change

    4. Double click on your Paragraph Format

    Best regards,

    Prashant

    Add comment
    10|10000 characters needed characters exceeded