Skip to Content
0
Former Member
Dec 10, 2008 at 09:59 AM

Deleting Spaces in Address

20 Views

Hi All,

I have a requirement in SAP Script to print the address.

i am geeting the address everything is perfect.

I have 5 fields in the address like

adrs-name1 , adrs-ort01,adrs-ort02 adrs-stars adrs-regio.

I am displaying the address perfectly in the script.

If any one of the field name1 ort01 ort02 stras regio is initial.I am getting the space in the the print form

for example if ort02 is intial

i am printing like this.

XXXX,

YYYY,

zzzzzz,

aaaaa.

Now my client wants we should not display space is the value is initial.IF it is initial he wants the ouptut like this.

XXXX

YYYYY

ZZZZZZ

AAAA

I have tried using If statement.

BUt if i have space in 2 fields it is not working.

Can any body give quick response on this.

Thanks