cancel
Showing results for 
Search instead for 
Did you mean: 

Print address in SAPscript in a different sequence

michael_fallenbchel
Active Participant
0 Kudos

Hi experts,

small problem:

I have got a address window in my form, filled this way:

ADRESS PARAGRAPH AS

TITLE

NAME

STREET

CITY

POSTCODE

ENDADDRESS

Which means the address would look like this:

Name

Street Streetnumber

Postcode City

But for Hungary I need the follwoing sequence:

Name

Postcode City

Street Streetnumber.

I thought this would be done automatically..unfortunatelly not.

What can I do to get the address the other way?

Thanks

Michael

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Michael,

try this addresroutine: (example for Invoice)

ADDRESS PARAGRAPH AS

ADDRESSNUMBER &VBDKR-ADRNR(K)&

FROMCOUNTRY &VBDKR-SLAND&

ENDADDRESS

fill 'HU' in the parameter FROMCOUNTRY and the address will be formated as in costomizing (table t005-ADDRS)

defined.

Regards Gerd

michael_fallenbchel
Active Participant
0 Kudos

Hi Gerd,

sure, the address will be formatted as in customizing table.

Problem is, Hungary has the European format (Name, Street, City) - and there's no guide for my suggestion.

So I have to make my own (function EXIT_SAPLSADR_001) what I have done now.

This works...

Former Member
0 Kudos

Hi Michael,

I would suggest to have an IF condition to achieve this.

I believe you need this requirement only for Hungary & for other countries,

Pseudo code :

If Country code = 'hungary'

Name

Postcode City

Street Streetnumber.

else.

Name

Street Streetnumber

Postcode City

endif.

Hope this will throw a light.

-Sujatha

michael_fallenbchel
Active Participant
0 Kudos

Hi Sujatha,

this one I tried before I posted - but it's not the solution.

I I use ADDRES...ENDADRESS, SAP uses function "ADDRESS_INTO_PRINTFORM" to format the given address (it doesn't matter in which sequence I enter it in SAPscript)

This function formats the address based on different guidelines (correct me if I'm wrong).

Problem is that I can't find a guideline that fits my requirements (city BEFORE street).

Any other solutions?