Script , using ADDRESS ENDADDRESS
Hai Friends ,
Am developing PO O/P Script form , in this, driver program is SAP'S Standard Program , i have to use address and end address keyword , in that i could use my paragraph format , but i cud't use my character formats , Please help me i need to use my character formats in address and endaddress keyword .
Regards
Sarath P G
Rajesh,
Are u using a standard driver program or is it customized,
i feel that the city value which is in lower case is getting translated somewhere later .
there can be no other reason for this translation as in your case.
During debugging try changing the city value at runtime
and see if it reflects. Hope this works
Regards
Sajimon Chandran
Similar Messages
-
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. -
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> -
Address - endaddress - Blank line comming in betweeen
I am printing an address in sap script using
ADDRESS DELIVERY PARAGRAPH DF LINES 14
ADDRESSNUMBER &Z_ADRNRPO(K)&
FROMCOUNTRY &Z_ALAND1&
ENDADDRESS
I am getting the output something like .
Firma
Schneider & Co
Finanzberatung
Postfach 12345
68499 Mannheim
See after ,Postfach 12345', there is a blank space comming.
Is there any way to remove it .
The address should print like
Firma
Schneider & Co
Finanzberatung
Postfach 12345
68499 Mannheim
That is without a blank line in between.
Thanks in advance .Check the paragraph format that is applied on this address and in paragraph format select check boxes called No blank line.
I guess it will solve your issue.
Reward points to all useful answers.
Regards,
SaiRam -
Address -Endaddress in Sap Script
Hi
Requirement is to add District field in new line in SAP Script.
I am using Address End address :
/: ADDRESS
/: TITLE &DKADR-ANRED&
/: NAME &DKADR-NAME1&, &DKADR-NAME2&, &DKADR-NAME3&, &DKADR-NAME4&
/: STREET &DKADR-STRAS&
/: POBOX &DKADR-PFACH& CODE &DKADR-PSTL2&
/: CITY &DKADR-ORT02& , &DKADR-ORT01&
/: POSTCODE &DKADR-PSTLZ&
/: COUNTRY &DKADR-LAND1&
/: REGION &DKADR-REGIO&
/: FROMCOUNTRY &DKADR-INLND&
/: ENDADDRESS
So basically I would like to put &DKADR-ORT02& in new line.
I cannot use District field.If I use CITY field again it is not showing the value.
How do we add this new field?Try like this not sure it will work or not.
/: ADDRESS
/: TITLE &DKADR-ANRED&
/: NAME &DKADR-NAME1&, &DKADR-NAME2&, &DKADR-NAME3&, &DKADR-NAME4&
/: STREET &DKADR-STRAS&
/: POBOX &DKADR-PFACH& CODE &DKADR-PSTL2&
<b>/: CITY &DKADR-ORT02&</b>
<b>/: CITY &DKADR-ORT01&</b>
/: POSTCODE &DKADR-PSTLZ&
/: COUNTRY &DKADR-LAND1&
/: REGION &DKADR-REGIO&
/: FROMCOUNTRY &DKADR-INLND&
/: ENDADDRESS
Regards,
SaiRam -
Using Address..End Address Command in Script ?
Using Address........End Address Command in Script , Is it possible to print without Name filed ? I have tried but w/o name field it is not printing ..
I liket to print like this
Address paragraph Z3
Street ...........................
PoBox.........................
City........................
End Address
can any1 suggest me?Hi,
If you want to print country specific then use
/: ADDRESS PARAGRAPH AS
/: ADDRESSNUMBER &EKKO-ADRNR(K)&
/: FROMCOUNTRY &T001-LAND1&
/: ENDADDRESS
Reward if useful.
Regards,
Nageswar -
Using Address..End Address in Script
Using Address........End Address Command in Script , Is it possible to print without Name filed ? I have tried but w/o name field it is not printing ..
I liket to print like this
Address paragraph Z3
Street ...........................
PoBox.........................
City........................
End Address
can any1 suggest me?Hi,
If you want to print country specific then use
/: ADDRESS PARAGRAPH AS
/: ADDRESSNUMBER &EKKO-ADRNR(K)&
/: FROMCOUNTRY &T001-LAND1&
/: ENDADDRESS
Reward if useful.
Regards,
Nageswar -
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 -
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 -
How to reject emails using address email's sender
Hi,
I'm wondering if it's possible to reject emails using address email's sender.
Thanks,sorry, I thought it was one of the built in options. you can do it with an apple script rule then.
paste the following into a blank Applescript Editor window . Applescript Editor is located in /Applications/Utilities
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
using terms from application "Mail"
on perform mail action with messages selectedMsgs
repeat with msg in selectedMsgs
tell application "Mail"
bounce msg
end tell
end repeat
end perform mail action with messages
end using terms from</pre>
save the script somewhere and set your Mail rule to run this script on messages from that sender. -
Executing a UNIX shell script using SM49
I have been trying all sorts of things to get this to work and I have been un-successful
I am trying to run the UNIX script using SM49. the command line that I am using is
/test/directory/bin/testmail.sh
the script testmail.sh looks like
#!/bin/ksh
/usr/bin/mailx -s testmail <email address>
I have tried all sorts of combinations to run this script
example
sh /test/directory/bin/testmail.sh
/test/directory/bin/testmail.sh %f
/test/directory/bin/testmail.sh %F
does anyone have any suggestions on how to get this to run successfully. once I get this to run successfully in SM49, I am going to try it in the intregration builder of my PI process.Hi,
considering authorization issues, you can use
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = 'LIST_DB2DUMP'
additional_parameters = l_path
operatingsystem = 'UNIX'
TABLES
exec_protocol = lt_btcxpm
EXCEPTIONS
to extract information about files on the server
I used this code to get detailed information for display including the attributes
LOOP AT lt_btcxpm ASSIGNING <btcxpm>
WHERE length > 57
AND ( NOT message+57 CO '. '
OR message+57 = '..' )
AND ( message(1) = 'd' OR
message(1) = 'l' OR
message(1) = '-' ).
l_srvfil-type = <btcxpm>-message(1).
IF l_srvfil-type = '-'.
l_srvfil-type = 'F'.
ENDIF." l_srvfil-type = '-'.
TRANSLATE l_srvfil-type TO UPPER CASE. "#EC TRANSLANG
l_srvfil-file = <btcxpm>-message+57.
CONDENSE l_srvfil-file.
l_srvfil-attri = <btcxpm>-message+1(9).
* l_srvfil-time = <btcxpm>-message+44(12).
l_srvfil-size = <btcxpm>-message+32(11).
APPEND l_srvfil TO lt_srvfil.
ENDLOOP." at lt_BTCXPM assigning <BTCXPM>.
pt_srvfil = lt_srvfil.
For the srvfil information I used this structure
BEGIN OF typ_srvfil,
%_box TYPE flag, "#EC *
type TYPE char01,
attri TYPE isp_rel,
file TYPE file,
name TYPE file,
size TYPE sytleng,
owner TYPE sy-uname,
mod_date TYPE sydatum,
mod_time TYPE syuzeit,
END OF typ_srvfil,
I do not remember exactly how the attribute information is resolved. In Unix all file system authorizations can be set as for the user, the group or for all and it can be read, write, execute granted. If you are no unix expert, ask one or google/wiki for some details.
I wrote a program for navigation, display, and some more functions on the file system which is too big to post here and is not fully system-independent. Not perfect but useful and more than 5 years old. Contact me by mail if you want it.
Regards,
Clemens
Edited by: Clemens Li on Oct 23, 2009 9:16 PM -
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. -
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 -
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.
LalynHi,
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
Maybe you are looking for
-
Cannot Access iTunes without getting error message
This morning I tried accessing iTunes and I recieved an error that read "iTunes has encountered a problem and needs to close, sorry for the inconvenience" at present I am trying to download the iTunes program again. Should I have uninstalled the orig
-
EVDRE Format Range More than one Criteria
I have found a problem when combining two Criterias in the Format Range Criteria section: CATEGORY.ID="FORECAST" AND ACCOUNT.CALC="Y" I expext a formatting as when ACCOUNT is a calculated member and the CATEGORY is forecast, then do a special formatt
-
i'm trying to use JFreechart for my application.i tried installing it and tried setting classpath using the command prompt and it shows the following errors C:\Documents and Settings\Administrator>javac -classpath C:\Documents and Settin gs\Administr
-
Is there a way to change the font color on text links? The text becomes underlined when I select it for a link, but I can't seem to change the colour of the text. any ideas?
-
TS4425 Cannot access Photo Stream on my Apple TV.
Updated over a week ago. Software 6.0. iCloud terms and conditions have changed it says yet it won't allow me to accept the new terms. Elsewhere it advises changing the region. Have tried that. It doesn't help. Please help.