‎2005 Jul 11 4:30 AM
Hello All,
SAP Script In ddress Window Using ADDRESS Comand I am formating the address but it's not displaying valuse of District and Country even though those fields having values.
This is mu code:
ADDRESS DELIVERY PARAGRAPH AS
TITLE &SADR-ANRED&
NAME &SADR-NAME1&, &SADR-NAME2&, &SADR-NAME3&, &SADR-NAME4&
STREET &SADR-STRAS&
CITY &SADR-ORT01&, &SADR-ORT02& POSTCODE &SADR-PSTLZ&
COUNTRY &SADR-LAND1&
REGION &SADR-REGIO&
FROMCOUNTRY &SADR-LAND1&
ENDADDRESS
Thanks,
Sarada
‎2005 Jul 11 6:01 AM
Hi Srinivas,
I see no problem in you you code, can you check for the following, does country and district does not get displayed for all the records you where trying to print or only for few records, try with multiple records. Check the command line does it start with ":/"
Regards,
Prabhu Rajesh.
‎2005 Jul 11 6:36 AM
Hi Sri Nivas,
Try simply (example from an AP Check):
ADDRESS DELIVERY PARAGRAPH AS
FROMCOUNTRY &T001-LAND1&
ADDRESSNUMBER ®UH-ZADRNR&
ENDADDRESS
i.e. simply provide the addressnumber and let the SAPSCRIPT address function do its magic! There is no need anymore to specify the specific address fields since "address management" was introduced in version 4.0 ... The address function will determine which address fields to print depending on the number of available print lines.
You also might want to check out: http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci983454,00.html
and the SAP documentation of the function module ADDRESS_INTO_PRINTFORM
Good luck,
---Hugo