Update Vendor Email Address

Hi.
I need to change email address for vendor.I have to remove existing mail address
and populate with multiple mail address in vendor master.I tried bapi     BAPI_ADDRESSORG_CHANGE
it  triggers with the error message " address cannot be determined".could any one tell what ADDRESS_NUMBER is.
Thanks.
Srilakshmi Balamurali.

Hi Use BAPI_ADDRESSORG_GETDETAIL first and get Addressnumber.
Based on this address number, call BAPI_ADDRESSORG_CHANGE.
Below is the reference code.
DATA: objtype LIKE bapi4001_1-objtype,
        obj_id LIKE bapi4001_1-objkey,
        obj_id_ext LIKE bapi4001_1-extension,
        context LIKE bapi4001_1-context,
        address_number LIKE adrc-addrnumber,
        bapiadtel LIKE bapiadtel OCCURS 0 WITH HEADER LINE,
        bapiadtel_x LIKE bapiadtelx OCCURS 0 WITH HEADER LINE,
        return LIKE bapiret2 OCCURS 0.
Assign the following object type and object key to a main customer
address
  objtype = 'KNA1'.
  obj_id  = <customer number>.
  obj_id_ext = ' '.
  context = '0001'.
Get existing data by calling, e.g. FM 'BAPI_ADDRESSORG_GETDETAIL'
Enter the reference structure data
The telephone number with serial number '002' is to be deleted and
the one with serial number '003' updated
  CLEAR: bapiadtel, bapiadtel_x.
  bapiadtel-consnumber = '002'.
  bapiadtel_x-updateflag = 'D'.
  APPEND: bapiadtel, bapiadtel_x. "Delete entry
  CLEAR: bapiadtel, bapiadtel_x.
  bapiadtel-consnumber = '003'.
  bapiadtel-extension = '77733'.
  bapiadtel_x-extension = 'X'.
  bapiadtel_x-updateflag = 'U'
  APPEND: bapiadtel, bapiadtel_x. "Update entry
  CLEAR: bapiadtel, bapiadtel_x.
  bapiadtel-telephone = '06227'.
  bapiadtel-extension = '11111'.
  bapiadtel_x-updateflag = 'I'.
  APPEND: bapiadtel, bapiadtel_x. "Insert new entry
call change module
CALL FUNCTION 'BAPI_ADDRESSORG_CHANGE'
     EXPORTING
          obj_type       = objtype
          obj_id         = obj_id
          obj_id_ext     = obj_id_ext
          context        = context
     IMPORTING
         address_number = address_number
     TABLES
         bapiadtel      = bapiadtel
         bapiadtel_x    = bapiadtel_x
         return         = return.
Errors and warnings are in the RETURN table. If successful, the
organization address and its communication data are now updated
in the system.
The adress number is in the ADDRESS_NUMBER field.

