‎2006 Jun 19 10:14 AM
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
‎2006 Jun 19 10:24 AM
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.
‎2006 Jun 19 10:21 AM
<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
‎2006 Jun 19 10:24 AM
u can find it bu table <b>t001w</b> or <b>t005</b> usind adrnr
‎2006 Jun 19 10:24 AM
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.
‎2006 Jun 19 10:32 AM