‎2010 Apr 28 10:24 AM
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
‎2010 Apr 28 10:28 AM
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
‎2010 Apr 28 10:37 AM
Address window doesn't print blank lines. Check the window and its parameters passing.
‎2010 Apr 28 10:45 AM
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.
‎2010 Apr 28 12:01 PM
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.
‎2010 Apr 28 12:03 PM
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.
‎2010 Apr 28 12:10 PM
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
‎2010 Apr 28 12:15 PM
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.
‎2010 Apr 29 10:44 AM
‎2010 Apr 29 10:54 AM
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.
‎2010 Apr 29 11:25 AM
‎2010 Apr 29 11:26 AM
Definitely! This will not only make everyone happy but also encourage them to answer more and more questions like these!
Cheers!
Regards,
Sumit