Application Development and Automation 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: 
Read only

display address omitted postal code for all countries in sapscript

Former Member
0 Likes
1,188

Hi everyone

Does anyone know how to omit the postal code for all countries(eg. US ) when displaying address in sapscript form?

I want to avoid to display postal code even the country is US.

coz my firm doesn't want to show postal code.....

Also, how to use combination keys of PRIORITY parameter?

For example, if i want PRIORITY '1' 'S' 'L' 'N' 'C'

I cannot write like this as following....

/: ADDRESS DELIVERY PARAGRAPH AS <b>PRIORITY 1 S L N C</b> LINES 5

/: ADDRESSNUMBER &VBDKR-ADRNR_WE(K)&

/: FROMCOUNTRY &VBDKR-SLAND&

/: ENDADDRESS

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
924

Hi,

Look at sample code....

**************

/: ADDRESS PARAGRAPH AB

/: TITLE &VBDKR-ANRED&

/: NAME &VBDKR-NAME1&, &VBDKR-NAME2&, &VBDKR-NAME3&, &VBDKR-NAME4&

/: STREET &VBDKR-STRAS&

/: POBOX &VBDKR-PFACH& CODE &VBDKR-PSTL2&

**********

/: POSTCODE &VBDKR-PSTLZ& "Comment this in your form /*

***************

/: CITY &VBDKR-ORT01&

/: COUNTRY &VBDKR-LAND1&

/: REGION &VBDKR-REGIO&

/: FROMCOUNTRY &VBDKR-SLAND&

/: ENDADDRESS

*********************

Thanks.

If this helps u reward with points.

Hi everyone

Does anyone know how to omit the postal code for all countries(eg. US ) when displaying address in sapscript form?

I want to avoid to display postal code even the country is US.

coz my firm doesn't want to show postal code.....

Also, how to use combination keys of PRIORITY parameter?

For example, if i want PRIORITY '1' 'S' 'L' 'N' 'C'

I cannot write like this as following....

/: ADDRESS DELIVERY PARAGRAPH AS <b>PRIORITY 1 S L N C</b> LINES 5

/: ADDRESSNUMBER &VBDKR-ADRNR_WE(K)&

/: FROMCOUNTRY &VBDKR-SLAND&

/: ENDADDRESS

4 REPLIES 4
Read only

Former Member
0 Likes
925

Hi,

Look at sample code....

**************

/: ADDRESS PARAGRAPH AB

/: TITLE &VBDKR-ANRED&

/: NAME &VBDKR-NAME1&, &VBDKR-NAME2&, &VBDKR-NAME3&, &VBDKR-NAME4&

/: STREET &VBDKR-STRAS&

/: POBOX &VBDKR-PFACH& CODE &VBDKR-PSTL2&

**********

/: POSTCODE &VBDKR-PSTLZ& "Comment this in your form /*

***************

/: CITY &VBDKR-ORT01&

/: COUNTRY &VBDKR-LAND1&

/: REGION &VBDKR-REGIO&

/: FROMCOUNTRY &VBDKR-SLAND&

/: ENDADDRESS

*********************

Thanks.

If this helps u reward with points.

Read only

Former Member
0 Likes
924

Hi,

Bold text describes the usage of <b>Priority</b>.

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.

•&#61472;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.

•&#61472;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.

<b>•&#61472;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

</b>

•&#61472;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.

•&#61472;TITLE: Required form of address.

•&#61472;NAME: Up to four separate names, separated by commas, can be defined.

•&#61472;STREET: Street specification including address number.

•&#61472;POBOX: Post Office box number.

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

•&#61472;POSTCODE: Postal or ZIP code of the city.

•&#61472;CITY: Up to two place names can be defined.

•&#61472;REGION: Determines the administrative area.

•&#61472;COUNTRY: Specifies the country according to whose specific postal standards the address is formatted.

•&#61472;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

Regards,

Sailaja.

Reward points if answer helps you.

Read only

Former Member
0 Likes
924

Hi For Better Under standing of Address and Endaddress.

you run this Function module.

<b>ADDRESS_INTO_PRINTFORM</b>

as this FM called by ADDRESS AND ENDADDRESS command.

you can play with this by giving various inputs..

check this...

Read only

Former Member
0 Likes
924

Hi,

For omitting the postal code u need to give priority as 'c'.

ADDRESS [PRIORITY C]

ur code....

ENDADDRESS.

If it is helpfull ,please reward points.

Regards,

Sharath