FM to change the customer address

Hi Guys,
             I am looking for FM to change the customer address.
I found SD_CUSTOMER_MAINTAIN_ALL from here.. but the guys says its dumping..
Can I get some source code with the FM.
Thanks
Senthil

Use this.
Data:gt_kna1   LIKE kna1  OCCURS 1000 WITH HEADER LINE,
       gt_bapiaddr1 LIKE bapiaddr1 OCCURS 1000 WITH HEADER LINE,
       gt_bapiaddr2 LIKE bapiaddr2 OCCURS 1000 WITH HEADER LINE.
LOOP AT gt_kna1.
        CLEAR: gt_bapiaddr1, gt_bapiaddr2.
        READ TABLE gt_bapiaddr1 WITH KEY addr_no = gt_kna1-adrnr.
        IF sy-subrc NE 0.
          READ TABLE gt_bapiaddr2 WITH KEY addr_no = gt_kna1-adrnr.
        ENDIF.
        CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
          EXPORTING
            i_kna1                     = gt_kna1
            i_bapiaddr1                = gt_bapiaddr1
            i_bapiaddr2                = gt_bapiaddr2
            i_maintain_address_by_kna1 = 'X'
            pi_postflag                = 'X'
          EXCEPTIONS
            client_error               = 1
            kna1_incomplete            = 2
            knb1_incomplete            = 3
            knb5_incomplete            = 4
            knvv_incomplete            = 5
            kunnr_not_unique           = 6
            sales_area_not_unique      = 7
            sales_area_not_valid       = 8
            insert_update_conflict     = 9
            number_assignment_error    = 10
            number_not_in_range        = 11
            number_range_not_extern    = 12
            number_range_not_intern    = 13
            account_group_not_valid    = 14
            parnr_invalid              = 15
            bank_address_invalid       = 16
            tax_data_not_valid         = 17
            no_authority               = 18
            company_code_not_unique    = 19
            dunning_data_not_valid     = 20
            knb1_reference_invalid     = 21
            cam_error                  = 22
            OTHERS                     = 23.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDLOOP.

