Shifts of Address field data

Somewhere along the line in Synching .mac information all of my Address program file's ZIP Codes were duplicated and written into the State box, the State data was moved to the City field, and the City data was moved into the Street field preceeded by a carriage return. Is there any way to fix all this short of 750 x 4 "Copy" and "Paste" maneuvers?
G4   Mac OS X (10.4.3)  

THIS SCRIPT HAS NOT BEEN TESTED. Make a backup of your AB data before trying it. It may fix your problem. It assumes that the bad data is in the first address for each person card, and that all person cards need adjusting.
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "Address Book"
set OldDelim to AppleScript's text item delimiters
set AppleScript's text item delimiters to {return}
set MyContacts to every person
repeat with ThisContact in MyContacts
try
set TheAddress to address 1 of ThisContact
set temp to formatted address of TheAddress --force error if there  is no data
set OldCity to city of TheAddress
set OldState to state of TheAddress
set OldStreet to street of TheAddress
set state of TheAddress to OldCity
set street of TheAddress to text item 1 of OldStreet
set city of TheAddress to text item 1 of OldStreet
end try
end repeat
set AppleScript's text item delimiters to OldDelim
end tell</pre>
Feel free to ask before, during or after ...
AK

Similar Messages

  • Address field data is not getting dispalyed in company details

    Dear All,
    After filling up the necessary details in the Administration->system initialization->company details->general tab->Local language for the address of the company.
    I am not getting the address displayed in the Address field.
    I have filled all details in street,block,building,city,zip code,state,country.
    But still i am not getting anything displayed in the address field.
    Kindly help me in resolving this issue.

    Open Administration  -> Setup -> Business Partners  -> Address Formats Window.
    Check if you have the address format for the Country available in this window

  • F4 help for address field

    Hi,
    In BP_CONT component, for address field I need to provide F4 help. And the F4 should contain the addresses with separate fields as (city.street,country).On selecting the row the data should flow as concatenated manner to the address field.
    Please provide some idea to achieve this.
    Thanks.

    Hi Ginger,
    I would like to add what Vinamra has said, you need to create a search help through se11 transaction. As per your requirement you need to map address field of the selected row to different fields in UI.
    In search help we have IMPORTING(IMP) and EXPORTING(EXP) Fields or parameter.
    Lets take a simple example, suppose you have three address field house no, street and city. Now you would like to apply F4 help on CITY field so you need to choose CITY field as IMPORTING and EXPORTING parameter in your search help and other fields like HOUSE NO and STREET as EXPORTING parameter only.
    Now following code you need write in GET_V_CITY() method
    DATA:
       lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
       ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
       lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
       ls_map-context_attr = 'STRUCT.CITY'.
       ls_map-f4_attr      = 'CITY'.
       APPEND ls_map TO: lt_inmap, lt_outmap. " map to input and out
      ls_map-context_attr = 'STRUCT.HOUSENO.     " Context node attribute
      ls_map-f4_attr      = 'HOUSE_NO'.                    "corresponding Field in search help
      APPEND ls_map TO: lt_outmap.
    ls_map-context_attr = 'STRUCT.STREET.     " Context node attribute
      ls_map-f4_attr      = 'STREET'.                     "corresponding Field in search help
      APPEND ls_map TO: lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZSH_ADDRESS'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    May this will help you.
    Regards
    Ajay

  • Unicode  - "DMBTR" must be a character-type field (data type C,N,D or T)

    Greetings Experts!
    I am trying to convert legacy code to Unicode for a current ERP6.0 reinstallation and have encountered the syntax error "DMBTR" must be a character-type field (data type C,N,D or T)
    The field is part of a structure and the fields attributes are as follows:
    COMPONENT = DMBTR     
    COMPONENT TYPE = DMBTR     
    DATA TYPE = CURR     
    LENGTH = 13     
    DECIMALS = 2     
    DESCRIPTION = Amount in Local Currency
    The code in question is as follows:-
    macro Move_Zoned.
    Converts a numeric variable to zoned format and moves it to a
    target variable.
    DEFINE move_zoned.
         &1 - source variable
         &2 - Number of Decimal Places
         &3 - 'To'
         &4 - Target Variable.
      write &1 to w_zoned no-grouping decimals &2.
      condense w_zoned.
         Remove the Decimal Points.
      search w_zoned for '...'.
      while sy-subrc = 0.
        move sy-fdpos to w_to_point.
        if w_to_point = 0.
          w_to_point = 1.
        endif.
        compute w_from_point = sy-fdpos + 1.
        concatenate w_zoned+0(w_to_point)
                    w_zoned+w_from_point
               into w_zoned.
        search w_zoned for '...'.
      endwhile.
      shift w_zoned right deleting trailing space.
      translate w_zoned using ' 0'.
      call function 'Z_TRANSLATE_ZONED_DECIMALS'
        exporting
          i_input              = w_zoned
        importing
          i_output             = w_zoned
        exceptions
          x_invalid_zoned_char = c_invalid_zoned_char
          x_numeric_info_lost  = c_numeric_info_lost
          others               = c_other_zoned_error.
         Get the length of the recipient field so we don't truncate the
         numbers....
      describe field &4      length w_flength in character mode.
      describe field &4      type   w_type.
      describe field w_zoned length w_zoned_len in character mode.
      if w_zoned_len <= w_flength.
        move w_zoned to &4.
        shift &4 right deleting trailing space.
        translate &4 using ' 0'.
      else.
            Get the start position....
            If it's a packed field allow for values up to 6 figures
        compute w_zoned_len = w_zoned_len - w_flength.
        if w_type = 'P'.
          subtract 2 from w_zoned_len.
          clear w_type.
        endif.
        move w_zoned+w_zoned_len &3 &4.
      endif.
    END-OF-DEFINITION. "Move_zoned
      LOOP AT t_single_kunnr.
        move_zoned t_single_kunnr-postamt 2
                to t_single_kunnr-dmbtr.
        DIVIDE t_single_kunnr-dmbtr BY 100.
        MODIFY t_single_kunnr.
      ENDLOOP.
    Is there a solution to get past this syntax error as I would rather not change the datatype of the field in the structure.
    Much Obliged
    Elphick.

    Type X is not allowed in Unicode. When a field is declared as Type X with Value u201809u2019 or any other value, it can be resolved by using classes.
    Before Unicode
                      CONSTANTS: c_hex TYPE x VALUE '09'.
    Resolution:
    Itu2019s work for any value of x.
    First a temporary field of Type c should declare. Following class will convert Type x variable into type c.
    Example:
    CONSTANTS: c_hex TYPE x VALUE '09'.
    DATA: LV_TEMP TYPE STRING.
    DATA: LV_TMP TYPE C.
    TRY.
    CALL METHOD CL_ABAP_CONV_IN_CE=>UCCP
    EXPORTING
    UCCP   = c_hex
    RECEIVING
    CHAR   = LV_TMP   .
    CATCH CX_SY_CONVERSION_CODEPAGE.
    CATCH CX_PARAMETER_INVALID_TYPE.
    CATCH CX_SY_CODEPAGE_CONVERTER_INIT.
    ENDTRY.
    CONCATENATE I_OUTPUT-BKTXT I_OUTPUT-BVORG            
    I_OUTPUT-BUDAT I_OUTPUT-MESSAGE INTO
    SEPARATED BY LV_TMP.                      
    I_BUFFER = LV_TEMP.
    CLEAR LV_TEMP.
    CLEAR LV_TMP.
    OR
    Note: It works only for type x value  09.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    CONSTANTS: c_hex TYPE c VALUE
                             abap_char_utilities=>HORIZONTAL_TAB.

  • E51 address book data access via Bluetooth to Garm...

    I have a new E51 but cannot access address book data via Bluetooth from a Garmin Sat Nav (model 310). Worked perfectly with old Nokia 6310, but returns a 'no can do' message when using the E51. Lack of this feature is a big problem - surely Bluetooth communication is supposed to work to a common standard. This is not good. Does anyone have a solution or know of a patch to cure this? Thanks.

    All metioned problems are Samsung's fault. Blame them.
    I've been assuming it was a Samsung problem, and have posted help requests in cell phone forums that Samsung engineers and/or support allegedly reads. I was hoping there might be some way to automate a workaround from the computer end...
    Now, if Address Book had an option to define the fields that are to be exported or perhaps automatically sub Company Names for last names the problem would be solved when exporting for cell phones. I can't belive no one has ever encountered this before -- it has been a problem with every cell phone I have ever owned.

  • How to make ship to address fields mandatroy while creating sales order

    Dear forum Members,
    My client oraganizes trade shows and hence ship to address vries everytime when sales order is entered for the same sold to party.So one times ship to customer is used in the sales order and address is entered at sales order level. Please note that at master data level all address fields are suppressed for one time customer.Hence there is no question of going back to one time customer account group and making any field mandatory.
    While changing address for ship to at order level, there are few fields which are mandatory, for example city is mandatory. I also want to make zip code and region as mandatory.where is this controlled?Please note that this is not account which controls this. i have already done lot of r&d on account group and transaction variants which are not controlling these fields at sales order level.

    Hi Kanwal,
    Only incompletion procedure will not suffice for your requirement.
    You need to make the field mandatory wherein, if you dont enter, system will not allow you for enterin further fields. For this you should do the following:
    Goto transaction SHD0, you will get a screen where you need to enter you Tcode "VA01"
    Below you define a transaction variant (starting with Z).
    On the next tab you have Screen Variant. Here you enter screen variant name, program name & screen number.
    Then you click on create.
    Its like as if you are doing some kind of recording. Finally you will reach to the screen where there are options available to make the field mandatory.
    For your reference the program is SAPMV45A screen number is 4001.
    Further screen are self explinatory.
    Hope this should solve your requirement
    Regards,
    Dhananjay

  • How to populate the address field in real time from backend?

    Hi Guys,
    I want to populate the address field in srm portal when creating Shopping Cart. I got the data by using some BADI functions. Now the problem is I am not getting the structure/table where I should add that address so that it can reflect in the address field of shopping cart.
    Can anyone help me out?
    Regards,
    Virendra Kedia

    Joe - Work backwards from the value generated during the execution of the trigger. You have the value there so you could save it into a package variable right then (create a package with a variable and assign the value to the variable). Then create a process on the page (after the DML process) to assign the value of your package variable to a page item. Then in the branch back to page 1, pass the item. (Or without messing with the branch, the process could simply assign the package variable directly the the page 1 item -- :P1_ITEM := my_package.my_var; ).
    An alternative would be to use the "returning into" feature of DML to capture the PK of the created record into an item. Then the next page process could use the PK to fetch the new row and get the dbname value for passing to page 1.
    Another option would be to update session state directly in the trigger.
    Scott

  • How to use a .Mac alias in the outgoing address field from iPhone?

    I do not want my .Mac Apple ID showing up in the outgoing address field from my iPhone. I want to use an alias instead, just like I use in Mail. How can I use the same alias in iPhone?
    The iPhone has been great once I finally got it activated...no problems synching from Outlook on my PC and Address Book and iCal on my Mac. Now all of my PC and Mac data are finally merged on my iPhone and on both computers...wish I would have saved the money I spent on two versions of MissingSync! Looking forward to some software updates...
    Mac Mini   Mac OS X (10.4.10)   iPhone

    If you want to setup a different REPLY TO, you have to use the OTHER shortcut when creating the mail account on the iPhone. It allows you to specify an address in the Account Information box different from your incoming and outgoing server login IDs.

  • Address fields are ouput only

    Hi,
    In our IC webclient, when we enter a business partner, if nothing is entered in the address fields it creates ok but when we come back to change the partner again, the address fields are output only, so we can't enter anything in them. If we do enter address details when we create the partner, they are available ok for changing at a later date.
    Can anyone offer any advice on how we solve this, bearing in mind I'm completely new to BSP's and the IC Webclient.
    thanks,
    Malcolm.

    you may get a quicker response in CRM forum for this
    SAP CRM: Interaction Center
    Raja

  • Address fields output only

    Hi,
    In our IC webclient, when we enter a business partner, if nothing is entered in the address fields it creates ok but when we come back to change the partner again, the address fields are output only, so we can't enter anything in them. If we do enter address details when we create the partner, they are available ok for changing at a later date.
    Can anyone offer any advice on how we solve this ? I've taken a look at transaction BUCG. The fields in question are set to 'optional'.
    thanks,
    Malcolm.

    anyone ?

  • What is the smallest data structure record in a .TXT file record to be recognized as an Apple Address Book "Data Card"?

    Hello! This is my first time in this discussion group. The question posed is the subject line itself:
    What is the smallest data structure record in a .TXT file record to be recognized as an Apple Address Book "Data Card"?
    I'm lazy! As a math instructor with 40+ students per class per semester (pCpS), I would rather not have to create 40 data cards pCpS by hand, only to expunge that info at semester's end. My college's IS department can easily supply me with First name, Last name, and eMail address info, along with a myriad of other fields. I can manipulate those data on my end to create the necessary .TXT file, but I don't know the essential structure of that file.
    Can you help me?
    Thank you in advance.
    Bill

    Hello Bill, & welcome aboard!
    No idea what  pCpS is, sorry.
    To import a text file into Address Book, it needs to be a comma delimited .csv file, like...
    Customer Name,Company,Address1,Address2,City,State,Zip
    Customer 1,Company 1,2233 W Seventh Street,Unit 543,Seattle,WA,99099
    Customer 2,Company 2,1 Park Avenue,,New York,NY,10001
    Customer 3,Company 3,65 Loma Linda Parkway,,San Jose,CA,94321
    Customer 4,Company 4,89988 E 23rd Street,B720,Oakland,CA,99899
    Customer 5,Company 5,432 1st Avenue,,Seattle,WA,99876
    Customer 6,Company 6,76765 NE 92nd Street,,Seattle,WA,98009
    Customer 7,Company 7,8976 Poplar Street,,Coupeville,WA,98976
    Customer 8,Company 8,7677 4th Ave North,,Seattle,WA ,89876
    Customer 9,Company 9,4556 Fauntleroy Avenue,,West Seattle,WA,98987
    Customer 10,Company 10,4 Bell Street,,Cincinnati,OH,89987
    Customer 11,Company 11,4001 Beacon Ave North,,Seattle,WA,90887
    Customer 12,Company 12,63 Dehli Street,,Noida,India,898877-8879
    Customer 13,Company 13,63 Dehli Street,,Noida,India,898877-8879
    Customer 14,Company 14,63 Dehli Street,,Noida,India,898877-8879
    Customer 15,Company 15,4847 Spirit Lake Drive,,Bellevue,WA,98006
    Customer 16,Company 16,444 Clark Avenue,,West Seattle,WA,88989
    Customer 17,Company 17,6601 E Stallion,,Scottsdale,AZ,85254
    Customer 18,Company 18,801 N 34th Street,,Seattle,WA,98103
    Customer 19,Company 19,15925 SE 92nd,,Newcastle,WA,99898
    Customer 20,Company 20,3335 NW 220th,2nd Floor,Edmonds,WA,99890
    Customer 21,Company 21,444 E Greenway,,Scottsdale,AZ,85654
    Customer 22,Company 22,4 Railroad Drive,,Moclips,WA,98988
    Customer 23,Company 23,89887 E 64th,,Scottsdale,AZ,87877
    Customer 24,Company 24,15620 SE 43rd Street,,Bellevue,WA,98006
    Customer 25,Company 25,123 Smalltown,,Redmond,WA,98998
    Try Address Book Importer...
    http://www.sillybit.com/abee/

  • Check for a Comma (,) in an address field and send tht (,) as blank space t

    Hi,
    I have requirement , where I'm supposed to check for a Comma (,) in an address field and send tht (,) as blank space to the workarea.
    Do we have any FM or any check method for this.
    Plz tell me.
    Rohini.

    Hi,
      say address fields is "v_addr"
    DATA : v_len TYPE I,
               v_cnt1 TYPE i,
               v_cnt2 TYPE I value 1.
    v_addr = 'adresss,fiedls '.
    v_len = strlen( v_addr ) .
    DO v_len TIMES.
         IF v_addr+v_cnt1(v_cnt2)  EQ ','  .
             v_addr+v_cnt1(v_cnt2) = ' '.
            v_cnt1 = v_cnt1 + 1.
         ENDIF. 
    ENDDO.

  • Identifying Tables - Employee number field and email address field

    We need to identify specific tables for data extraction purposes. 
    The tables we need are - "employee number" tables (used in SU01) and "email address" field - (techinical info. field name - SMTP_ADDR)
    Thanks.
    Marie

    If you are looking for email addresses tied to user master records, then the table is ADR6,  you must link to this thru USR21.
    * Get email address
      clear smtp_address.
      select single adr6~smtp_addr into smtp_address
                    from usr21
                       inner join adr6
                            on  usr21~addrnumber = adr6~addrnumber
                           and  usr21~persnumber = adr6~persnumber
                                   where usr21~bname = sy-uname.
    Not sure that I've ever seen an employee number tied directly to a user in SU01.
    Regards,
    Rich Heilman

  • Need information about some address fields in DQXI

    I need to know the 'Content type' and 'Data field name' of the following address fields in DQXi
    1. Alley
    2.Building
    3. HouseNumber
    4. HouseSuffix
    5. Lane
    6. Pob Line
    7. PobNumber
    8. Section
    9. PrefectureCode
    10.DistrictName
    11.Mail Stop
    12. Postal Code Extension
    13. GeoCode
    14. Outside CityFlag

    Hello Smitha,
    Please post this query to the [Enterprise Information Management|Data Services and Data Quality; forum.
    That forum is dedicated to topics related to Data Integration (Data Integrator, Data Federator, Text Analysis for Data Integrator, Rapid Marts, and Integration for PeopleSoft Enterprise), Data Quality (Data Quality and Data Insight), and Metadata Management.
    The forum is monitored by qualified technicians and you will get a faster response there.
    Also, all BO Enterprise Information Management queries remain in one place and thus can be easily searched in one place.
    Thanks a lot,
    Falk

  • How to replicate the old address communication data into new address commun

    Hi All,
    In SAP R/3   4.7
    T.code: BP or FPP1
    Business partner have address with telephone, fax and email details, now I want to add another (new) address with same telephone number, fax and email with out copy and paste.
    When I click u2018createu2019 on address overview screen, the existed telephone number, fax and email fields data should be popup or appear in same filed in the new address screen.
    May i know standard sap user exit, BADI or BAPI.
    Thanks
    Venkat.

    Open the newly created address book. Click on one contact to select it. Hit control+a to select them all. Drag and drop them on the personal Address Book folder to move them there.

Maybe you are looking for

  • FAGLGA35 - Actual Distribution in New General Ledger accounting

    Dears, In transaction FAGLGA35, system gives below mentioned messages :- i) No valid sender entries were found. Message no. GA710. Diagnosis The system did not find a valid sender for cycle 0LZAWL, segment AWL. The problem can be due to the following

  • Invoke a planning function in BI-IP using a button to copy filtered data

    Hi All, I am using a planning function type copy to create a new version of data in the infocube. In Web Application Designer, I created a button that invoke my planning function using a command type EXEC_PLANNING_FUNCTION. So, I would like to copy t

  • VT01N Leg determination

    Hi All, I have a scenario I am battling with to configure for automatic leg determination in the shipment document. Scenario is: The are 2 deliveries, Del A and Del B. Both Del A and Del B will be on the same truck and Del A will be going to a Swedis

  • Problem with form autofilling every box in column underneath it when I type in one box.

    Hello everyone, I am doing an assignment for a summer class online. This summer class requires us to use Adobe Reader to fill out some questions that involve tables and typing. One of the tables is structured in such a way that we must fill in each r

  • Xsl not working

    Hi, When I call the below xsl in my BPEL code, I am getting the following answer. *<tempStr>oracle.xml.parser.v2.XMLNodeList@1546df5</tempStr>* my BPEL code is : ora:getContentAsString(ora:processXSLT('Hello.xsl',bpws:getVariableData('Invoke_OSTspSea