Conform to SAP address format settings, is there an object or service?
Is there any object or service available that implements the SAP Business One address formatting feature--i.e. we would like to have something that puts the address in the proper format given the following parameters:
Address Format (Code or Name from OADF), street, block, city, county, state, zip, country
Also, how does the system know what address format code to use for the company address (stored in Administration->System Initialization->Company Details)?
It was not too tricky:
[code] Dim strSQL As String
Dim strFormat As String
Dim strFormattedAddress As String
Dim str_1_Street As String
Dim str_2_City As String
Dim str_3_PostCode As String
Dim str_4_County As String
Dim str_5_State As String
Dim str_6_Country As String
Dim str_7_Block As String
Dim arr() As String
Dim i As Integer
Dim s As String
With oAddress
str_1_Street = .Street
str_2_City = .City
str_3_PostCode = .ZipCode
str_4_County = .County
str_5_State = .State
str_6_Country = .Country
str_7_Block = .Block
PostalAddress.strCountryCode = .Country
strSQL = "SELECT Format FROM OADF T0 JOIN OCRY T1 ON T0.Code = T1.AddrFormat WHERE T1.Code = '_Country_'"
strSQL = Replace(strSQL, "_Country_", .Country)
gsboRS.DoQuery(strSQL)
If gsboRS.RecordCount = 1 Then
strFormat = gsboRS.Fields.Item(0).Value
If InStr(strFormat, "$6[D") Or InStr(strFormat, "$6[UD") Or InStr(strFormat, "$6[OD") Or InStr(strFormat, "$6[PD") Then
' Get Country Name
str_6_Country = SBOGetBySQL("CountryName", str_6_Country)
End If
If InStr(strFormat, "$5[D") Or InStr(strFormat, "$5[UD") Or InStr(strFormat, "$5[OD") Or InStr(strFormat, "$6[PD") Then
' Get State Name
str_5_State = SBOGetBySQL("StateName", str_5_State)
End If
' UPPERCASE
If InStr(strFormat, "$1[U") Then str_1_Street = str_1_Street.ToUpper
If InStr(strFormat, "$2[U") Then str_2_City = str_2_City.ToUpper
If InStr(strFormat, "$3[U") Then str_3_PostCode = str_3_PostCode.ToUpper
If InStr(strFormat, "$4[U") Then str_4_County = str_4_County.ToUpper
If InStr(strFormat, "$5[U") Then str_5_State = str_5_State.ToUpper
If InStr(strFormat, "$6[U") Then str_6_Country = str_6_Country.ToUpper
If InStr(strFormat, "$7[U") Then str_7_Block = str_7_Block.ToUpper
' lowercase
If InStr(strFormat, "$1[O") Then str_1_Street = str_1_Street.ToLower
If InStr(strFormat, "$2[O") Then str_2_City = str_2_City.ToLower
If InStr(strFormat, "$3[O") Then str_3_PostCode = str_3_PostCode.ToLower
If InStr(strFormat, "$4[O") Then str_4_County = str_4_County.ToLower
If InStr(strFormat, "$5[O") Then str_5_State = str_5_State.ToLower
If InStr(strFormat, "$6[O") Then str_6_Country = str_6_Country.ToLower
If InStr(strFormat, "$7[O") Then str_7_Block = str_7_Block.ToLower
' Capitalized
If InStr(strFormat, "$1[P") Then str_1_Street = str_1_Street.Substring(1, 1).ToUpper & str_1_Street.Substring(2).ToLower
If InStr(strFormat, "$2[P") Then str_2_City = str_2_City.Substring(1, 1).ToUpper & str_2_City.Substring(2).ToLower
If InStr(strFormat, "$3[P") Then str_3_PostCode = str_3_PostCode.Substring(1, 1).ToUpper & str_3_PostCode.Substring(2).ToLower
If InStr(strFormat, "$4[P") Then str_4_County = str_4_County.Substring(1, 1).ToUpper & str_4_County.Substring(2).ToLower
If InStr(strFormat, "$5[P") Then str_5_State = str_5_State.Substring(1, 1).ToUpper & str_5_State.Substring(2).ToLower
If InStr(strFormat, "$6[P") Then str_6_Country = str_6_Country.Substring(1, 1).ToUpper & str_6_Country.Substring(2).ToLower
If InStr(strFormat, "$7[P") Then str_7_Block = str_7_Block.Substring(1, 1).ToUpper & str_7_Block.Substring(2).ToLower
arr = strFormat.Split("$")
For i = 0 To arr.Length - 1
s = arr(i)
If s.StartsWith("1") Then
strFormattedAddress &= str_1_Street & " "
ElseIf s.StartsWith("2") Then
strFormattedAddress &= str_2_City & " "
ElseIf s.StartsWith("3") Then
strFormattedAddress &= str_3_PostCode & " "
ElseIf s.StartsWith("4") Then
strFormattedAddress &= str_4_County & " "
ElseIf s.StartsWith("5") Then
strFormattedAddress &= str_5_State & " "
ElseIf s.StartsWith("6") Then
strFormattedAddress &= str_6_Country & " "
ElseIf s.StartsWith("7") Then
strFormattedAddress &= str_7_Block & " "
ElseIf s.StartsWith("N") Then
strFormattedAddress &= vbCrLf
ElseIf Not s.StartsWith("L") Then
strFormattedAddress &= strFormattedAddress & " "
End If
Next
End If
End With
[/code]
Juha
Message was edited by: Juha Lassila
Similar Messages
-
Customize the address formats for internetsales application of B2C
Hi Experts,
Please explain me how to create new address formats for Internet sales application of type B2C.as of now currently we have only 2 address formats.i,e 1) US Address 2) EU address.
I would like to create more address formats..
Please suggest me
Thanks and regards,
KiranHi,
I doubt you can create more address format types. There is no T-Code/Table etc to create a new one.
Please follow this: SPRO >CRM > Web channel > E-Commerce > Define Address Format
SAP Help says
In this Customizing activity, you define how addresses are displayed in Internet Sales.
Two address formats are currently supported. These are the European standard address, and the USA address. The address format is defined using the address layout key for the country of the sales organization, which is in turn determined using the shop variant.
In this activity, you can maintain the assignment of address layout key to address format.
Sateesh Chandra. -
Which address format to choose for Chinese addresses?
Hi;
In Addressbook, I'm trying to enter a Chinese address. I'm standing in Beijing, can't get more Chinese than this.
A Chinese address looks like this:
中国北京市东城区东中街20号3号楼1311 100022
Chinese addresses go from country (中国) first to apartment number (1311) in a single stream, with the postal code last for sorting.
This has nothing to do with the Address format when I choose "China" under "Change Address Format". Is there another "China" that I should select?
Any help would be appreciated -- I'd like to preserve as much of the chinese characters and formatting as I can.
Additionally, if I can manually create a format that goes:
Country-Province-City-District-address postal
... then I'd at least preserve the chinese formatting.
Thanks...
Allan
Powerbook G4 Mac OS X (10.4.8) Addressbook 4.0.4 (485.1)FAT is FAT32 is MSDOS
exFAT is FATex
Disk Utility select second drive media
Hit the partition tap, select big box click 2 partitions,
select 1 partition format OS X extended, select the other partition format MSDOS click Apply.
https://discussions.apple.com/message/16276201#16276201
Because you have a unusual setup, I don't know exactly how Bootcamp is going to handle it, you got to download the drivers and read the PDF.
However when you insert the Windows 7 DVD to install, you first need to change the MSDOS/FAT32 format to NTFS using the Windows disk, Disk Utility or Bootcamp won't do it.
https://www.apple.com/support/bootcamp/ -
Hi All
would appreciate if anybody let me know how to add contact details(Address/cell) of a person in SAP Address Management.
ChiruHi
There are severals BAPI in order to insert an address, which BAPI has to be used depends on the kind of address u need to create, these are the BAPIs:
BAPI_ADDRESSORG_SAVEREPLICA
BAPI_ADDRESSPERS_SAVEREPLICA
BAPI_ADDRCONTPART_SAVEREPLICA
Max -
Number format settings for address book
The format settings in the Address Book preferences does not seem to work properly.
I selected the "Phone" icon, checked the "Automatically format phone numbers" box, and selected the "+1 (123) 456-7890" format.
When I add a new number using the "+" in the contact form and enter the number, it puts the number in the "(123) 456-7890" format.
If I uncheck the "Automatically format...." box, the format of a new entry will be "1234567890". I can never get it to add the "+1" in front of the number.
In order to utilized the "Call with Skype" feature when Skype is loaded, it requires the "+1" prepended to the number.
This is most annoying, since I had to go in and edit 100+ contact numbers to add the "+1".
Any suggestions?
slbell
iBook G4 Mac OS X (10.4.6)Barney-15E,
Thanks that's it.
I always forget to open iSync.
I tried looking in the MobileMe.
Thanks,
Paul -
Address format(address layout key problem)
Hi All,
There seems to be a problem the way FM address_into_printform is formatting the address.
Address currently on the form is coming like below:
AGRI-M LTD
Vasisk Aprilso Str 138. PB 135
BG-4003 PLOVDIV
Address should come as below:
AGRI-M LTD
Vasisk Aprilso Str 138. PB 135
4003 PLOVDIV
BULGARIA
Issue here is that country BG(Bulgaria) which should come as "BULGARIA" and not just as "BG"(This is just a short form).
I debugged the function module and i found that when address layout key(t005-addrs) is set in customizing as "001" then system is printing the third line as "BG" but when I removed the "001"(in debugging) then it translates it to "BULGAIRA"(which is required).
I did not throughly debugg to see exactly at what time this happens(when it is set to BG and when it is set BULGARIA).
What do you think ? I know in customizing, removing this value 001 will work but do you have any idea whether it will create any problem for address format when it comes to priority(street over postal code or postal code over street).
Is there any other workout so that format comes as required.
Regards,
MarcHello,
In transaction OY01 or IMG menu path:
General Settings-> Set countries-> Define countries-> Position JP and
then go to the details.
You will see an address layout structure key. The standard for Japan is
013. For more information on the address layout structure key, place
your cursor in the field and press the F1 help. The documentation is
very complete.
They are based on different national and international guidelines and
norms, including:
ISO 11180,
contracts of the World Postal Union (Seoul 1994),
international address samples from the World Postal Union
as well as the available rules of the individual countries.
"Customers can program their own formatting routines using a customer
exit. The SZAD0001 SAP enhancement has been defined in development class
SZAD for this (-> transaction CMOD)."
Regards,
David -
Hello - I just purchased an iPhone 4s and would like to use iCloud but my apple id is not in email address format so when i try to sign into iCloud it won't let me use my apple id. i tried to change my apple id through my account settings but could not find a way to do that. i found ways to change everything else in my settings but when i pushed on the edit button to change my apple id the page didn't change. Not sure how i can get to use iCloud? Please help.
You change the name of your ID at https://appleid.apple.com. See http://support.apple.com/kb/HE40.
-
How can I convert a file in SAP RDI format?
HI All,
I have to convert the data which is to be passed to the Smartform into RDI format.
I am using Application form (Print Workbench)
for sending data to smartform.
Is there any Function Module for converting data into SAP RDI format?
Should I write this FM in User-exit of application form?
Thanks & Regards,
Anshumita.HI
GOOD
I NEVER FACED SUCH KIND OF ISSUES, BUT HERE I AM GIVING SOME DETAILS ABOUT SAP RDI FORMAT,I HOPE THIS WILL HELP YOU TO SOLVE YOUR PROBLEM.
Description
Using the SAPscript Raw Data Interface (RDI), you can connect external text management systems to control individual requests, for example, optimizing postage expense. The interface contains all form data from the R/3 System, but no layout information such as font or page size. The external system alone is responsible for the layout and administration of the document data. The RDI is of special importance for mail processing. The external system sorts the document data from the interface and forwards the documents accordingly.
The Raw Data Interface is a certified interface and allows easy connection to external systems. However, you pay the price for this extra function, as you lose tight integration with the R/3 System. For example, you cannot find out from within an R/3 application whether the external system successfully printed and sent the documents. In addition, extra expense is incurred each time you adapt a standard form, since the system has to adapt both an internal and external form. The external tool is not an integral part of the ABAP Development Workbench, so that field information (field type, output length and so on) from the ABAP Dictionary is not available.
THANKS
MRUTYUN -
A Problem with Region Format Settings
Hi!
I have a peculiar problem with Region Format settings on my iPod touch (Settings > General > International > Region Format). It appears that iPod touch can support more region formats than it is stated on that list. Once I registered my iPod, I selected my location, Lithuania, and it automatically set (I think because of this action, and not another, like my PC settings) Region Format to Lithuanian. Although it is nonexistent on the menu list! Good news!
However, the problem is that while I explored my iPod I accidentally checked another region, and there is no "cancel" option. So my region switched to another. And now I am not able to switch it back to Lithuanian again because there is no such selection (reset or restore didn't help).
Has anybody any suggestions how could I return to my preferred region format (Lithuanian)? Thanks!thats interesting. I think the ipod took those settings from your computer/mac.
anyway, shouldn't there be something near you that has the same region format settings? maybe you can just use something that's exactly the same.
and btw: some of the regions have arrows next to them which brings you to subregions of that region. maybe you should check that out?
otherwise ... well ... I think only a restore would bring back the original settings. -
Several day ago my Hotmail acct seemed to be hacked as the following email
''I think this is a nice website,I like it very much.If you have time please browse it.Maybe you can find some products that are suitable for you.Their priciple is :100% original and brand new,100% satisfied! Their address http://dpzc.net/#512.com/img/26_qtr.jpg/
Email:[email protected]
Msn: [email protected]''
was sent to my entire address book, and now when I try to sent a hotmail I get an error message saying Attachment Id Has Bad Format, even though there is no attachment. (This problem does not happen in IE8)
I did Hotmail help and their response was ''''I advise you to optimize your browser. If you have a browser that’s not Internet Explorer, you can visit its Help section.''''
How do I optimize Firefox 3.6.12?
or what other suggestions do you haveDelete any traces of Silverlight from your HD, you will be able to send attachments normally thereafter.
-
How to make Address Book obey Preferences?
I run MacBook Pro 4.1 laptop, Mac OS X 10.6.8
Address Book 5.0.3 (883)
Preferences set at ...
General
First name following Last name
Sort for Last name
Address Format Canada
Font size Large
Phone format set at
+1.123.456.7890
When application quits - it's all forgotten and it self-resets to
unwanted configuration.Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the third-party developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
Here are some general guidelines. Suppose you want to remove something called “BrickYourMac.” First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickyourmac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, email the developer. While you're waiting for a response, download BrickYourMac.dmg and open it. There may be an application in there such as “Uninstall BrickYourMac.” If not, open “BrickYourMac.pkg” and look for an Uninstall button.
If you can’t remove software in any other way, you’ll have to erase your boot volume and perform a clean reinstallation of OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" that purport to remove software. -
Can I set the address format for individual contacts?
I have some foreign friends and would like to set the address format for their individual cards correctly. I can't seem to find a way to do this. I will be taken aback if this can't be done - I think the old Claris contact product did that.
Anyone with any answer?
BryanHi Bryan,
When in edit mode, can you right click on the address field and change the country format there? I'm not on a Mac at the moment to double check, but that's what you do in OS 10.4 so I'd be surprised if it were changed in 10.5.
Edit: Here's picture to demonstrate what I'm referring to:
!http://www.ampersandbox.com/imprint/change-address-format.jpg! -
Preventing empty rows in address formats
Hallo everyone!
I'd like to know if there is a method to prevent SBO2005A from printing empty rows in the address fields when for instance there is missing county in BP addresses like this:
I have defined an address format that goes
Block
County
Street
ZipCode | Freetext(" ") | City
We use Block as "Name2" and County as "Name3" in master data just in case the customer wants to use additional names for his BPs.
If I use the "Block" - field and I leave the "County" - field blank it prints an empty row between "Block" and "Street". This is not the behaviour I would like to see. In case "county" is missing I would rather see something like this in a printout:
Block
Street
ZipCode | Freetext(" ") | City
So, is there a method to force this? or any workaround?Hello Patryk,
PLD does not offer the functionality to control the blank lines in an address field. I would suggest you use a formatted search in your address field on the marketing document and have it formatted in the document itself before you print.
Please see sample code for your requirment for the Ship to address. If you want this to applied to the Bill to address field then you have to slight alter the query by cha
For Shipto address formatting
SELECT CASE WHEN T0.Block IS NOT NULL THEN + CHAR(13) + CHAR(10) + T0.Block + CHAR(13) + CHAR(10) ELSE '' END +
CASE WHEN T0.County IS NOT NULL THEN + CHAR(13) + CHAR(10) + T0.County + CHAR(13) + CHAR(10) ELSE '' END +
ISNULL(T0.Street, '') + CHAR(13) + CHAR(10) + ISNULL(T0.ZipCode, '') + ' ' + ISNULL(T0.City, '')
FROM [dbo].[CRD1] T0 WHERE T0.AdresType = 'S' AND T0.Address = $[$40.0.0] AND T0.CardCode = $[$4.0.0]
For Billto address formatting
SELECT CASE WHEN T0.Block IS NOT NULL THEN + CHAR(13) + CHAR(10) + T0.Block + CHAR(13) + CHAR(10) ELSE '' END +
CASE WHEN T0.County IS NOT NULL THEN + CHAR(13) + CHAR(10) + T0.County + CHAR(13) + CHAR(10) ELSE '' END +
ISNULL(T0.Street, '') + CHAR(13) + CHAR(10) + ISNULL(T0.ZipCode, '') + ' ' + ISNULL(T0.City, '')
FROM [dbo].[CRD1] T0 WHERE T0.AdresType = 'B' AND T0.Address = $[$226.0.0] AND T0.CardCode = $[$4.0.0]
Suda -
My iMessage number has a +1 under send and receive listed infront of it. Under settings/phone there is no plus one under "my number" does this matter? I have verizon.
Hey brianfromcharlton,
Thanks for the question. If I understand correctly, you have a phone number linked to iMessage and the phone number has a +1 in front of it. I would recommend that you read this article, it may be able to help the issue.
iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage - Apple Support
Sign in to an Apple ID on your iPhone. You will see all addresses verified with the account.
Tap an address to enable it on the device. The telephone number will be dimmed when you view these settings on an iPhone.
Thanks for using Apple Support Communities.
Have a good one,
Mario -
Address Book - Changing the address format?
A couple of years ago I imported all my old contacts into address book. I've now discovered that I had the address format set to USA in preferences and I'm a UK user. I've since changed the preference to UK but it this only affects new addresses that I add.
Is there a way to change those old addresses to UK format? I've tried exporting a V card and re-importing but it doesn't change.
TIA, SteveHi Steve, and a warm welcome to the forums!
I'd take a look at Barney-15E's Script here for converting to gb/uk...
http://discussions.apple.com/thread.jspa?threadID=764832
Maybe you are looking for
-
Using D-LINK dir-825 router and unable to print on hp laserjet 4000tn
i am using a d-link dir-825 router for my network but recently i have bought a used hp laserjet 4000TN printer for my small network. i can ping it from any where but i am not be able to print off it. thank ASe
-
When I try to open iTunes I get this message " This copy of iTunes is corrupted or is not correctly installed. Please reinstall iTunes." I have installed the latest version of iTunes and the message has not changed. What should i do next?
-
BAPI for purchase order TA Me27
Hi, I´m looking for a BAPI to create purchase orders like in TA ME27. I don´t have the vendor... So I think, BAPI_PO_CREATE is not working because the vendor is mandatory... Thank You!
-
My iPod classic won't go into disk mode
I have an iPod Classic (120GB) here. When I turn it on, it gives me a screen with the Apple logo first and after a few seconds a screen with a red circle, a cross in the circle and the text: www.apple.com/support/ipod . I followed all the steps on th
-
Max no. of entries in an internal table?
Max no. of entries in an internal table?