Similar Messages

  • Any BAPI or FM to use to update the Customer Address with change log?

    Hi, does anyone have used any BAPI or FM that will update the customer address (Central Address management fields) and the change will be logged in the change history of customer master? I have tried several FM that can update the fields but none of the change will show up in the change history of the customer master.
    So far, I have tried the following FM:
    ADDR_MAINTAIN_COMPLETE
    ADDR_UPDATE
    BDC is not acceptable due to high volume of data. However, the change log is also required.
    Please share any advice.
    Thank you,

    Hi Minami,
    for chenge address use FM : BAPI_BUPA_ADDRESS_CHANGE       (SAP BP, BAPI: Change Address)
    otherwise check with below FM ,for address related information
    BAPI_BUPA_ADDRESSES_GET              SAP BP, BAPI: Determine All Addresses
    BAPI_BUPA_ADDRESS_ADD                   SAP BP, BAPI: Add Address
    BAPI_BUPA_ADDRESS_CHANGE                 SAP BP, BAPI: Change Address
    BAPI_BUPA_ADDRESS_GETDETAIL             SAP BP, BAPI: Read Address
    BAPI_BUPA_ADDRESS_GET_NUMBERS    SAP BP, BAPI: Read Address Numbers
    BAPI_BUPA_ADDRESS_REMOVE                    SAP BP, BAPI: Delete Address
    Regards,
    Tutun

  • How/can I change the "from" address in Mail?

    I just upgraded to Mountain Lion, and have come across a problem.
    I use iCloud for my mail account, but I want to change the "from" address - so the return address on my messages is NOT icloud.
    I could do this in Lion.
    In the mail account settings, there's an option that says "alias" and it lists (me)@mac.com, (me)@me.com and (me)@icloud.com, and then "custom" is an option.
    Great!
    So I choose Custom, and then I can type in the "from" address that I want.
    However, when I go to save those changes, it tells me the SMTP server can't be left blank.
    What?
    It's not blank! I didn't touch it. The icloud server is still there!
    Furthermore, it's greyed out, so even if it WERE blank, it's not like I can edit it!
    Once this happens, the only fix is to delete the whole account from mail, and to disable mail in the icloud control panel, then re-add it.
    Has anyone figured out to work around this?

    Apple's outgoing mail server - just like 99.9% of all other SMTP servers, does not allow "relaying", meaning you use a domain in the 'sent from' address that is different from a domain hosted by the server. The simple reason is to make it harder for any spammer - not assuming you are one - to abuse the server. While bandwidth, server capacity and server load are some issues, the main fear for ISPs is to get blacklisted, and consequently mails from such server being refused by all others.
    It's a general rule, and while exceptions might be technically possible, it would be a manual act which at a certain rate would become unmanageable.
    If you want, read about the antonym, open mail relay servers, here.
    You see, it's actually good behavior and absolutely in your interest to prevent you from using a "non-in-house" 'sent from' address.

  • Change of customer address copied to linked vendor address

    Dear.
    When I change the customer master address using XD02 the system automatically copy this to the linked vendor master address..
    I need to maintain different address how can I avoid this automatic change ?
    Thanks.

    are you certain that this autochange  is not a customized functionality in your system?

  • Change the email address in VF02 before saving

    Hi Experts,
    I have a requirement in which I have to change the email address when the user selects my custom output type in VF02 transaction .
    The process :
    VF02 - Enter a billing document number - Go To - OUTPUT - Select the desired OUTPUT TYPE which has transmission medium as External Send - then Save-
    after this my requirement demands to give a pop up in which the user will enter his email id and then the mail goes to the email address entered by the user in the popup.
    so I would like to know if there are any user - exit available for this scenario and how to proceed further.
    Thank you in advance

    Check all
    Transaction Code - VF02                     Change Billing Document
    Exit Name           Description
    SDVFX001            User exit header line in delivery to accounting
    SDVFX002            User exit for A/R line in transfer to accounting
    SDVFX003            User exit cash clearing in transfer to accounting
    SDVFX004            User exit G/L line in transfer to accounting
    SDVFX005            User exit reserves in transfer to accounting
    SDVFX006            User exit tax line in transfer to accounting
    SDVFX007            User exit: Billing plan during transfer to Accounting
    SDVFX008            User exit: Processing of transfer structures SD-FI
    SDVFX009            Billing doc. processing KIDONO (payment reference number)
    SDVFX010            User exit item table for the customer lines
    SDVFX011            Userexit for the komkcv- and kompcv-structures
    V05I0001            User exits for billing index
    V05N0001            User Exits for Printing Billing Docs. using POR Procedure
    V60A0001            Customer functions in the billing document
    V60P0001            Data provision for additional fields for display in lists
    V61A0001            Customer enhancement: Pricing
    J_3RSINV            Customer enhancement: Pricing
    No of Exits:         17
    Rewards if useful....................
    Minal

  • Changing the eMail address used as my Adobe ID

    I am unable to change the eMail address that I use as my Adobe ID.  I enter a new eMail address, press "send verification eMail", and nothing happens - I have done it five times, believe me.
    How are you going to help me?  The eMail address that I am trying to move away from is one of the 153 million that was stolen in the Adobe hack.

    Johnf40545851 I was moving your forum post to a more related to your topic as it is not downloading or installation related.
    I would recommend reviewing Adobe ID, sign in, and account help for information on how to change the e-mail address associated with your Adobe ID.  If you have additional questions then please contact our support team directly at Contact Customer Care.

  • Who has changed the Custom Field value?

    Dears,
    Need to know the information regarding how to fetch that who has changed the Custom field value from PWA/MPP.
    Example:
    There is a PDP (say ProjectInfo):
    There is a Custom Field added to that PDP (say Project Status = In Progress).
    Now for ProjectA, someone has checked out and changed the Custom Field "Project Status" from "In Progress" to "Closed".
    I need to fetch the information regarding who has changed that Custom field.
    In which direction should I move: Event Handlers, PSI???? Any other stuff?
    Thanks & Regards,
    Shravan

    Hi Shravan,
    I'm not a developer but I do know that you can use an event handler pushing the resource name and date in custom fields.
    Another way is to use a 3rd-party tool like
    FluentPro Audit Tool.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Client's IP address changed. How do I change the ip address on my computer?

    I only have one client, the computer my sons use in another state.  Everything worked fine until they moved.  Now they have a new IP address.  When I select the client from ALL COMPUTERS, a dialog box opens labeled ATTRIBUTES with an option to EDIT.  However, when I change the IP address and the DNS, only the DNS info stays in the dialog box if opened again.  Neither the IP address or the DNS info is reflected in the client's entry in ALL COMPUTERS.  The status remains OFFLINE even when phone contact with the client verifies the computer is on and connected to the Internet using the same IP address.  Alternatively, I used the Scanner.  Remote Access finds the IP address plus the ISP web address, but attempts to connect fail. I suspect there is a way for me to properly change the IP for the client since all other info is the same.  I searched the user manual and info online but can not find any info that specifically address the above situation.  Both computers are Macbooks.

    yes you can just watch this video and i show you how during the video
    http://www.youtube.com/watch?v=Ph8Cj3Jetac

  • How do I change the IP address of my PC connected to a EA3500 router ?

    I have a PC with Windows 7 connected wirelessly to a EA3500 router. How do I change the IP address on my PC ?

    What type of ip address were you talking about? Is it the private ip address that the computer gets from a DHCP server/router or the public ip address that the computer gets from your ISP? If you were talking about the private ip address (e.g. 192.168.1.1) then you can easily assign a static ip address to your computer itself. If you were talking about the public ip address then you don’t need to worry of changing the ip address it’s because the ip address will change from time to time.

  • I need to change the MAC Address for Airport on MacBook

    I have a specific need to change my son's Airport MAC address as his school requires the use of USB network cards that aren't compatible with MACs. These cards are needed because the school's router uses MAC address filtering.
    Before we upgraded his Mac to Snow Leopard, we were able to change the MAC address to the MAC address of the useless dongal the school supplied. We basically created an AppleScript program that ran the "sudo ifconfig en1 ether xx:xx:xx:xx:xx:xx" and all was good.
    This command no longer works for changing the MAC address. We tried it as root user as well and by typing it into the terminal window as root. After running the command, we can run "ifconfig en1" and it does display the new mac address but when we turn the airport on and try to connect, it just hangs and won't connect.
    Our other non-Snow Leopard still works fine after running the commands so I'm guessing Apple disabled this functionality. It's hardly a security issue by being able to change your mac addres.
    Is there a new way to accomplish this? I've searched everywhere.
    Thanks!

    Would an easier solution be to provide the school's IT admin with your mac address and have it added? If they can add a block of mac addresses for the usb dongles, they can add more for machines that cannot use the dongle.
    Also: "It's hardly a security issue by being able to change your mac address."
    While it may not be a security issue for your machine, it is a security for the school network who is using mac address filtering as hopefully only one part of their wireless security.
    That being said, have you read this?
    http://osxdaily.com/2008/01/17/how-to-spoof-your-mac-address-in-mac-os-x/

  • I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.

    I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.  Every time I go to the account settings of my existing account (which currently uses my university email, as I set it up years ago and had no idea it'd eventually cause problems), I enter a different email to use for that account but I continuously receive an error message saying "account changes cannot be saved."  It makes me think that it's because the email isn't verified (funny, it actually is verified since it has been the alternate email on the old account for years), but when I click the "send verification email" nothing happens (that is, no email is sent to that other email address).
    Anyway, my university is now requiring that faculty create new accounts using our university email addresses in order to register/use Creative Cloud.  Am I able to delete my old account, or can anyone help me actually change the email address associated with my old account without getting a "changes can't be saved" error?

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    or
    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html

  • HT5312 How do you change the email address used to send security answers?

    How do you change the email used to send the security answers you have forgotten? I have changed the alternative email adress in Name, ID and Email Addresses but this does not change the email address in the Password and Security section.

    Jus what do you want to accomplish? The Apple ID email address is used for variosu thing onthe iPod like:
    - For purchasing media. Srrings.iTunes and App stores. Sing out and sign into anoterh account
    - Settings>iCLoudl for iCloud account
    - Settings>FaceRome for Apple ID and where You can Be Reached At email address
    - Settings>Messages for Send And Receive email address.
    - Maybe for Game Center

  • How do i change the email address for my icloud account on my 4s. when i sign in on line it is my new email address so i thought it would change automatically but obviously not!

    how do i change the email address for my icloud account on my 4s. when i sign in on line it is my new email address so i thought it would change automatically but obviously not!

    Settings>iCloud...scroll down...delete account. Then setup iCloud with your new ID.
    You can't change the Apple ID for your iCloud account, you have to delete it.

  • When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. How can I resolve this?

    Question
    When I am NOT private browsing Firefox will not allow me to delete or change the website address in the location bar. My only remedy is to open a new window and search in google then click the link to that site through google. When I swap to private browsing firefox allows me to anter the website address directly into the location bar - but this is a slow [prcess to swap back and forth - also by dint of using private browsing I loose my website information.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • I created an Apple ID for iTunes using a work email address and left that company before I had an opportunity to change the email and password for that account.  How do I change the email address to a new one that I can access?

    I created an Apple ID for iTunes using a work email address and left that company before I had an opportunity to change the email and password for that same account.  Now I can't seem to login to that account and I can't choose the option for forgot password because it will send email to the old workplace.  How do I change the email address to a new one that I can access?

    If you remeber the password to that Apple ID then follow these steps
    1 - Make sure you have an email address that is NOT an Apple ID
    2 - Go to AppleID.Apple.com
    3 - Where it reads Manage Apple ID - Sign in
    Once you are signed in want to make sure the email address you are wanting to use is NOT set up as a "Recovery/Rescue" email for this account.
    [To check this - Main page where you see Primary ID - below do you see the email address you want to use listed towards the bottom? Yes - Delete / No - Good ./. If made any adjustments "Save" Next on the left select "Password & Security" - Answer your security questions you set up "if you have any" then scroll towards the bottom and check to see if you see the email address you want to use. Yes - Delete / No - Good] <-> Also you can change your password on this page as well. Any adjustments made "Save"
    Once this is done go back to the main page where you should read "Primary ID" and change the email address that is showing to the new email address youo want. "Save" Done
    I learned this not to long ago and worked for me. Hope this helps you!

Maybe you are looking for

  • Help needed in importing application -  Urgent

    Hi, I am new fairly new to apex and would be grateful for any help.... I have an application that i would like to import and install... but i am obtaining an error... Situation is as follows: Application in machine A with oracle 10g standard and apex

  • How to create  64 bit plugin for CS5 on Mac

    hi, I am using Adobe photoshop CS5  extended (12 x64) version. While trying to build and run the sample  automationfilter  plug-in using  x86_64 configuration in xcode, plugin is being loaded but it is not working. But it is working properly in x32 m

  • Why is my wireless keypad not working?

    I've had my mac air and wireless keypad for 6 months now.  My keypad keeps dying out and now I can't seem to make it work.

  • Music apps start on their own

    I had several music programs installed. Periodically one would start on its own. Random song. I have no buttons on my desktop to start them. Music apps would start when phone sitting by itself or when using the phone in various ways. I deleted all th

  • Publishing to Sharepoint

    I just upgraded to 9 from 7 and am not able to get the new publishing feature to work. I am generating a webhelp project locally and attempting to publish to the company server/Sharepoint site.  I have tried every one of the options (http, sharepoint