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

SAP Script Address Command

Former Member
0 Likes
559

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

2 REPLIES 2
Read only

Former Member
0 Likes
375

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.

Read only

Former Member
0 Likes
375

Hi Sri Nivas,

Try simply (example from an AP Check):

ADDRESS DELIVERY PARAGRAPH AS

FROMCOUNTRY &T001-LAND1&

ADDRESSNUMBER &REGUH-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