2005 Dec 08 11:00 AM
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
2005 Dec 08 11:10 AM
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
2005 Dec 08 11:10 AM
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.
2005 Dec 08 11:31 AM
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.
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.
<b>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>
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
Regards,
Sailaja.
Reward points if answer helps you.
2005 Dec 08 11:45 AM
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...
2005 Dec 08 11:51 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |