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

sapscript address

Former Member
0 Likes
600

Hello,

I would like to print the destination country of an address but I don't know how i can do.

With these fields

/: ADDRESS

/: TITLE 'Firma'

/: NAME 'Schneider & Co', 'Finanzberatung'

/: STREET 'Kapitalgasse 33'

/: POBOX '12345' CODE '68499'

/: POSTCODE '68309'

/: CITY 'Mannheim'

/: COUNTRY 'DE'

/: FROMCOUNTRY 'DE'

/: ENDADDRESS

produces the following output address:

Firma

Schneider & Co

Finanzberatung

Postfach 12345

but I would like this :

Firma

Schneider & Co

Finanzberatung

DE-Postfach 12345

or better

Firma

Schneider & Co

Finanzberatung

Postfach 12345

Germany

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
552

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.

2) You can make use of ADDRESS_PRINT_FORM, in program and pass the lines to script. This will act same as the above syntax.

For more information in this check this link below.

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

rgds,

TM.

Please mark points if you got solution.

4 REPLIES 4
Read only

vinod_gunaware2
Active Contributor
0 Likes
552

<b>ADDRESS_INTO_PRINTFORM</b> Address format according to Post Office guidelines see FM documentation.

Note. It's enough to import two parameters:

ADDRESS_TYPE = 1 (Firm or Organization, SAP Address)

ADDRESS_NUMBER

<b>ADDRESS_SHOW_PRINTFORM</b>

<b>ADDRESS_INTO_PRINTFORM</b> check this function it will work same like ADDRESS ENDADDRESS .

U can do all permition and combination.

regards

vinod

Read only

Former Member
0 Likes
552

u can find it bu table <b>t001w</b> or <b>t005</b> usind adrnr

Read only

Former Member
0 Likes
553

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.

2) You can make use of ADDRESS_PRINT_FORM, in program and pass the lines to script. This will act same as the above syntax.

For more information in this check this link below.

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

rgds,

TM.

Please mark points if you got solution.

Read only

Former Member
0 Likes
552

Tanks a lot

I will try it