ADDRESS ENDADDRESS IN SAPSCRIPT
Hi,
Can we rearrange the fields being printed in PO layout? The form used the ADDRESS ENDADDRESS syntax. Only the Addressnumber was populated. After printing the form, the arrangement of fields were
STREET CITY
COUNTRY POSTAL_CODE CITY2.
I want to rearrange it to be:
STREET
COUNTRY POSTAL_CODE CITY.
How can I do this? And where can I do this if this is possible?
Thanks in advance.
Lalyn
Hi,
the formatting of an adress depends on the value belonging tot COUNTRY.
SO i do not think the way you want is possible.
Below include some help. Read and take the best solution for it
ADDRESS: Formatting of addresses
The command ADDRESS - ENDADDRESS formats an address according to the postal standards of the destination country defined in the parameter COUNTRY. The reference fields are described in the structure ADRS. Both constants and symbols can be assigned to the parameters.
Syntax:
/: ADDRESS [DELIVERY] [PARAGRAPH a] [PRIORITY p] [LINES l]
/: TITLE title
/: NAME name1[,name2[,name3[,name4]]]
/: STREET street
/: POBOX PO box [CODE zip code]
/: POSTCODE zip code
/: CITY town1[,town2]
/: REGION region
/: COUNTRY country
/: FROMCOUNTRY from country
/: ENDADDRESS
Both formatting data and address data are parameters. Address data is formatted for output based on the COUNTRY, PRIORITY and LINES parameters. As the default, the P.O. Box is used, if it is available, rather than the street address.
DELIVERY defines the street address.
If this parameter is selected, the system prints the street address on the layout output instead of the P.O. Box.
PARAGRAPH defines in which paragraph format the address is output.
If the parameter is not defined, the address is output in the default paragraph format.
PRIORITY defines which address lines can be omitted if there is not enough space on the output.
You can enter a combination of the following values:
A form of address
P mandatory blank line 1
Q mandatory blank line 2
2 name2
3 name3
4 name4
L country name
S line for the street
O line for the city
LINES define how many lines are available to format the address.
If the address data cannot be completely formatted due to an insufficient number of lines, the data entered in the parameter PRIORITY is omitted. If the LINES specification is missing and this command is in a form window whose type is not MAIN, the lines available for the address layout are automatically calculated with the current output line item and window size.
TITLE is a required form of address.
NAME means that up to four separate names, separated by commas, can be defined.
STREET means the street specification, including address number.
POBOX is the Post Office box number.
CODE is the P.O. box, postal, or zip code, if this code is different from the postal code of the city.
POSTCODE is cityu2019s postal, or zip, code.
CITY means that up to two place names can be defined.
REGION determines the administrative area.
COUNTRY specifies the country based on specific postal standards and the address format.
FROMCOUNTRY defines in which language the destination countryu2019s name is formatted. In EEC countries, only the international country identification letter is placed, with a hyphen, before the postal code.
Gr., Frank
Similar Messages
-
Gap between two characters in SAP Script Address EndAddress.
Hi Abapers,
I have one query regarding Address - EndAddress in SAPScript.
I am putting the code :
/: ADDRESS TYPE '1' PARAGRAPH ZI PRIORITY 'APL43' LINES 6
/:ADDRESSNUMBER &ZPOLGORT-ADRNR&
/:ENDADDRESS
and I am getting the output in this form
<b><i>ABC Soft c/o JSI Hong Kon g
c/o RS Logistics (Shenzhen) Limited
6/F., DZ Zhong Tian Yuan Logistics Ctr.
126/Xia Road, Futian Free Zone,
Shenzhen
China</i></b>
But the problem is there is a gap between character "n" and 'g" in first line in word Kong.
Can anybody suggest me how to solve this issue. Or is there any other issues to sort it out this problem.Hi,
Its not the problem with Address / End Address.
It could be probably maintained that way.
Please check the entry in the table where it is maintained.
reagrds, -
Problem in Address Endaddress statement in sapscript
Hello Friends,
I have 1 problem in existing sap script for delivery where address is printed using command address endaddress.
Problem is In output while displaying PO BOX text , it is displayed in DE language insted of EN whether logon lang is EN.
Regards,
YogHi
To translate the text in SAP Script :
You can goto transaction SE63 and translate the scripts into different languages.
In SE63, click Translation -> Long Texts -> Sapscripts -> Forms
Those language you can convert to have already been pre-installed in the system.
SE63 is the best way to translate since it offers check options.
Or
Also try to change logon language to korea.
Hope this will solve your problem.
Rewards Points if useful.
Thanks & Regards
Nikunj Shah -
ADDRESS ENDADDRESS command in SAPScript
Hi Gurus,
How does address endaddress command works in SAPscript.
I want to use it in SAPscript as
ADDRESS
ADDRESSNUMBER <LFA1-ADRNR>
FROMCOUNTRY 'US'
ENDADDRESS.
I have gone through the documentation of ADDRESS_INTO_PRINTFORM but still not clear of the sequence.
Want to know, what will be the sequence in which address will be printed from above command and how does it determine this.
Appreciate your help.
Thanks,
KartavyaHi,
Read Below documentation
The ADDRESS - ENDADDRESS control command formats an address according to the postal convention of the recipient country defined in the COUNTRY parameter. The reference fields are described in the structures ADRS1, ADRS2, or ADRS3, depending on the type of address. Either direct values or symbols may be assigned to the parameters.
Syntax:
/: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
/: TITLE title
/: NAME name1[,name2[,name3[,name4]]]
/: PERSON name of natural person [TITLE form of address]
/: PERSONNUMBER number of the personen
/: DEPARTMENT department
/: STREET street name HOUSE house number
/: LOCATION additional location information
/: POBOX po box [CODE post code / zip code] [CITY city]
/: POSTCODE post code / zip_code
/: CITY city1[,city2]
/: NO_UPPERCASE_FOR_CITY
/: REGION county / state
/: COUNTRY recipient country [LANGUAGE language code]
/: COUNTRY_IN_REC_LANG
/: LANG_FOR_COUNTRY language key
/: FROMCOUNTRY sender country
/: ADDRESSNUMBER address number
/: ENDADDRESS
The parameter values contain both formatting and address information. The address data are formatted for output according to the data in the following parameters:
TYPE
FROMCOUNTRY
COUNTRY
LANGUAGE
PRIORITY
DELIVERY
LINES
If DELIVERY is not specified and if a POBOX is specified, then the POBOX is used in an address instead of a STREET.
Regards
Bala Krishna -
Text after the Address Endaddress command in SAPscript
Hi All,
Can we print text on the same line after the address endaddress command.
For eg: i am using the Address command
/:ADDRESS PARAGRAPH AS
/:TITLE &EKKO-LIFNR&
/:NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&
/:STREET &LFA1-STRAS&
/:POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&
/:CITY &LFA1-ORT01&, &LFA1-ORT02&
/:POSTCODE &LFA1-PSTLZ&
/:COUNTRY &LFA1-LAND1&
/:REGION &LFA1-REGIO&
/:FROMCOUNTRY &T001-LAND1&
/:ENDADDRESS
which gives the output as
1000035878
SANMINA -SCI SYSTEMS DE MEXICO SA DE CV
AV DE LA SOLIDARIDAD IBEROAMERICANA NO 7020
45680 EL SALTO
Mexico
I want a text to be printed next to Mexico eg:
1000035878
SANMINA -SCI SYSTEMS DE MEXICO SA DE CV
AV DE LA SOLIDARIDAD IBEROAMERICANA NO 7020
45680 EL SALTO
Mexico XYZZZ
Can anyone knows how to go about it?
Thanks
AhsanHi,
I do not think itz possible using address...endaddress...
if you want to so something like that may be we need to write that without using address...endaddress..
Regards,
Narendra. -
Getting error in Address .... Endaddress in sapscript
Hi,
I am getting error at country command line i.e Parameter is too long : sin and it is ignoring country command line ...not printing country.so, suggest so that I can print country name.
/: ADDRESS DELIVERY PARAGRAPH AS
/: TITLE &LFA1-ANRED&
/: NAME &LFA1-NAME1&, &LFA1-NAME2&,
/: STREET &LFA1-STRAS&
/: POBOX &LFA1-PFACH& CODE &LFA1-PSTL
/: CITY &LFA1-ORT01&, &LFA1-ORT02&
/: POSTCODE &LFA1-PSTLZ&
/ :REGION &LFA1-REGIO&
/: IF &NAST-KSCHL& EQ 'NEU'
/: COUNTRY &T005T-LANDX&
/: ELSE
/: COUNTRY &LFA1-LAND1&
/: ENDIF
/: FROMCOUNTRY &ADRC-COUNTRY&
/: ENDADDRESSHi,
As I mentioned above below is the code which prints the address on PO,but for some PO country name is coming on PO and for some PO the country name is not coming. there is no variable or field between ADDRESS and ENDADDRESS which holds country name.one thing I found that if FROMCOUNTRY and COUNTRY keys are same then it won't print country name but I check that one PO where both are different though it is not printing country name and for other PO both counties keys are differnt for this country name is printing.
case1:country keys( ex: FROMCOUNTRY= CH and COUNTRY = IT ) are different,case2 : country keys are same .For case two I added the perform works fine see at the last of code.
the problem is CASE1 where if I code it will print country name two times ( one because of code and other automaticallyfor some PO and one time for some PO.if I donot code it does not at all print the country name for some PO.
My question :Is there any configuration or something based on the country key which is maintained in SAP,so whenever it calls this ADDRESS ENDADDRESS it checks and print country name?
if it is not what would be the cause of not printing country name?
/: IF &LFA1-KTOKK& EQ 'CPD'
/: ADDRESS
/: TITLE &ADRC-TITLE&
/: NAME &ADRC-NAME1&, &ADRC-NAME2&, &ADRC-NAME3&, &ADRC-NAME4&
/: STREET &ADRC-STREET& HOUSE &ADRC-HOUSE_NUM1&
/: POBOX &ADRC-PO_BOX& CODE &ADRC-CITY_CODE2&
/: CITY &ADRC-CITY1&, &ADRC-CITY2&
/: POSTCODE &ADRC-POST_CODE1&
/: COUNTRY &ADRC-COUNTRY&
/: REGION &ADRC-REGION&
/: ENDADDRESS
/: ELSE
/: ADDRESS DELIVERY PARAGRAPH AS
/: TITLE &LFA1-ANRED&
/: NAME &LFA1-NAME1&, &LFA1-NAME2&, &LFA1-NAME3&, &LFA1-NAME4&
/: STREET &LFA1-STRAS&
/: POBOX &LFA1-PFACH& CODE &LFA1-PSTL2&
/: CITY &LFA1-ORT01&, &LFA1-ORT02&
/: POSTCODE &LFA1-PSTLZ&
/: REGION &LFA1-REGIO&
/: COUNTRY &LFA1-LAND1&
/: FROMCOUNTRY &ADRC-COUNTRY&
/: ENDADDRESS
/: ENDIF
/: IF &NAST-KSCHL& EQ 'NEU'
/: PERFORM ERS_INVOICE IN PROGRAM ZYFI_COUNTRY_NAME
/: USING &LFA1-LAND1&
/: USING &ADRC-COUNTRY&
/: USING &NAST-SPRAS&
/: CHANGING &H_TEXT&
/: ENDPERFORM
M1 &H_TEXT&
/: ENDIF -
Dear all,
I'm using ADDRESS ~ ENDADDRESS command in SAPScript. I pass street name to STREET as follow
NAME name1 name2 name3 name4
STREET &LFA1-STRAS&
With the above, my street can be displayed out correctly.
But i faced problem when i have street2 street3 and street4, like below:
NAME name1 name2 name3 name4
STREET &LFA1-STRAS& , &ADRC-STR_SUPPL1& , &ADRC-STR_SUPPL2& , &ADRC-STR_SUPPL3&
With above, nothing printed for street.
Could you please point me out where did i code wrong?
Or we can not pass street2/3/4 to STREET?
Thank you.Hi,
Just Refer this:
https://forums.sdn.sap.com/click.jspa?searchID=12447471&messageID=2301405
Check the below link for details on Text Elements
http://help.sap.com/saphelp_47x200/helpdata/en/d1/802e91454211d189710000e8322d00/content.htm
Regards,
Shiva Kumar -
ADDRESS - ENDADDRESS postal convention
Hello,
I know that the ADDRESS - ENDADDRESS control command formats an address according to the postal convention of the recipient country defined in the COUNTRY parameter.
But where in SAP can I find/correct the postal convention for a coutry?
Thanks
AnneCheck the documentation on FM ADDRESS_INTO_PRINTFORM in se37
[Formatting Addresses: ADDRESS|http://sapscript.tripod.com/SAPScript-37.htm]
[ SAP SCRIPT CONTROLS 4|http://thesapworld.blogspot.com/2008/05/sap-script-controls-4.html] -
Regarding Address EndAddress in SAP Script
<i>Hi Abapers,
I am having a problem while displaying the address in SAP Script through Address EndAddress.
Problem is it is displaying the data correctly but it display the Region Code. Now the requirement is to display the Region Description instead of the Region Code.
Can you please provide me any solution for this.
I am sending the Address EndAddress which I have written in my code.</i>
/: ADDRESS DELIVERY PARAGRAPH ZC
/: NAME &VBDKL-ZBTNAME1&, &VBDKL-ZBTNAME2&, &VBDKL-ZBTNAME3&, &VBDKL-
/: STREET &VBDKL-ZBTSTRAS&
/: CITY &VBDKL-ZBTORT01&, &VBDKL-ZBTORT02&
/: POSTCODE &VBDKL-ZBTPSTLZ&
/: COUNTRY &VBDKL-ZBTSLAND&
/: REGION &VBDKL-ZBTREGIO&
/: FROMCOUNTRY &VBDKL-ZBTLLAND&Hi
ADDRESS and ENDADDRESS is used to specify the address which will
be formatted according to the target country i.e the recipient country.
e.g. /:ADDRESS sales PARAGRAPH C
/:NAME &KNA1-NAME1&
/:STREET &KNA1-STRAS&
/:POSTCODE &KNA1-PSTLZ&
/:CITY &KNA1-ORT01&
/:COUNTRY &KNA1-LAND1&
/:FROMCOUNTRY 'DE'
formatting address
http://help.sap.com/saphelp_46c/helpdata/en/d1/803238454211d189710000e8322d00/frameset.htm
http://help.sap.com/saphelp_40b/helpdata/en/d1/803238454211d189710000e8322d00/content.htm
<b>Reward if usefull</b> -
All:
In working with Address-EndAddress control command, I only see two lines for street address information (parameters: street & location). Is this correct or are other parameters available?
In general, are there any available parameters that are not listed on the "Formating Addresses: Address" SAP documentation (ie: building, floor)?
(address delivery type paragraph priority lines
title
name
person
personnumber
department
steet
location
pobox
code
city
postcode
no_upper_case
region
country
country_in_rec_lang
lang_for_country
fromcountry
addressnumber)
Thank you in advance for your assistance.
~StacyHi,
The ADDRESS - ENDADDRESS control command formats an address according to the postal convention of the recipient country defined in the COUNTRY parameter. The reference fields are described in the structures ADRS1, ADRS2, or ADRS3, depending on the type of address. Either direct values or symbols may be assigned to the parameters.
Syntax:
/: ADDRESS DELIVERY TYPE t PARAGRAPH a PRIORITY p LINES l
/: TITLE title
/: NAME name1[,name2[,name3,name4]]
/: PERSON name of natural person TITLE form of address
/: PERSONNUMBER number of the personen
/: DEPARTMENT department
/: STREET street name HOUSE house number
/: LOCATION additional location information
/: POBOX po box CODE post code / zip code CITY city
/: POSTCODE post code / zip_code
/: CITY city1,city2
/: NO_UPPERCASE_FOR_CITY
/: REGION county / state
/: COUNTRY recipient country LANGUAGE language code
/: COUNTRY_IN_REC_LANG
/: LANG_FOR_COUNTRY language key
/: FROMCOUNTRY sender country
/: ADDRESSNUMBER address number
/: ENDADDRESS
The parameter values contain both formatting and address information. The address data are formatted for output according to the data in the following parameters:
TYPE
FROMCOUNTRY
COUNTRY
LANGUAGE
PRIORITY
DELIVERY
LINES
If DELIVERY is not specified and if a POBOX is specified, then the POBOX is used in an address instead of a STREET
Regards,
Madhu -
How ADDRESS-ENDADDRESS works in script
Hi experts,
Could you please throw some light on how ADDRESS-ENDADDRESS works in script.
Please let me know how the following code executes and what is the impact of the FROMCOUNTRY statemnet in that code . Also le tne know various other options it has:
ADDRESS DELIVERY PARAGRAPH AS
ADDRESSNUMBER &PEKKO-ADRN2(K)&
FROMCOUNTRY &LFA1-LAND1&
ENDADDRESS
Thanks in advance.
Br
RamCheck the link for format
http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm
The SAP function module ADDRESS_INTO_PRINTFORM gets called
Check its documentation in SE37
This will help!
Regards,
Prashant -
Format data using ADDRESS ENDADDRESS Command in SAPscript
Hi All,
I have an requirement to print the contact address in the follwing format. Actually I want to print first name and Last name immediately after TITLE (Mr.) like below.
Mr. Jhon smith
Street name, po Code..
But currently it is printing like this below
Mr.
Jhon
smith
Street name, po Code..
I am using the ADDRESS...ENDADDRESS command some thing like this below:
/: ADDRESS PARAGRAPH AS PRIORITY A234P
/: TITLE &SADRD-ANRED&
/: NAME &SADRD-NAME1&, &SADRD-NAME2&, &SADRD-NAME3&,
/: STREET &SADRD-STRAS&
/: POBOX &SADRD-PFACH& CODE &SADRD-PSTL2& CITY &SADRD-PFORT&
/:ENDADDRESS
I would Appreciate for your quick responses.
Thanks.
Sankarwell you are doing it anyway manually when i have a look at your coding.
you are not using the standard way of printing an adress by just giving adrnr to the adress statement, but you are printing the fields in detail anyway.
So well just adopt it the like following:
/: ADDRESS PARAGRAPH AS PRIORITY A234P
/: TITLE &SADRD-ANRED&,,&SADRD-NAME1&,,&SADRD-NAME2&,,&SADRD-NAME3&
/: STREET &SADRD-STRAS&
/: POBOX &SADRD-PFACH& CODE &SADRD-PSTL2& CITY &SADRD-PFORT&
/:ENDADDRESS
but i still ask myself what you need the adress staement for when you anyway have an own way to format your output. -
SAPScript: ADDRESS - ENDADDRESS??
Hi all,
I would like to left out Name1 in
/: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
/: TITLE title
/: NAME name1[,name2[,name3[,name4]]]
/: PERSON name of natural person [TITLE
/: FROMCOUNTRY sender country
/: ADDRESSNUMBER address number
/: ENDADDRESS
Should i set PRIORITY as 1 (as for name2 is 2)
Thanks in advance.Hi Hans,
Can I write STREET 2 times?
Means :
STREET ®UH-ZSTRA&
STREET &STREET4&
rgds,
Madhuri -
SAPScript: Formating an Address/Endaddress part as bold
Hello,
I want to format an Adrdess/Endaddress part as bold. Don't know how to do this. Thanks.
Regards, Lars.For the associated paragraph format, just check the radiobutton for "BOLD".
Double click the paragraph format, click the font button, click the radiobutton to the "ON" position next to BOLD.
Regards,
Rich Heilman
Message was edited by: Rich Heilman -
Address print problem - sapscript
Hello
I have a problem with print name for example
"Mr &Smith& and &M& company" from field &VBDKR-NAME1&. The output is "Mr and company" sapscript format the name. I use
/: ADDRESS PARAGRAPH AS
/: ADDRESSNUMBER &VBDKR-ADRNR(K)&
/: FROMCOUNTRY &VBDKR-SLAND&
/: ENDADDRESS
and it helps but now i want to output only street from the address or name2 (&VBDKR-NAME2&). I try to use
ADDRESS PARAGRAPH AS PRIORITY 6APHRT7I8LCBS5O LINES 1
but it returns "invalid label".
Any help ?
Regards BartekHi,
Instead of ADDRESSNUMBER can you use the other way like
/: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
/: TITLE title
/: NAME name1[,name2[,name3[,name4]]]
/: PERSON name of natural person [TITLE form of address]
/: PERSONNUMBER number of the personen
/: DEPARTMENT department
/: STREET street name HOUSE house number
/: LOCATION additional location information
/: POBOX po box [CODE post code / zip code] [CITY city]
/: POSTCODE post code / zip_code
/: CITY city1[,city2]
/: NO_UPPERCASE_FOR_CITY
/: REGION county / state
/: COUNTRY recipient country [LANGUAGE language code]
/: COUNTRY_IN_REC_LANG
/: LANG_FOR_COUNTRY language key
/: FROMCOUNTRY sender country
/: ENDADDRESS
You have the STREET option here. Also find the detail help at,
http://help.sap.com/saphelp_470/helpdata/en/d1/803238454211d189710000e8322d00/frameset.htm
Thanks
Vinod
Maybe you are looking for
-
PLEASE READ ALL EMAIL. ANYONE THAT CAN HELP WOULD BE GREATLY APPRECIATED. As you read through the emails, you will see that "C" the customer service person responds the same way. All the emails are from the same thread. I would reply to his email, h
-
IPad 3 with iOS 7: Any way to close/exit all apps with one action?
While there are some things that I like about iOS 7, there is one long term gripe that I have that's been made worse by iOS 7. I have an iPad 3, and usually close (exit) all the apps that I've used that day at the end of the day, then put the iPad o
-
Microsoft Office 2011 won't even startup anymore
I can't seem to get Office 2011 to work after updating my system to Mavericks. I get this report after starting Outlook, and I get simular results when I try to open the other Office apps. Because I unfortunately need Word and Excel, I would like to
-
I am trying to put up a flash website. I have done everything i have read on here and in other places and still it is not working when it is "life" The page loads when i run it from my station but when i try to open it "life" it won't load. I have tr
-
What app is used in new CC design video that captures colors from phone photos?
Here is the link. I would to find it. http://www.adobe.com/products/creativecloud/design.html