cancel
Showing results for 
Search instead for 
Did you mean: 

Vendor address printing

Former Member
0 Kudos

Hi All,

I want to print vendor address in SAPScript as per country specific format.

The standard ADDRESS--ENDADDRESS is not printing formatted output.

Please help me in this.

Thanks in advance.

RK

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

/: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]

/: TITLE title

/: NAME name1[,name2[,name3[,name4]]]

/: PERSON name of natural person [TITLE form of address]

/: PERSONNUMBER number of the personen

/: DEPARTMENT department

/: STREET street name HOUSE house number

/: LOCATION additional location information

/: POBOX po box [CODE post code / zip code] [CITY city]

/: POSTCODE post code / zip_code

/: CITY city1[,city2]

/: NO_UPPERCASE_FOR_CITY

/: REGION county / state -


> here give the specified country.

/: COUNTRY recipient country [LANGUAGE language code]

/: COUNTRY_IN_REC_LANG

/: LANG_FOR_COUNTRY language key

/: FROMCOUNTRY sender country

/: ADDRESSNUMBER address number

/: ENDADDRESS

Former Member
0 Kudos

HI Jagadish / All,

Thanks for your reply.

I have used the following statement. For South Africa country code 'ZA' and region 'GP' it is giving me some space before printing country name 'SOUTH AFRICA'.

/: ADDRESS PARAGRAPH AD

/: TITLE &REGUH-ZANRE&

/: NAME &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME3&, &REGUH-ZNME4&

/: STREET &REGUH-ZSTRA&

/: POBOX &REGUH-ZPFAC& CODE &REGUH-ZPST2& CITY &REGUH-ZPFOR&

/: POSTCODE &REGUH-ZPSTL&

/: REGION &REGUH-ZREGI&

/: CITY &REGUH-ZORT1&, &REGUH-ZORT2&

/: COUNTRY &REGUH-ZLAND&

/: FROMCOUNTRY &T001-LAND1&

/: ADDRESSNUMBER &REGUH-ZADNR&

/: ENDADDRESS

Output is like as below.

Test Company, Inc.

PO Box 684902

TEST

4094

SOUTH AFRICA

And for some countries like India there is a gap between address lines as below.

TEST VENDOR

701 Lee RD

400135 STREET

INDIA

Please help me out to avoid blank spaces and blank lines in address format.

Thanks

Former Member
0 Kudos

Hi,

use

/: addressnumber

in your /:address /:endaddress

regards

padma

naimesh_patel
Active Contributor
0 Kudos

If you pass proper TO country it will print proper address.

Check this help:

http://help.sap.com/saphelp_40b/helpdata/en/d1/803238454211d189710000e8322d00/content.htm

Regards,

Naimesh Patel