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

Control command Address in sapscript

Former Member
0 Likes
1,524

Hi experts ,

Can any one explain me how Address and Endaddress work .

I have the below script in window presently

ADDRESS PARAGRAPH Z1
 	  TITLE    &VBDKR-ANRED&
 	  NAME     &VBDKR-NAME1&, &VBDKR-NAME2&, &VBDKR-NAME3&, &VBDKR-NAME4&
 	  STREET   &VBDKR-STRAS&
 	  POBOX    &VBDKR-PFACH&  CODE &VBDKR-PSTL2& CITY &VBDKR-PFORT&
 	  POSTCODE &VBDKR-PSTLZ&
 	  REGION   &VBDKR-REGIO&
 	  CITY     &VBDKR-ORT01&, &VBDKR-ORT02&
 	  COUNTRY  &VBDKR-LAND1&
 	  FROMCOUNTRY &VBDKR-SLAND&
 	  ADDRESSNUMBER &VBDKR-ADRNR&
 	ENDADDRESS

I would like to know the difference between the top and one below .

ADDRESS DELIVERY PARAGRAPH Z1
 FROMCOUNTRY &VBDKR-SLAND&
 ADDRESSNUMBER &VBDKR-ADRNR&
ENDADDRESS

Is there that we set the format For "delievey address" somewhere in system .

If so please can I have inputs for doing

Thanks

Vinay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
959

well the lower part just uses adrnr, and all the formatting is done by standard, based on recipinets country.

If you need to add or remove some of the information provided by standard, or need to change the format, go for the upper part you posted, since there you can use own variables and such.

see this link, its very helpful.

http://help.sap.com/saphelp_erp2004/helpdata/de/d1/80318f454211d189710000e8322d00/frameset.htm

8 REPLIES 8
Read only

Former Member
0 Likes
960

well the lower part just uses adrnr, and all the formatting is done by standard, based on recipinets country.

If you need to add or remove some of the information provided by standard, or need to change the format, go for the upper part you posted, since there you can use own variables and such.

see this link, its very helpful.

http://help.sap.com/saphelp_erp2004/helpdata/de/d1/80318f454211d189710000e8322d00/frameset.htm

Read only

0 Likes
959

Hi,

If DELEVIRY is specified then the address should be formatted as a complete delivery address, using the street name and number rather than the P.O. Box.

If DELIVERY is not specified and if a POBOX is specified, then the POBOX is used in an address instead of a STREET.

Example

/: ADDRESS 
/: TITLE 'Firma' 
/: NAME 'Schneider & Co', 'Finanzberatung' 
/: STREET 'Kapitalgasse 33' 
/: POBOX '12345' CODE '68499' 
/: POSTCODE '68309' 
/: CITY 'Mannheim' 
/: COUNTRY 'DE' 
/: FROMCOUNTRY 'DE' 
/: ENDADDRESS

Without specifying DELIVERY output will be

Firma

Schneider & Co

Finanzberatung

Postfach 12345

68499 Mannheim

With specifying DELIVERY, then the street name and number will appear in the address in place of the P. O. Box number.

Firma

Schneider & Co

Finanzberatung

Kapitalgasse 33

68309 Mannheim

Regards

Bala Krishna

Read only

0 Likes
959

Thanks Guys for your responses ,

My actual requirement is to remove Name3 and name4 fileds to ouput even if they a values , Tried removing them for script (top part ) but they still showing up in output .

further Help will be great .

Thanks

Vinay

Read only

0 Likes
959

Hi,

Have you deleted the Name3 and Name4 fields in Address. Try to delete and activate it. It will work.

Regards

Thiru

Read only

0 Likes
959

Hi Tirupathy ,

I have deleted the fields from scirpt in main window , But thwy still appear .

Thanks

Vinay

Read only

0 Likes
959

Hi,

Remove the ADDRESSNUMBER entry for code and also the NAME2,NAME3,NAME4

and check the output, as you are passing ADDRESSNUMBER it might have reading the address from the Database and printing it.

ADDRESS PARAGRAPH Z1
 	  TITLE    &VBDKR-ANRED&
 	  NAME     &VBDKR-NAME1&, 
 	  STREET   &VBDKR-STRAS&
 	  POBOX    &VBDKR-PFACH&  CODE &VBDKR-PSTL2& CITY &VBDKR-PFORT&
 	  POSTCODE &VBDKR-PSTLZ&
 	  REGION   &VBDKR-REGIO&
 	  CITY     &VBDKR-ORT01&, &VBDKR-ORT02&
 	  COUNTRY  &VBDKR-LAND1&
 	  FROMCOUNTRY &VBDKR-SLAND&
 ENDADDRESS

Regards

Bala Krishna

Read only

0 Likes
959

Great Thanks Bala Krishna, It worked .

Read only

Former Member