BAPI_BUPA_ADDRESS_ADD

Hello together,
Help me.  The function module BAPI_BUPA_ADDRESS_ADD -
(create address data)is saved the data not in the databank tables. Why?
CALL FUNCTION 'BAPI_BUPA_ADDRESS_ADD'
    EXPORTING
      businesspartner       = lv_bpartner
      addressdata           = ls_addressdata
  ACCEPT_ERROR          = ' '
IMPORTING
  ADDRESSGUID           =
   TABLES
  BAPIADTEL             =
  BAPIADFAX             =
  BAPIADTTX             =
  BAPIADTLX             =
      bapiadsmtp            = ls_bapiadsmtp
  BAPIADRML             =
  BAPIADX400            =
  BAPIADRFC             =
  BAPIADPRT             =
  BAPIADSSF             =
  BAPIADURI             =
  BAPIADPAG             =
  BAPIAD_REM            =
  BAPICOMREM            =
  ADDRESSUSAGE          =
  RETURN                =
Thanks in advance,
Irene

Try calling the following FM after your call :
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
It will trigger a commit on the database.
Hope it helps!
Cheers,

Similar Messages

  • Any Bapi or FM to clear open customer and vendor items.

    Hi all,
    I am looking for a Bapi or function module to clear the open items of AR and AP ie Customer and vendor open items, (Transaction Code F-04 , Post with clearing).
    Thanks in Advance,
    Diwakar.

    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

  • XML Data into CRM

    Hi Experts,
    Can any body tell me how can we get XML data from 3rd party(For ex: Serena tool) into CRM system?

    Hi Ravi,
    You can populate the BAPI's from the IDOC data and then BAPI will create the data into the system. SAP has provided n number of BAPI's for the same.
    For e.g. Say the XML file has the Business Partner data. XI converts it into IDOC and sends it to CRM system. In CRM we read the data from the IDOC and then populate the BAPI BAPI_BUPA_CREATE_FROM_DATA to create the business partner, BAPI_BUPA_ADDRESS_ADD to create address data for the business partner and so on.
    <b>Reward points if it helps.</b>

  • Update address-independent telehpone of BP

    Hi all,
    We need to change address-independent telephone numbers of business partner.
    When such record already exists (telephone numbers are maintained), this can be done using function module 'BAPI_BUPA_CENTRAL_CHANGE' with TELEFONDATANONADDRESS.
    However, when address-independent telephone record does not exist (all telephone numbers are empty) - BAPI return warning 'BAPIADTEL was not found' and BP is not updated.
    We have found out that address-dependent data is updated with two separate functions: 'BAPI_BUPA_ADDRESS_ADD' and 'BAPI_BUPA_ADDRESS_CHANGE', but we have not been able to find out similar ADD function for address-independent records.
    Does anyone know how to update address-independent records (telephone, in this case) via ADD method?

    Hi Ujwal,
    I dont have a ready code right now.
    Firstly, the module BUPA_CENTRAL_GET_DETAIL can be used to get all the details of the address independent communications.
    Later for delete:
    BUPA_CENTRAL_CHANGE : For example say telephone data has to be filled.
    The corrsponding cons number has to be filled in 'IT_ADTEL_ADDR_IND' and the corresponding flag set in IT_ADTEL_ADDR_IND_X and also the update flag should be set to 'D'. In this way the telephone number can be deleted.
    For restricitng the validity, the corresponding valid from and valid to fields can be updated accordingly in the same way.
    Regards,
    Sudheer.

  • Mass upload of BP into CRM

    Hello!
      I peform mass upload of BPs into CRM. I use FM BUPA_CREATE_FROM_DATA to create BP itself and BUPA_ADDRESS_ADD to save BP addresses and call these FMs in the same turn for each BP.
      So, if I do that for 1-2 BPs, it works perfectly. All BP are saved in CRM with there addresses on COMMIT. As soon as the number of uploaded BP increases(between two commits), for example, up to 100, there is an error happens:   E831(AM) in ADDR_MEMORY_SAVE.
      As well as I understood, it happens because of address saving peformed before BP saving on commit. I tried first to save BPs only (with commit) and then their addresses, and it worked on mass upload without any error.
      So, is there any idea about how to upload each BP with his address simultaneously without any error by mass upload?
        Thank you.

    You can upload millions of records using these function modules.Infact I am doing the same.
    Make sure that the data structures,tables which are passed to the Function modules are cleared for each time and FM's should be in the below mentioned order.
    BAPI_BUPA_CREATE_FROM_DATA
    BAPI_BUPA_ADDRESS_ADD
    BAPI_TRANSACTION_COMMIT.
    Thanks,
    Thirumala.

  • Address for contact person

    hi all,
    i have a req,
    req says "system would need to block Customer Master Data irrespective of account group getting copied to the Contact Person home address and then to General Data tab"
    i didnt understand it correctly.
    how the data is copied into contact persons home address?
    and to general data tab.
    is there any program? standard? or it could be user defined?
    thanks

    Hi Sai,
    Just check out the FM <b>'BAPI_BUPA_ADDRESS_ADD'</b>.
    Regards,
    Amit Mishra

  • Business Partner Relationship

    Hi All,
    I have requirement when in I need to store single value fields, multi-value fields and also standard BP fields (like Address, telecom) within a BP Relationship.
    Requirement: A student and university are two business partners. Student and university are linked by a relationship call qualification. Attributes of the relationship are Degree, receive date, location. Standard BP address fields need to be used for location.
    I have an idea/knowledge about how to store single value fields and multi-value fields as a relationship attribute.
    Question: How to use the standard BP address fields as a relationship attribute. Does anyone know any BAPI that can be used to store the address without the business partner?
    PS: BAPI_BUPA_ADDRESS_ADD, BAPI_BUPA_ADDRESS_CHANGE BAPI requires Business partner as input fields,
    Thanks,
    Raghavendra

    Hi,
    As far as what I know there is no BAPI provided for relationships other than contact person, employee and shareholder for which you can assign address for relationship.
    For contact person relationship there is a BAPI BUPR_CONTP_ADDR_CHANGE
    etc.
    Thanks and warm regards,
    Smita.

  • Is it possible to unload a program at runtime?

    Hi experts,
    maybe you can help solve the following problem:
    I have a customer program that is calling a sap standard function module several times. The function module is BAPI_BUPA_ADDRESS_ADD. The BAPI works fine when calling it once but I get errors when repeating the call.
    I assume that the error is caused by the fact, that the data of the respective function group is no longer initial after the first call. Of course this would be a programming error. My assumption is approved by a workaround: When I call the function module in a separate work process with "starting new task" I observe no errors.
    Now I wonder if there is a better workaround because starting a new task for each call has the disadvantage of making each call asynchronous - moreover we create many work processes. For example is there a way to unload or refresh a function group at runtime so that the second call is like the first?
    Thanks
    Peter

    Hi Thomas,
    after importing the patch of sap note 1256410 the error "update was terminated", caused by function module BUPA_ADR_WRITE_DOCUMENT due to duplicate entries in table CDPOS, did not appear anymore.
    However calling the function module BAPI_BUPA_ADDRESS_ADD several times destroys the address data of the business partner because the BAPI does not refresh the local address memory. I found out that this can be done with function module BUP_MEMORY_ADDRESS_INIT.
    Thus actually two problems were involved here.
    Peter

  • Creation of address data in table ADR2(Vendor)

    Hi all,
    Please tell me a function nmodule to create adress data in table ADR2 .
    Thanik

    Hi,
    Incase you want to change the details use the BAPI BAPI_ADDRESSPERS_CHANGE.
    For a business partner the available BAPIs to add or change telephone number are
    BAPI_BUPA_ADDRESS_ADD
    BAPI_BUPA_ADDRESS_CHANGE.
    Read the documentation of the bapis for further details.
    Regards,
    Ankur Parab

  • Hi i need help on BAPI to Update the ADRT & ADR6 tables

    hi,
    i need help on BAPI to Update the ADRT & ADR6 tables
    these are the fields to be updated
    ADRT-Remark Table
    ADR6-SMTP_ADDR
    ADR6-DFT_RECEIV
    Please guide me what parameters to be passed to update
    ADR6 & ADRT tables

    Look at this function Group
    <b>BUBA_3                         SAP BP: External BAPI Function Modules     </b>                        
    BAPI_BUPA_ADDRESS_ADD          SAP BP, BAPI: Add Address                                          
    BAPI_BUPA_ADDRESS_CHANGE       SAP BP, BAPI: Change Address                                       
    BAPI_BUPA_ADDRESS_GET_NUMBERS  SAP BP, BAPI: Read Address Numbers                                 
    BAPI_BUPA_ADDRESS_GETDETAIL    SAP BP, BAPI: Read Address                                         
    BAPI_BUPA_ADDRESS_REMOVE       SAP BP, BAPI: Delete Address                                       
    BAPI_BUPA_ADDRESSES_GET        SAP BP, BAPI: Determine All Addresses                              
    BAPI_BUPR_CONTP_ADDR_ADD       SAP BP, BAPI: Add Contact Person Relationship Address              
    BAPI_BUPR_CONTP_ADDR_CHANGE    SAP BP, BAPI: Change Contact Person Relationship Address           
    BAPI_BUPR_CONTP_ADDR_GETDETAIL SAP BP, BAPI: Read Contact Person Relationship Addresses           
    BAPI_BUPR_CONTP_ADDR_REMOVE    SAP BP, BAPI: Delete Contact Person Relationship Address           
    BAPI_BUPR_CONTP_ADDRESSES_GET  SAP BP, BAPI: Read Contact Person Relationship Addresses           
    BAPI_BUPR_EMPLO_ADDR_ADD       SAP BP, BAPI: Add Employee Relationship Address                    
    BAPI_BUPR_EMPLO_ADDR_CHANGE    SAP BP, BAPI: Change Employee Relationship Address                 
    BAPI_BUPR_EMPLO_ADDR_GETDETAIL SAP BP, BAPI: Read Employee Relationship Address                   
    BAPI_BUPR_EMPLO_ADDR_REMOVE    SAP BP, BAPI: Delete Employee Relationship Address                 
    BAPI_BUPR_EMPLO_ADDRESSES_GET  SAP BP, BAPI: Read Contact Person Relationship Addresses           
    Look also at OSS <a href="https://service.sap.com/sap/support/notes/306275">Note 306275 - Transferring address data</a>
    Regards

  • ABAP interfacing to CRM

    Hi CRM Tech guys,
       plz tell me what are the reuirements in ABAP interfacing to CRM.  i want some function modules , bapis,  and needed middleware concepts.
    plz answer me.
    regards
    ram.

    Hi Ram Krishna,
    Some of the FM in CRM:
    GUID_CREATE     Create GUID for a Business Transaction
    BAPI_BUSPROCESSND_CREATEMULTI     Bapi to create Service Contracts programmatically. Pass the inputfields to be created in the contract.
    Note: BAPI_BUSPROCESSND_SAVE must be called after this function call to save the Service Contract.
    BAPI_BUSPROCESSND_SAVE     Bapi to save the Service Contracts.
    BAPI_ECRMISUTO_INIT     Initialize the creation of Ibase in CRM
    BAPI_ECRMISUTO_CREATEMULTIPLE     Create the Installed Base and its components.
    Note:
             Always call the function module 
             ‘BAPI_TRANSACTION_COMMIT’
             after call to any Bapi
    CRM_IBASE_INITIALIZE     Initialize the changes to be done in Ibase in CRM
    CRM_IBASE_SAVE     Call this FM to save the changes in the Ibase
    BAPI_BUPA_FRG0130_CREATE     Bapi to create Business Agreement for a customer
    BAPI_BUPA_ADDRESS_ADD      Add invoice address for business partner. Pass the address type as 'rechnung' to add invoice address
    BAPI_BUPA_BANKDETAIL_ADD        Add bank details for the business partner
    BAPI_BUPA_CREATE_FROM_DATA        BAPI for business partner creation as Organization, Person or Group in general role. Same BAPI can be used to create Contact Person for the Business Partner
    BAPI_BUPR_RELATIONSHIP_CREATE     Function module to establish the Business Partner and Contact Person
    Relationship. Pass the Relationship Category as ‘BUR001’
    BAPI_BUPA_ROLE_ADD        Add Role to Business Partner for e.g. Sold to Party ‘CRM001’, Contact Person ‘BUP001’
    BAPI_BUPA_TAX_ADD     BAPI Add Tax Number for the existing Business Partner
    BAPI_BUPA_FRG0040_CREATE     Create Classification Data for a Business Partner
    BAPI_BUPA_FRG0130_CREATE     Create Business Agreement
    BAPI_BUSPROCESSND_CREATEMULTI     BAPI to create Contract. Populate the Header and Line Item Details before calling the BAPI
    BAPI_BUPA_ADDRESSES_GET      Determine All Addresses
    BAPI_BUPA_ADDRESS_GETDETAIL        Read Address
    BAPI_BUPA_ADDRESS_GET_NUMBERS        Read Address Numbers
    BAPI_BUPA_BANKDETAILS_GET        Determine All Bank Details
    BAPI_BUPA_BANKDETAIL_GETDETAIL        Read Bank Details
    BAPI_BUPA_BANKDETAIL_NUMBERS        Read Bank Details Numbers
    BAPI_BUPA_CENTRAL_GETDETAIL        Read Central Data
    BAPI_BUPA_EXISTENCE_CHECK        Check Existence of Business Partner
    BAPI_BUPA_GET_NUMBERS        Read Business Partner Numbers
    BAPI_BUPA_RELATIONSHIPS_GET        Determine All BP Relationships
    BAPI_BUPA_ROLES_GET        Determine All Roles
    BAPI_BUPA_ROLE_EXISTENCE_CHECK        Check Existence of Role
    BAPI_BUPA_SEARCH        Search Business Partner for Telephone, E-Mail, Address
    BAPI_BUPA_STATUS_GETDETAIL      Business Partner: Read Status
    BAPI_BUPR_ACTIVITYP_EXISTCHECK      Check Existence of Contact Partner Relationship
    BAPI_BUPR_CONTP_ADDRESSES_GET        Read Contact Person Relationship Addresses
    BAPI_BUPR_CONTP_ADDR_GETDETAIL        Read Contact Person Relationship Addresses
    BAPI_BUPR_CONTP_GETDETAIL        Read Contact Person Relationship
    BAPI_BUPR_EMPLO_ADDRESSES_GET        Read Contact Person Relationship Addresses
    BAPI_BUPR_EMPLO_ADDR_GETDETAIL        Read Employee Relationship Address
    BAPI_BUPR_EMPLO_GETDETAIL        Read Employee Relationship
    BAPI_BUPR_RELATIONSHIP_GET        Read General Relationship
    BAPI_BUPR_RELSHIP_CHECKEXIST        Check Existence of General Relationship
    BAPI_BUPR_RELSHIP_GET_DETAIL        Read General Relationship
    BAPI_BUPR_RESP_EMPLO_CHEKEXIST        Read Relationship of Employee Responsible
    BUPA_PARTNER_CONTACT_SEARCH      Searches business partners for telephone, E-Mail, address
    ECRM_ISU_COMP_BY_ADDRESS     Check for Existence of Ibase
    CRM_ORDER_GET_HEADER_GUID     Get Header GUID for Item GUID pass ref_kind as b
    CRM_ORDERADM_H_READ_OW     Read the Header Details for a Business Transaction. Pass the Header guid.
    CRM_ORDERADM_I_READ_OW     Read the Line Item Details for a line item. Pass the line item guid.
    CRM_ORDER_READ     Get all the Service Contract details.
    Note: Pass the requested objects to fetch only the required details.
    This can also be used to get the details of activities/leads/opportunities etc.
    CRM_ORDER_GETSTATUS     Get status of the Service Contract
    Note: CRM_ORDER_READ Function Module
    1.     CRM_ORDER_READ is a function module which can be used to get the details of any business transaction based on the Header GUID, Item GUID or both.
    2.     Always pass the IT_REQUESTED_OBJECTS structure to this function module to fetch the required details only.
    3.     This function module can not be executed directly instead SAP has provided a report CRM_ORDER_READ for the same for testing purpose. We can pass Business Transaction Number (Object ID), Header GUID or Item GUID to this report to get the required details.
    For other Details: just go through : http://help.sap.com/saphelp_crm50/helpdata/en/1a/023d63b8387c4a8dfea6592f3a23a7/frameset.htm
    Hope it will help
    Regards,
    Arjun
    <b>Reward points if it helps</b>

  • CRM Datasources for Activities & Business Partner Address

    Hi Experts,
    Can you please help in understanding following issue?-
    For both these datasources-
    1) 0CRM_SALES_ACT_1
    2) 0BP_DEF_ADDRESS
    I can see huge queue stacked up in CRM side in tcode SMQ1/RSA7.
    But delta loads for these datasources bring exactly 1 millions records every day and this is happening since last month.
    Even after delta load completes, I don't see corresponding decrease in delta queue entries.
    -For second datasource delta queue entries are varying around 21+ million records
    -For first one its varying from 5 million entries to 7 million entries
    It started happening around the time when people from CRM team loaded data in huge amounts in CMR from other lagacy systems. Historical data loads & conversion in CRM is finished long time back but queues for some cases are still stuck at big numbers.
    -->When I double click on queue, following is the status-
    "NOSEND"
    -->Further double click on it gives following two types of entries-
    a) Transaction Recorded
    b) Message Edited in Target System
    Any helpful responses are welcome.
    Thanks,
    Arun Purohit

    In R/3 you can check
    WB2_PARTNER_ADDRESS_CREATE
    also confirm in which system u need to create the business partner address.
    Additionally you should also check out
    BAPI_BUPA_ADDRESS_ADD        
    BAPI_BUPA_ADDRESS_CHANGE     
    BAPI_BUPA_ADDRESS_GETDETAIL  
    BAPI_BUPA_ADDRESS_GET_NUMBERS
    BAPI_BUPA_ADDRESS_REMOVE     
    These may be helpful
    Regards
    Alok Pathak
    Message was edited by: Alok Pathak

  • BAPI TO UPLOAD BP ADDRESS

    Hi,
    I have uploaded Business Partner address (city, country, Email) in Tcode BP based on Business Partner Id using the BAPI
    called BAPI_BUPA_ADDRESS_ADD.
    But the thing is I need to add Email in two places ie Communication and Address-Independent Communication blocks of BP tcode.
    When using above BAPI (BAPI_BUPA_ADDRESS_ADD) it is adding email in E-mail field of Communication block only but I need to place that Email in two blocks of Email field.
    Pls suggest me how to proceed or is there any BAPI which fulfils above requirement
    Thanks
    Chandu

    Hi,
    Could you pls anybody suggest any function module which can be done my requirement.
    thanks

  • Hi experts using bapi what we do on abap.

    hi experts using bapi what we do on abap how it is whats the use , normally how we work on bapis in realtime.

    Hi Sri,
    1.BAPI is nothing but the RFC enabled function module.
    2.You can use BAPI to collect the data from database as well
       as insert & update the database.
       E.g. BAPI_BUPA_ADDRESS_GETDETAIL for collecting info regarding Business partner.
             BAPI_BUPA_CENTRAL_CHANGE to modify the database against business partner
             BAPI_BUPA_ADDRESS_ADD to insert the data.
    3. You can also use BAPI as RFC Funcrion module.
    Please reward points if finds useful.
    Regard,
    Swarup
    Edited by: swarup basagare on May 30, 2008 10:37 AM

  • BP Address Change

    Hi Gurus,
    I want to change mail address of  a Business Partner(on BP transaction) By a  program.
    I want to change mail address if it exists and create if it doesn't exist.
    I use  BAPI_BUPA_ADDRESS_CHANGE to do it. If e-mail address exist it changes,But If e-mail address does not exist it doesn't CREATE new one. I want it to create if e-mail address does not exist.
    How can I provide that by using BAPI_BUPA_ADDRESS_CHANGE .
    I don't want to use bapi BAPI_BUPA_ADDRESS_ADD Because it creates new address number while creating e-mail address .
    Thanks in advance,
    regards

    Hı Rishu,
    thanks four your help
    But I still have a problem with this FM
    it_adsmtp-e_mail      = < e-mail address>
    it_adsmt_x-e_mail     = 'X'.
    it_adsmt_x-updateflag = 'I'.
    it_adsmtp-email_srch = < e-mail address>
    it_adsmt_x-email_srch = 'X'.
    APPEND it_adsmtp.
    APPEND it_adsmt_x.
    CALL FUNCTION 'BUPA_ADDRESS_CHANGE'
    EXPORTING
         iv_partner                      = partner
      TABLES
         it_adsmtp                        = it_adsmtp
         it_adsmt_x                      = it_adsmt_x
         et_return                         = return.
    I use the FM like above, and COMMIT after FM.
    Return table is empty and It does not do any action?
    I don't know what  I missed?
    thanks in advance,
    regards

Maybe you are looking for

  • Report for abserving changes made to the customer master and moniter

    Report for abserving changes made to the customer master and moniter and detail Please send with t. code.

  • How can i see the previews of a folder's images from the Thumbnail View?

    I mean, in windows XP if you set the Thumbnail View, inside the icon of the folder you can see the preview of the images inside ( like this http://mowd.idv.tw/LonghornPDC/folder_preview.JPG )... Is there a way to do it on Mac OS X? Maybe some plug-in

  • Cannot Read Attachments in Email

    I have had my iPhone since December. I use my iphone for my work e-mail which is a Microsoft exchange server that I use Synchronica. At first I was able to read attachments, but no longer. Has anyone had any issues not being able to read attachments.

  • Unlocked mobile phone

    I boughgt an unlocked mpbile phone (order {removed per forum guidelines}) Blackberry 8230. The problem is that I can`t find the slot for the sim card. Does it have one? If not, why you don't mentio it in your offer? How can I solve the problem? Would

  • Managed Bean Best Practices

    Hi Are there any best practices for using Managed Beans? We plan to use our own custom-built JSF components. Need to understand how to design backing beans for performance/effort optimization. For example : 1. How to make managed beans thread-safe fo