Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SCRIPT (address - endaddress)

Former Member
0 Kudos

Hi All,

I am having difficuly in changing a form that has a window with address - endaddress.

I am not able to split the street field into two lines.

please provide documentation on this address endaddress

Thanks,

Amit

1 ACCEPTED SOLUTION

Former Member
0 Kudos
5 REPLIES 5

Former Member
0 Kudos

Former Member
0 Kudos

hi,

ADDRESS: Formatting of addresses

The command ADDRESS - ENDADDRESS formats an address according to the postal standards of the

destination country defined in the parameter COUNTRY. The reference fields are described in the

structure ADRS. Both constants and symbols can be assigned to the parameters.

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 given as parameters. Address data is formatted for output in accordance with the parameters COUNTRY, PRIORITY and LINES. If available, the P.O. box is used instead of the street as the default.

•DELIVERY: Defines the street address. If this parameter is selected, the system prints the street address on the layout output instead of the P.O. box.

•PARAGRAPH: Defines in which paragraph format the address is output. If the parameter is not defined, the address is output in the default paragraph format.

•PRIORITY: Defines which address lines can be omitted if necessary. You can enter a combination of the following values:

A form of address

P mandatory blank line 1

Q mandatory blank line 2

2 name2

3 name3

4 name4

L name of country

S line for the street

O line for the city

•LINES: Defines how many lines are available for formatting the address. If all the address data cannot be formatted due to an insufficient number of lines, the data entered in the parameter PRIORITY is omitted. If the LINES specification is missing and this command is in a layout set window whose type is not MAIN, the lines available for the address layout are then calculated automatically by means of the current output line item and window size.

•TITLE: Required form of address.

•NAME: Up to four separate names, separated by commas, can be defined.

•STREET: Street specification including address number.

•POBOX: Post Office box number.

•CODE: P.O. box Postal or ZIP code if it is different from the postal code of the city.

•POSTCODE: Postal or ZIP code of the city.

•CITY: Up to two place names can be defined.

•REGION: Determines the administrative area.

•COUNTRY: Specifies the country according to whose specific postal standards the address is formatted.

•FROMCOUNTRY: Defines in which language the name of the destination country is formatted. In EC countries, only the international country identification letter is put before the postal code with a hyphen.

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

Generates the following address:

Company

Widget Technology, Inc.

All Kind of Widgets

PO box 2935

Foster City, CA 94400

If the supplement DELIVERY is specified for the command ADDRESS, then the street is entered instead of

the PO box.

Company

Widget Technology, Inc.

All Kind of Widgets

1005 Lido Lane

Foster City, CA 94404

SAPscript calls the function module ADDRESS_INTO_PRINTFORM for

formatting the address. If the display is not in the required form, please

check the settings valid for this function module.

Regards,

Richa

Former Member
0 Kudos

hi

good

check the length of the street field.inrease the length of the field i hope definitely it will work.

ADDRESS ... ENDADDRESS

ADDRESS and ENDADDRESS is used to specify the address which will

be formatted according to the target country i.e the recipient country.

e.g. /:ADDRESS sales PARAGRAPH C

/:NAME &KNA1-NAME1&

/:STREET &KNA1-STRAS&

/:POSTCODE &KNA1-PSTLZ&

/:CITY &KNA1-ORT01&

/:COUNTRY &KNA1-LAND1&

/:FROMCOUNTRY 'DE'

/:ENDADDRESS

thanks

mrutyun

former_member378318
Contributor
0 Kudos

I don't think 'address - endaddress' will spilt the street into two lines. After all what criteria would it use to determine at which point to split the street?? I believe the street (and any other address field) would only ever be split over two lines if your address window width was not wide enough.

0 Kudos

Hi,

I'm using another workaround for this. See below:-

/* -


STRAS need on individual ADDRESS block because of the

/* -


2nd line address. In ADDRESS block, it can't has 2 STREET

/: ADDRESS PARAGRAPH L2

/: STREET &P0006-STRAS&

/: ENDADDRESS

/: ADDRESS PARAGRAPH L2

/: STREET &P0006-LOCAT&

/: COUNTRY &P0006-LAND1&

/: CITY &P0006-STATE&

/: POSTCODE &P0006-PSTLZ&

/: FROMCOUNTRY &P0006-LAND1&

/: ENDADDRESS

Reward point if useful 😃