Similar Messages

  • Vendor Email Address(Urgent)

    Hi,
    Can some one help me regarding extracting the vendor email address.Email can be obtained from ADR6 but need to know the lifnr and personal number.How do I get a unique personal number for a vendor so that i can query ARD6 and get the mail address.
    Thanks
    Shyam

    hi,
    i am not saying that adrnr number is same as personnumber you misinterpreted me.
    i was saying that for a particular adrnrnumber say 0000000145 , there exists  various person  number and these person number are in many cases same .
    Address Number Person numb
    0000000121               
    0000000145     0000001735
    0000000145     <b>0000002919
    0000000145     0000002919</b>
    0000000145     0000004153
    0000000145     0000004193
    0000000145     0000004211
    0000000145     0000004702
    0000000145     0000005050
    0000000145     0000005161
    0000000145     0000005184
    0000000145     0000005184
    0000000145     0000005186
    0000000145     0000005186
    0000000145     0000005190
    0000000145     0000005209
    0000000145     0000009182
    0000000145     0000010809
    0000000145     0000017254
    0000000145     0000017346

  • SAP MDM Vendor email addresses are not in order when sent to SAP R/3

    Hi Experts,
    We were trying to maintain vendor email addresses in this order in SAP MDM:
    E-mail address: massupa@nexus
    Sequence Number: 001
    E-mail address: win@nexus
    Sequence Number: 002
    E-mail address: satita@nexus
    Sequence Number: 003
    But when saving the record, its order get mixed up like below: (I believe it was arranged alphabetically automatically---> is this the standard MDM functionality?!)
    E-mail address: massupa@nexus
    Sequence Number: 001
    E-mail address: satita@nexus
    Sequence Number: 003
    E-mail address: win@nexus
    Sequence Number: 002
    When it gets syndicated to ECC, its order was maintained incorrectly with incorrect IDs:
    E-mail address             ID
    massupa@nexus        001
    satita@nexus              002   -
    > should be 003
    win@nexus                 003  -
    > should be 002
    we checked both the XML Files and the IDOC and found that it has the same order maintained in SAP MDM
    massupa@nexus        001
    satita@nexus              003
    win@nexus                 002  
    But how come the IDs were changed in R/3?
    Many thanks in advance!

    Hi Mike,
    As per your requirement, i feel that for ID either you can create a new field say sequence ID in this e-mail addresses table of MDM and thus can syndicate it or can also use ID as key using remote key concept. I mean for this e-mail addresses table, you can set property Key mapping = yes  in MDM Console and thus can use this IDs as key for this email address e.g. for massupa@nexus you can save ID as Key.
    So during syndication, map this field with target IDOC structure field and I mean Remote Key under e-mail addresses table with IDOC ID target field. In this way you can have correct IDs with their corresponding email addresses.
    Kindly let me know if you are looking for something else.
    Regards,
    Mandeep Saini

  • Updated my AppleID account info.  Under password security shows an email address to be used to receive email with new password settings.  I need to update that email address, how do I do that?  Thanks!

    Updated my AppleID account info.  Under password security shows an email address to be used to receive email with new password settings.  I need to update that email address, how do I do that?  Thanks!

    Thanks for the help Niel.  I couldn't change the rescue email address (an address that no longer exists and is therefore useless) until I could correctly answer the security questions.  After numerous guesses, finally got them right.  Was then presented with the option to change the rescue email address. Guess the only other option was to have Apple Support make the change or reset my account info.  Have made note of the correct answers so this won't happen again.   Thanks for the fast response!!

  • Replicated vendor email address from ECC 5.0 to SRM 5.0

    Hi All
    Currently, we are trying to replicate vendor email address from ECC to SRM. We use Vendor Master – General – Email (SMTP_ADDR) to store different email address
    1. ) Case One
    - Vendor email address for vendor account receivable
    - Vendor email address for procurement
    - Vendor email address for return invoice
    Our system : SRM will only replicate defaulted vendor email address ( Standard Number )
    Question : Is it possible to replicate all email address ( the above 3 email address).
    2.) Case Two
    When we only one email address for vendor account receivable, we don’t want to replicate to SRM.
    Question: Is possible to block this vendor email address and do not replicate to SRM ?
    Thank You
    Alex

    >>Will XI 3.0 able to work with ECC 6.0 without any change or any change is required in the XI configuration level, please specify?
    As far as I know, no change is required in XI configuration.
    Regards,
    Praveen Gujjeti.

  • Change Vendor Email Address

    Hi,
      I need to change the vendor email address, i found the table adr6 and i can join the table LFA1 with the Address number, but i don´t think that this the way to do it. Can someone have a function module to change the email address in massive way for migration data.
      The BDC is not helpful, because it doesn't show the field SMTP_ADDR.
         Thanks for the support,
             Cesar Felce

    Hi,
       I check the address an personal contact, but it doesn't display the SMTP_ADDR.
       When i run the transaction xk02 without the shdb, it appears perfect, checking just the address, but when i run with the shdb transaction it disappear the emailo address.
       Thanks,
          Cesar

  • Vendor email address in IDOC

    We are trying to create a vendor payment file to be sent to our bank in IDOC format.   The IDOC type we are using is PEXR2002.   We are not able to populate the vendor email address (from vendor master data - SMTP_ADDR) into IDOC segment E1EDKA1 even though the email address is shown on the vendor master.   All other vendor master address information, such as Phone, Fax, show up correctly in that segment.   Does anybody know how we can populate the IDOC with the email address? 
    Thank you.

    Thanks, Ravi.   We are trying to avoid creating a user exit and since all the other vendor info populates the IDOC correctly, we're hoping there's a 'standard' way of getting the email there as well.

  • Vendor Email Address to be populated in the Communication Method of the PO

    Hi,
    We have a requirement where the vendor email address needs to get populated in the Cover Text of the Communication Method.
    When the user changes the PO for eg  4500002984, the vendor mail address needs to get populated in the Cover Page Text of the Communication Method before Save of the Purchase Order.
    This needs to happen after the output type is configured and the mail address needs to appear in the Cover Page Text of the Communication Method before the PO save .
    Is there any exit or badi to do the same before the Purchase order is saved ?
    Thanks in advance,
    Anu

    Pls check the OSS note Note 191470 - Purchase order as an e-mail
    You may get some idea
    Regards
    MD

  • Help with vendor email Address table

    Can someone help me with this issue.
    I am trying to pull out the vendor email address for all the vendors. Vendor email address are the one's which are entered in the First page on XK01. I checked on the table name and it brings up only a structure.
    Please help

    You can try something like this....
    Example...
    *Selecting the  ADRNE from LFA1...
    SELECT SINGLE ADRNR FROM LFA1 INTO I_ADRNR
              WHERE LIFNR =  ITAB-LIFNR.
    *Passing ADRNR to ADR6 to get Email...
        SELECT SMTP_ADDR INTO TABLE I_Z1EMAIL
            FROM ADR6 WHERE ADDRNUMBER = I_ADRNR.

  • BDC Upload Vendor email address

    Hi experts,
    Could you tell me how I can upload the vendor email address information with BDC.
    Best regards.
    Tks a million!
    David.

    Hi
    Use the transaction code MK02 to change the vendor details. For that first you have to do the recording in SHDB. Then generate a program from the recording and then pass your values to it.
    Regards,
    Vishwa.

  • Check on vendor email address change before saving PO

    Hi All,
        I need to check Is there any change in Vendor Email address in PO before
    saving. I am trying to find userexits.
    I found some like EXIT_SAPMM06E_012, But here I am not getting complete
    Vendor address...
    Req: I am maintaing multiple email address for Vendor at PO header level.
    Here is the path:  PO Header --> Address tab --> Click on Address Details
    --> Here we can maintain(Insert/ Delete/Change) multiple e mail address.
    So I need to check is there any change in email address before saving.
    Could you please any body help me on this....
    Thanks
    Rays

    Hello Rays,
    One base question,
    Are you going to check the vendor email address manually before saving the PO?
    The vendor address in the puchase order is copied from the vendor master so you can maintain email address (single or multiple) in the vendor master before creating the purchase order. At the time of purchase order creation/save, you can change the default email address and use this to trigger PO to vendor.
    By the way, user exit EXIT_SAPMM06E_012  (Check Customer-Specific Data Before Saving) is used for custom field not for SAP std field.
    Hope this helps.
    Arif Mansuri
    Reward the points if answer is helpful.

  • Function module to update vendor communication address

    Hi Experts,
        Can anyone give me an idea,which function module is used to update vendor communication address details.
    **points will be rewarded
    Regards,
    Naresh.

    Hi,
    Try this FM.
    ADDR_COMM_GET
    Thanks,
    Sandeep.

  • Update mass email address

    Hello,
    How to update mass email address in customer master?
    I have tried thru MASS and LSMW but its not possible.
    The table for teh same is SZA1_D0100 and  the field is SMTP_ADDR. Actually its a structure.
    Regards,
    SS

    Hello,
    Thanks a lot for your reply.
    Actually it was contact number changes.
    Manually i can do it through VAP2, but there is a mass change so was just trying thru mass upload tools.
    There isnt email ID field while creating LSMW either for XD02 or VAP2.....it seems i have to update manually.
    Regards,
    ss

  • When I update the email address in the Address book the old email address remains an option when I send email to the contact. How do I delete all th old email addressees

    When I update an email address in my address book the old email addresses always remain an option when I sen an email to the contact. How do I delete the oll email addresses from the system?

    Ah, since you posted in the iMac forum I assumed....
    Here's the link to the iPhone forum, those guys will know the answer.
    https://discussions.apple.com/community/iphone/using_iphone

  • Trying to rent movie from Apple TV. Message states a valid address is necessary to purchase. We have purchased about 15 show in the last month along. Any suggestion on how to update valid email address

    trying to rent movie from Apple TV. Message states a valid address is necessary to purchase. We have purchased about 15 show in the last month along. Any suggestion on how to update valid email address.

    I got the same error and can't get it to work.  My email and home address have not changed in the 3 years I've been using this device, my credit card info is up to date and my most recent rental was 2 days ago yet I get the error message on both the Apple TV and in iTunes.  I don't understand what the issue is, nothing is invalid.

Maybe you are looking for

  • PDF File Size - any way to compress further?

    We have are using the Crystal for .NET export method to export a report to a .pdf file, and are having an issue with the pdf file size on a report that contains images.  The images are stored in a SQL2005 database as blob or varbinary(max).  The repo

  • Sound over rdesktop error periodic - heres the error message

    i am having problems getting sound over my LAN rdesktop to a win machine periodically, heres the error message rdesktop -g 1600x1000 -r sound:local *netbiosname* Autoselected keyboard map en-us WARNING: Remote desktop does not support colour depth 24

  • HT1766 I can't backup my data on iCloud ! There is always an error . Any help ?

    "The last backup could not be completed" Why ?

  • Missing Outbox with content

    I have a problem with Mail. If for some reason a message cannot be sent immediately, it is put in the Outbox. But the Outbox folder does not appear in the left pane even when there is a message waiting to be sent. Similarly, when I display the submen

  • Foreign Trade and Trade Collaborator

    Dear SAP Gurus, I would like to know about foreign trade SD in India and how is it different with North America Foreign trade. Also I would like to know if we need Trade Collaborator to carry out Foreign trade. Your urgent reply would be highly appre