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

Address window in smartforms

Former Member
0 Likes
1,630

Hello All,

I have a address window in my smartform which displays the customer address. The address has a few blank fields. In the smartform it displays a blank line if the fields are not filled. My requirement is that the next line should shift upwards if there is a blank line in the address window.

Thanks,

Anju

11 REPLIES 11
Read only

Former Member
0 Likes
1,408

Hi,

Is this really an address window? Or just a text window with some fields from the address?

If you are using the address number there shouldn't be any blank lines as the address formatting will sort this out. If there's a reason why you can't use the address number you'll need to create an ABAP node to build the address lines and skip the blank lines.

Regards,

Nick

Read only

Former Member
0 Likes
1,408

Address window doesn't print blank lines. Check the window and its parameters passing.

Read only

Former Member
0 Likes
1,408

Hello ,

If the address no. is fine and its having data so it will not print any kind of blank. address window is already designed to overcome this type of problem.

Read only

Former Member
0 Likes
1,408

Hi Anju,

Check if ur window is a normal window or an address window. You might face such problem only in a normal window.

Try this if u know which line is optional,

&address1&

IF &address2& EQ SPACE.

&city& &state& &zip&

ELSE

&addressline2&

&city& , &state& &zip&

ENDIF

or create text elements and try giving conditions to them.

Hope this would help.

Read only

Former Member
0 Likes
1,408

Hi Anju,

Check if ur window is a normal window or an address window. You might face such problem only in a normal window.

Try this if u know which line is optional,

&address1&

IF &address2& EQ SPACE.

&city& &state& &zip&

ELSE

&address2&

&city& , &state& &zip&

ENDIF

or create text elements and try giving conditions to them.

Hope this would help.

Read only

Former Member
0 Likes
1,408

Hi anju,

Try this,

Concatenate all the address lines into a string variable sequentially.

say your string variable looks like this..

'fgdgdfgd                                       1 fdgdf                                                   dfgdgdfggdfgdfgd'.

Then--

CONDENSE V_STRING.

Now it looks like this

'fgdgdfgd  1 fdgdf dfgdgdfggdfgdfgd'.

Then print it on the form.

I believe this will help.I tried it. It worked for Main Window.

Regards,

Sumit

Read only

Former Member
0 Likes
1,408

Hi Anju,

I think you are using a normal window, instead of address window. So try to display each address field in a different text field. and on that text field give condition.

Like for Text NAME: Display would be &name1& and on conditions tab give &name1& NE INITIAL. Follow the same for rest of the fields.

Regards,

Swapna.

Read only

Former Member
0 Likes
1,408

k

Read only

0 Likes
1,408

Well, thanks for explaining so clearly why this was closed, I'm sure all the people here who tried to help you feel happy that their efforts were appreciated.

Read only

0 Likes
1,408

Nick,

I agree with you...

Check this link too

[Smartforms:Longtext|;

Read only

0 Likes
1,408

Definitely! This will not only make everyone happy but also encourage them to answer more and more questions like these!

Cheers!

Regards,

Sumit