Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smart form doubt

madhu_reddy22
Participant
881

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

5 REPLIES 5
Read only

Former Member
841

&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

Read only

Former Member
841

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

Read only

0 Likes
841

Hi Ashish,

i could not find any check box for no blank lines. Can you help me with the navigation.

Thanks

Read only

0 Likes
841

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

Read only

Former Member
841

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