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

Address Problem in Script

Former Member
0 Likes
551

Good Day.

I am new to SDN and posting for the first time.

I want to print vendor address in SAP SCRIpt Form.

I have vendors from all over the world and the address format is different in each country.

I want to know if there is anything using which I can display the address as per the country specification.

thank you in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
487

<Address> ..<EndAddress> Will help

have a look at http://sap.niraj.tripod.com/id18.html

Welcome to SDN.

Plz reward if useful.

thnx

4 REPLIES 4
Read only

Former Member
0 Likes
488

<Address> ..<EndAddress> Will help

have a look at http://sap.niraj.tripod.com/id18.html

Welcome to SDN.

Plz reward if useful.

thnx

Read only

0 Likes
487

ADDRESS-ENDADDRESS will print address depends upon the receiver address standards. IN order to solve your problem, I suggest two ways.

1) In sapscript

/:ADDRESS

/: ADDRESSRNUMBER = W_ADRNR

/: COUNTRY 'DE'

/: FROMCOUNTRY 'DE'

/:ENDADDRESS

and from prorgam pass W_ADRNR from ADRC. It will print entire address.

http://help.sap.com/saphelp_40b/helpdata/en/d1/803238454211d189710000e8322d00/content.htm

Read only

Former Member
0 Likes
487

Hi,

You can retrieve the Vendor address number from LFA1 table along with the country code and pass it to ADRC-ADDRNUMBER with the ADRC-PO_BOX_CTY = lfa1-land1 and print the address,

Rgds,

Read only

Former Member
0 Likes
487

ya thats right <ADDRESS> event will give the required format.