cancel
Showing results for 
Search instead for 
Did you mean: 

using address endaddress

former_member187457
Active Contributor
0 Kudos

hi all,

I m using address endaddress for printing address of vendor in check printing.....

but it is printing Postal Code first then City.....

I want City first & then Postal code.....

using address endaddress follows some fixed pattern thts why it is coming like this.....

but where should i edit that. pattern.....

plz help me...

thnx

Rohit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

once check this.

SAPscript calls the ADDRESS_INTO_PRINTFORM function module to format the address. If the display is not in the required form, check the settings that are valid for this function module (see the documentation on the function module).

former_member187457
Active Contributor
0 Kudos

Thnx man.....

I got the problem.....

problem is the Country specific format....

i want to print the address in 004 format...but it is printing for 010 format...

010 format is used went no Country specific format is assigned....

but where to assign thats for script ...if i will get that then the problem will be solved....

Plz let me knw if u get some thing on this...

Thnx..

Rohit

Former Member
0 Kudos

Hi Rohit,

The link between the country and its address format is set in transaction OY01, or field ADDRS in table T005.

Regards,

Nick

former_member187457
Active Contributor
0 Kudos

Hi NY,

I checked thr, for USA its 004.....

bt the script is pirnting the 001 or 010 format....so wt shld i do....for that......

Former Member
0 Kudos

Hi,

Are you specifying FROMCOUNTRY in your address statement? Could you maybe post the whole statement?

Thanks,

Nick

former_member187457
Active Contributor
0 Kudos

Hi following are the codes...

/: ADDRESS PARAGRAPH VD

/: IF &REGUH-ZPFAC& EQ ' '

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

/: STREET &REGUH-ZSTRA&

/: CITY &REGUH-ZORT1&,

/: REGION &REGUH-ZREGI&,

/: POSTCODE &REGUH-ZPSTL&

/: ELSE

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

/: POBOX &REGUH-ZPFAC&

/: CITY &REGUH-ZORT1&,

/: REGION &REGUH-ZREGI&,

/: POSTCODE &REGUH-ZPSTL&

/: ENDIF

/: ENDADDRESS

Former Member
0 Kudos

Hi,

You could try adding;

/: COUNTRY ‘US’

/: FROMCOUNTRY ‘US’

after each POSTCODE line, at the moment the ADDRESS command doesn't know that this is a US address.

Regards,

Nick

former_member187457
Active Contributor
0 Kudos

ok dude let me try.....

thnx

former_member187457
Active Contributor
0 Kudos

No man its not working....

i tried...

Formcountry &T001-land&

Edited by: Rohit Kumar on Feb 28, 2008 5:18 PM

former_member187457
Active Contributor
0 Kudos

Hi man its working now....

jst one thing is left....

i m having five lines....

but region is not printing....

plz help..

former_member187457
Active Contributor
0 Kudos

Hi NY

I m almost thr to close the thred.....

Plz help me....in this pending issue......

thnx

Rohit

Former Member
0 Kudos

Hi,

Not sure on this, have you tried adding the LINES option to the ADDRESS statement to increase the number of lines returned? Or is your window limited to 5 lines?

Regards,

Nick

Former Member
0 Kudos

Hi Rohit,

If you are using address as

ADDRESS LINES 5....ENDADDRESS

then increase the number.

Thanks,

Anil

Answers (1)

Answers (1)

Former Member
0 Kudos

The command ADDRESS - ENDADDRESS formats an address according to the postal standards of the destination country defined in the parameter COUNTRY.

Syntax:

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

/: TITLE title

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

/: STREET street

/: POBOX PO box [CODE zip code]

/: POSTCODE zip code

/: CITY town1[,town2]

/: REGION region

/: COUNTRY country

/: FROMCOUNTRY from country

/: ENDADDRESS

Both formatting data and address data are parameters. Address data is formatted for output based on the COUNTRY, PRIORITY and LINES parameters. As the default, the P.O. Box is used, if it is available, rather than the street address.

Example:

/: ADDRESS

/: TITLE ‘Company’

/: NAME ‘Widget Technology, Inc.’, ‘All Kind of Widgets’

/: STREET ‘1005 Lido Lane’

/: POBOX ‘2935’ CODE ‘94400’

/: POSTCODE ‘94404’

/: CITY ‘Foster City’

/: REGION ‘CA’

/: COUNTRY ‘USA’

/: FROMCOUNTRY ‘USA’

/: ENDADDRESS

This list generates the following address:

Company

Widget Technology, Inc.

All Kind of Widgets

PO box 2935

Foster City, CA 94400

If the DELIVERY supplement is specified for the ADDRESS command, then the street, not the P.O. Box, is entered.

Company

Widget Technology, Inc.

All Kind of Widgets

1005 Lido Lane

Foster City, CA 94404

former_member187457
Active Contributor
0 Kudos

HI BP,,

thnx Dude......

i m using the same method but .....in my case postal code is coming first and city after that while printing.....

so where to set the address pattern......as u said based on postal standards.....so where i can change the postal standrad...or can i see that any where.....

Thx

Rohit

i m getting ....

Widget Technology, Inc.

All Kind of Widgets

1005 Lido Lane

94404, Foster City

and state is not printing....why dont know...plz help

Edited by: Rohit Kumar on Feb 28, 2008 12:23 PM