BAPI_BUPA_CENTRAL_CHANGE update in FM

Hi all,
I am entering an BP no in FM BAPI_BUPA_CENTRAL_CHANGE . The FM is Running but not showing any result in Return table and the data is not getting changed too.Why is it so? any ideas guys?.
Please reply soon.

DATA: LT_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
  CALL FUNCTION 'BUPA_ACT_ANALYZE_FOR_BAPI'
    EXPORTING
      IV_BP_NUMBER = BUSINESSPARTNER
      IV_ACTIVITY  = 'CHAN'
    TABLES
      CT_RESULTS   = LT_RETURN.
  LOOP AT LT_RETURN WHERE TYPE CA 'AE'.
    EXIT.
  ENDLOOP.
  IF LT_RETURN IS INITIAL.
    IF NOT ADDRESSDUPLICATES IS REQUESTED.
      DUPLICATE_MESSAGE_TYPE = '-'.
    endif.
    CALL FUNCTION 'BUPA_CENTRAL_CHANGE'
      EXPORTING
        IV_PARTNER             = BUSINESSPARTNER
        IS_DATA                = CENTRALDATA
        IS_DATA_PERSON         = CENTRALDATAPERSON
        IS_DATA_ORGAN          = CENTRALDATAORGANIZATION
        IS_DATA_GROUP          = CENTRALDATAGROUP
        IS_DATA_X              = CENTRALDATA_X
        IS_DATA_PERSON_X       = CENTRALDATAPERSON_X
        IS_DATA_ORGAN_X        = CENTRALDATAORGANIZATION_X
        IS_DATA_GROUP_X        = CENTRALDATAGROUP_X
        IV_VALID_DATE          = VALID_DATE
        IV_DUPLICATE_MESSAGE_TYPE = DUPLICATE_MESSAGE_TYPE
      TABLES
        IT_ADTEL_ADDR_IND      = TELEFONDATANONADDRESS
        IT_ADFAX_ADDR_IND      = FAXDATANONADDRESS
        IT_ADTTX_ADDR_IND      = TELETEXDATANONADDRESS
        IT_ADTLX_ADDR_IND      = TELEXDATANONADDRESS
        IT_ADSMTP_ADDR_IND     = E_MAILDATANONADDRESS
        IT_ADRML_ADDR_IND      = RMLADDRESSDATANONADDRESS
        IT_ADX400_ADDR_IND     = X400ADDRESSDATANONADDRESS
        IT_ADRFC_ADDR_IND      = RFCADDRESSDATANONADDRESS
        IT_ADPRT_ADDR_IND      = PRTADDRESSDATANONADDRESS
        IT_ADSSF_ADDR_IND      = SSFADDRESSDATANONADDRESS
        IT_ADURI_ADDR_IND      = URIADDRESSDATANONADDRESS
        IT_ADPAG_ADDR_IND      = PAGADDRESSDATANONADDRESS
        IT_ADCOMREM_ADDR_IND   = COMMUNICATIONNOTESNONADDRESS
        IT_ADCOMUSE_ADDR_IND   = COMMUNICATIONUSAGENONADDRESS
        IT_ADTEL_ADDR_IND_X    = TELEFONDATANONADDRESSX
        IT_ADFAX_ADDR_IND_X    = FAXDATANONADDRESSX
        IT_ADTTX_ADDR_IND_X    = TELETEXDATANONADDRESSX
        IT_ADTLX_ADDR_IND_X    = TELEXDATANONADDRESSX
        IT_ADSMTP_ADDR_IND_X   = E_MAILDATANONADDRESSX
        IT_ADRML_ADDR_IND_X    = RMLADDRESSDATANONADDRESSX
        IT_ADX400_ADDR_IND_X   = X400ADDRESSDATANONADDRESSX
        IT_ADRFC_ADDR_IND_X    = RFCADDRESSDATANONADDRESSX
        IT_ADPRT_ADDR_IND_X    = PRTADDRESSDATANONADDRESSX
        IT_ADSSF_ADDR_IND_X    = SSFADDRESSDATANONADDRESSX
        IT_ADURI_ADDR_IND_X    = URIADDRESSDATANONADDRESSX
        IT_ADPAG_ADDR_IND_X    = PAGADDRESSDATANONADDRESSX
        IT_ADCOMREM_ADDR_IND_X = COMMUNICATIONNOTESNONADDRESSX
        IT_ADCOMUSE_ADDR_IND_X = COMMUNICATIONUSAGENONADDRESSX
        ET_ADDR_DUPLICATES     = ADDRESSDUPLICATES
        ET_RETURN              = RETURN.
  ENDIF.
  LOOP AT LT_RETURN.
    COLLECT LT_RETURN INTO RETURN.
  ENDLOOP.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT = ''
    IMPORTING
      RETURN = RETURN.
"COMMIT WORK.
Inputs to Fm:
Business partner:      1000058
Central data:              Navin Chettiar
CENTRALDATA_X  :    X         X
Regards,
Navin

Similar Messages

  • About FM  BAPI_BUPA_CENTRAL_CHANGE update

    Hi all,
    I am entering an BP no in FM BAPI_BUPA_CENTRAL_CHANGE . The FM is Running but not showing any result in Return table and the data is not getting changed too.Why is it so? any ideas guys?.
    Please reply soon.

    Hi,
    Please check you are possing correct value in table .....X (end with X)
    e.g.
    If you are changing TELEFONDATANONADDRESS remember you should have correct values set in TELEFONDATANONADDRESSX.
    Also check field in UPDATEFLAG in table TELEFONDATANONADDRESSX.
    'U' - Update
    'D' - Delete
    Where ever you make changes replace with 'X'
    suppose u r changing TEL_NO then in TELEFONDATANONADDRESSX-TEL_NO set as 'X'
    I hope it will work.
    Regards,
    Nilesh P.

  • 'BAPI_BUPA_CENTRAL_CHANGE' + UPDATE

    Hello Friends,
    I am trying to update the data of the SAP BP while using the 'BAPI_BUPA_CENTRAL_CHANGE' BAPI. but its seems not me working, However I am providing all required feilds to the Function!
    Here is the code segment!
    DATA: businesspartner TYPE bapibus1006_head-bpartner.
    DATA: person TYPE bapibus1006_central.
    Data: personData type BAPIBUS1006_CENTRAL_PERSON.
    persondata-firstname = 'ammar'.
    persondata-lastname  = 'zaidi'.
    data: my_Table type standard table of BAPIRET2 with default key,
          wa_myTab like line of my_Table.
    move 0000000001 to businesspartner.
    CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
      EXPORTING
        BUSINESSPARTNER                     = businesspartner
        CENTRALDATA                         = person
        CENTRALDATAPERSON                   = persondata
    TABLES
       RETURN                               = my_Table .
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    LOOP AT my_Table INTO wa_myTab.
    write my_Table.
    ENDLOOP.
    Can any one please point out for me that what I am missing!? or any suggestion,
    Many thanks
    Marek
    PS: when I try to print the return table, it gives me error cant convert to character type feild?? how I can write the return table??

    Hello Friends,
    does any one here any idea, what is possibly wronge in the following code segment ??
    DATA: businesspartner TYPE bapibus1006_head-bpartner.
    DATA: person TYPE bapibus1006_central.
    Data: personData type BAPIBUS1006_CENTRAL_PERSON.
    data: my_Table type standard table of BAPIRET2 with default key,
          wa_myTab like line of my_Table.
    move '000000001' to businesspartner.
    CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
      EXPORTING
        BUSINESSPARTNER                     = businesspartner
        CENTRALDATA                         = person
        CENTRALDATAPERSON                   = persondata
    TABLES
       RETURN                               = my_Table .
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    LOOP AT my_Table INTO wa_myTab.
    write wa_myTab-type.
    write wa_myTab-MESSAGE.
    write wa_myTab-ID.
    ENDLOOP.
    I am trying to change the name of the SAP BP, but its not working ??
    Any idea pls
    Many thanks
    Marek

  • Trying to update the business partner using BAPI_BUPA_CENTRAL_CHANGE

    Hi all ,
    i am tryibg to create a function module which updates the first name, last name, email id of the business partner that i already created. the return table shows zero entries and i dont find any udate being done for the business partner if i go and check in the respective table. can some one tell me what is the problem.
    Import paramters for my function module are business partner number, first name, last name, email -d.
    FUNCTION Z_CHANGE_BP2.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(CUST_NO) TYPE  BU_PARTNER
    *"     VALUE(FIRST_NAME) TYPE  BU_NAMEP_F
    *"     VALUE(LAST_NAME) TYPE  BU_NAMEP_L
    *"     VALUE(EMAIL_ID) TYPE  AD_SMTPADR
    *"  TABLES
    *"      IT_RETURN2 STRUCTURE  ZRETURN1 OPTIONAL
    *"      IT_RETURN4 STRUCTURE  ZRETURN1 OPTIONAL
    Defining the internal tables used in BAPI BAPI_BUPA_CENTRAL_CHANGE.
    DATA: it_CENTRALDATA TYPE STANDARD TABLE OF  BAPIBUS1006_CENTRAL  WITH HEADER LINE.
    DATA: it_CENTRALDATAPERSON TYPE STANDARD TABLE OF BAPIBUS1006_CENTRAL_PERSON  WITH HEADER LINE.
    DATA: it_E_MAILDATANONADDRESS TYPE STANDARD TABLE OF  BAPIADSMTP WITH HEADER LINE.
    DATA: it_RETURN1  TYPE STANDARD TABLE OF  BAPIRET2 WITH HEADER LINE.
    DATA: it_RETURN3  TYPE STANDARD TABLE OF  BAPIRET2 WITH HEADER LINE.
    ****Values for seacrh term1, search term2 of it_CENTRALDATA
    it_CENTRALDATA-SEARCHTERM1 = FIRST_NAME.
    it_CENTRALDATA-SEARCHTERM2 = LAST_NAME.
    APPEND it_CENTRALDATA TO it_CENTRALDATA.
    first name, last name of it_CENTRALDATAPERSON
    it_CENTRALDATAPERSON-FIRSTNAME = FIRST_NAME.
    it_CENTRALDATAPERSON-LASTNAME  = LAST_NAME.
    APPEND it_CENTRALDATAPERSON TO it_CENTRALDATAPERSON.
    Value for E_MAIL of it_TELEFONDATANONADDRES-
    it_E_MAILDATANONADDRESS-E_MAIL = EMAIL_ID.
    APPEND it_E_MAILDATANONADDRESS  TO it_E_MAILDATANONADDRESS.
    Call the BAPI BAPI_BUPA_CENTRAL_CHANGE
    CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
      EXPORTING
        BUSINESSPARTNER      = CUST_NO
        CENTRALDATA               =  it_CENTRALDATA
        CENTRALDATAPERSON  = it_CENTRALDATAPERSON
      TABLES
    E_MAILDATANONADDRESS  = it_E_MAILDATANONADDRESS
        RETURN                             = it_RETURN1.
    Call Commit work
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          = 'X'
    IMPORTING
      RETURN        = it_RETURN3.
    ENDFUNCTION.

    Hi,
    Pass values to the Parameter CENTRALDATA_X   in your FM 'BAPI_BUPA_CENTRAL_CHANGE'
    Something Like:
    CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
    EXPORTING
    businesspartner = bpartner
    centraldata = centraldatadetail
    centraldataperson = centraldataperson
    CENTRALDATAORGANIZATION =
    CENTRALDATAGROUP =
    centraldata_x = centraldata_x
    centraldataperson_x = centraldataperson_x
    CENTRALDATAORGANIZATION_X =
    CENTRALDATAGROUP_X =
    TABLES
    return = return.
    Refer to:
    problem with 'BAPI_BUPA_CENTRAL_CHANGE'
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-bupa_central_change-need-help-549117

  • Mass update of BUT000-Z field, but can't use FM BAPI_BUPA_CENTRAL_CHANGE

    After a data load we have realised that one of the Z fields has not been populated with data and so as a result of this I am attempting to write a quick program to update this Z field. The field is located in table BUT000, but of course I need to update this using the appropriate FM rather than direct table update.
    There seems to be a few' BUT000' FM's and a number of 'CRM_BUPACHANGE' FM's as well. Has anyone used an FM for such an update before?. I think I need to identify the best FM for the job.
    I have also looked at FM BAPI_BUPA_CENTRAL_CHANGE as well, but that does NOT contain the Z field to change.
    With regards
    J Sapora

    Hi Markus,
    I agree with you, but MASS is something very straight forward, plus, don't support paralelization, so if you want to change a smalll amout of data or you really don't care about performance (I mean for the process is the same if the update takes 1 or 4 hours) and the changes doesn't imply a business logic, the user has all the control of which fileds should be changed and for which value, then it's a good option.
    But when extra logic is needed, Mass can become a nightmare, I will write a blog about this if I have the time.
    Cheers!
    Luis

  • 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.

  • Business Partner update problem

    We are using the BAPI FM BAPI_ISUPARTNER_CHANGE to update the Email address of the BP.
    On call to the BAPI the followign parameters are passed:
    PARTNER       = bp value
    PARTNERDATA   = mandatory stucture with blank values
    PARTNERDATAX  = mandatory stucture with blank values
    E_MAILDATANONADDRESS-E_MAIL = new email id
    E_MAILDATANONADDRESSX-E_MAIL = X.
    A BAPI_TRANSACTION_COMMIT is called after the above call.
    But the BP email is not getting updated. Appreciate ur ideas.

    I think that you should also provide the BP ID for structure PARTNERDATA as it contains the information for the BP that you want to change.
    Alternatively, you can try to use FM "BUPA_CENTRAL_CHANGE" to update the email address for the BP. Check also following links for explanations about how to use this FM:
    problem with 'BAPI_BUPA_CENTRAL_CHANGE'
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-bupa_central_change-need-help-549117
    Hope it helps.

  • Function modul for updating field contact in tab but000

    Hello experts,
    does anybody know a fm in order to update the field
    'contact' in tx bp , in tab strip status ?
    I have to update this field for many cp and in tx bp I only
    can select this field on tab strib status.
    Now I want to make a programm and so I need a fm.
    Thanks for help
    Gerd

    Hi Gerd,
    Look at function module 'BAPI_BUPA_CENTRAL_CHANGE' . The importing parameter CENTRALDATA has got field CONTACTALLOWANCE and that is what you are aiming to change.
    Don't forget to commit the changes.
    Cheers,
    Surendar
    Edited by: Surendar Sangwan on May 15, 2008 3:10 PM

  • BP update

    Hi All,
    I have a requirement to update the name4 field of Business partner of type organization in tcode 'BP' of sap crm.Name4 field is used for some temporory purpose and now it has to be replaced by space.
    I am using the BAPI 'BAPI_BUPA_CENTRAL_CHANGE' to update this field but it is not updating..can any body pls help me..how can this be done..
    Reagrds,
    Sai

    Hi Sai,
    It has to work.
      CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
        EXPORTING
          BUSINESSPARTNER           = partner
          CENTRALDATAORGANIZATION   = wa_central_org
          CENTRALDATAORGANIZATION_X = wa_central_org_x
        TABLES
          RETURN                    = TAB_ERROR.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = 'X'.
    Try using only this structures. Hope it helps.
    Regards,
    Mon

  • BAPI Update

    Hello Friends,
    I am using the BAPI "BAPI_BUPA_CENTRAL_CHANGE", in order to update the SAP Business Partner data. But dont know what is wronge, its not working, here is my sample code.
    ftemplate = repository.getFunctionTemplate("BAPI_BUPA_CENTRAL_CHANGE");
    ftemplatecommit = repository.getFunctionTemplate("BAPI_TRANSACTION_COMMIT");
    if(ftemplate != null) {
    // Create a function from the template
    function = ftemplate.getFunction();
    commit   = ftemplatecommit.getFunction();
    // Set up Import Parameters
    function.getImportParameterList().setValue("0000000001", "BUSINESSPARTNER");
    str = function.getImportParameterList().getStructure("CENTRALDATAPERSON");
    str.setValue("Ammar","FIRSTNAME");
    str.setValue("Rizvi","LASTNAME");
    JCO.Table table = function.getTableParameterList().getTable("RETURN");
    if (table.getNumRows() >0){
    System.out.println(table.getString("MESSAGE"));
    mConnection.execute(function);
    mConnection.execute(commit);
    After executing the above code, when i check the firstName and lastName of the specified Business Partner, it shows me the same old values.
    It would be very nice if some one pls let me know what is possibally wronge with my code!
    Many thanks!
    Marek

    Hello Gregor,
    Thanks for your reply,
    I have seted the CENTRALDATAPERSON_X, structure also, but still not updating the business partner.
    I have added these lines of code,
    str = function.getImportParameterList().getStructure("CENTRALDATAPERSON_X");
    str.setValue("Ammar","FIRSTNAME");
    str.setValue("Rizvi","LASTNAME");
    Can you pls help me in identifying the possible problem,
    Many thanks
    Marek
    Message was edited by: Marek Jöricke

  • Prpblem with 'BAPI_BUPA_CENTRAL_CHANGE'

    Dear friends
      I am updating a field using the bapi_bupa_central_change bapi. I m updating but000 tables xdele archive flag indicator to yes (x). My problem is i am failed to update the table. would you like to tell me where i am making mistakes..
    any correstion or suggetion will be great help of mine... thanking you,,,
    regards naim
    i am giving you the code.
    data: wa_bpartner type BAPIBUS1006_HEAD,
          wa_arch_flag type BAPIBUS1006_CENTRAL.
    loop at i_merge_p into wa_i_merge.
    read table i_merge_p into wa_i_merge with key idnumber = wa_i_casep-idnumber.
       if sy-subrc = 0.
          wa_bpartner-bpartner = wa_i_merge-partner.
          wa_arch_flag-CENTRALARCHIVINGFLAG = 'X'.
       endif.
    data : cdata like BAPIBUS1006_CENTRAL .
           cdata = wa_arch_flag-CENTRALARCHIVINGFLAG.
    CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
         EXPORTING
          BUSINESSPARTNER = wa_bpartner-bpartner
          CENTRALDATA     = cdata.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
           WAIT         = ''
          IMPORTING
           RETURN       = Return_L.
    endloop.

    Hi Naim,
    Refer the following piece of code and match it with yours. Here whatever fields of central data you need to update, pass the flag 'X' for those fields in centraldata_x.
    *&      Form  f4116_change_central_data
    *       Change the Central Data
      FORM f4116_change_central_data.
        DATA : wa_centraldataorg_x TYPE bapibus1006_central_organ_x,
               wa_centraldata_x    TYPE bapibus1006_central_x.
        CLEAR   : wa_return_bp.
        REFRESH : git_return_bp.
        wa_centraldataorg_x-legalorg  = gc_x.
        wa_centraldataorg_x-legalform = gc_x.
        wa_centraldataorg_x-name1     = gc_x.
        wa_centraldata_x-partnertype     = gc_x.
        wa_centraldata_x-title_key       = gc_x.
        wa_centraldata_x-partnerexternal = gc_x.
    *   Update the Central Information for the Business Partner
        CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
          EXPORTING
            businesspartner           = gv_customer
            centraldata               = wa_central_data
            centraldataorganization   = wa_centraldataorganization
            centraldata_x             = wa_centraldata_x
            centraldataorganization_x = wa_centraldataorg_x
          TABLES
            return                    = git_return_bp.
        READ TABLE git_return_bp INTO wa_return_bp
                            WITH KEY type = gc_error.
        IF sy-subrc EQ 0.
    *     Set IDOC in error(Business Partner Change Failed)
          PERFORM fill_err_log USING gc_x gc_space
                                     gc_i gc_146
          gv_flag = gc_x.
        ENDIF.
      ENDFORM.                    " f4116_change_central_data
    <b>Reward points if it helps.</b>
    Message was edited by: Amit Mishra

  • Updating but000- Augrp when delta queue is created

    Hi All,
             my requirement is i need to fill the augrp field in but000 when a account group is changed in R/3
    i have tried using FM below in badi BUPA_FRG0040_UPDATE and in GENERAL update but it throws an error <b>NESTED_PERFORM_ON_COMMIT caller: SAPLB
    GNERAL_BADI_CALL</b> CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
                  EXPORTING
                    BUSINESSPARTNER = L_BUT000-PARTNER
                    CENTRALDATA     = GET_CENTRAL
                    CENTRALDATA_X   = CENTRAL_X.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    Can any one help me out with this .....
    Thanks.

    The reason that the delta for the changes you made to the material showed up in the delta queue for 2LIS_03_BF, instead of 2LIS_03_UM, is due to the difference sources for that data.
    The MKPF and MSEG (Material Movements) tables, along with MBEW (Material Valuations) table, are the source for the 2LIS_03_BF DataSource and not for the 2LIS_03_UM DataSource. The 2LIS_03_UM DataSource is sourced by the BKPF and BSEG (Accounting Documents) tables.
    Since you changed the material price and added new material prices, there were no accounting transactions that took place and that is why no delta went to the 2LIS_03_UM DataSource delta queue. Once you have an accouting transaction take place, with an associated material movement, then you will have a delta generated for the 2LIS_03_UM DataSource.

  • CRM BP, update sales area (organization)

    Hi, I need to update the data of the BP sales: sales group, sales office and District.  It knows somebody some function that does it?
    Thanks in advance

    Hi Placido,
    did you find a way to solve your problem? I've got the same problem. And in BAPI_BUPA_CENTRAL_CHANGE I didn't find the right fields to change the district, sales office and sales group.
    Kind regards
    Diana

  • BAPI_BUPA_CENTRAL_CHANGE

    Hi Friends,
    please help me out!!!!
    am changing the search terms of a BP using FM
    BAPI_BUPA_CENTRAL_CHANGE
    and also i've used BAPI_TRANSACTION_COMMIT....
    But still the DB is not updating and it is not throwing any error......
    here is the  piece of code....
    WA_CENTRALDATA-SEARCHTERM1 = 'S1'.
    WA_CENTRALDATA-SEARCHTERM2 = 'S2'.
    WA_CENTRALDATA-CENTRALBLOCK = C_X.
    *WA_CENTRALDATA-CENTRALARCHIVINGFLAG = 'X'.
    WA_CENTRALDATA_X-SEARCHTERM1 = 'S1'.
    WA_CENTRALDATA_X-SEARCHTERM2 = 'S2'.
    WA_CENTRALDATA_X-CENTRALBLOCK = C_X.
    WA_CENTRALDATA_X-CENTRALARCHIVINGFLAG = C_X.
    V_BP = '515'.
    CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
      EXPORTING
        BUSINESSPARTNER                     = V_BP
       CENTRALDATA                         = WA_CENTRALDATA
      CENTRALDATAPERSON                   =
      CENTRALDATAORGANIZATION             =
      CENTRALDATAGROUP                    =
       CENTRALDATA_X                       = WA_CENTRALDATA_X
      CENTRALDATAPERSON_X                 =
      CENTRALDATAORGANIZATION_X           =
      CENTRALDATAGROUP_X                  =
       DUPLICATE_MESSAGE_TYPE              = 'E'
    TABLES
      TELEFONDATANONADDRESS               =
      FAXDATANONADDRESS                   =
      TELETEXDATANONADDRESS               =
      TELEXDATANONADDRESS                 =
      E_MAILDATANONADDRESS                =
      RMLADDRESSDATANONADDRESS            =
      X400ADDRESSDATANONADDRESS           =
      RFCADDRESSDATANONADDRESS            =
      PRTADDRESSDATANONADDRESS            =
      SSFADDRESSDATANONADDRESS            =
      URIADDRESSDATANONADDRESS            =
      PAGADDRESSDATANONADDRESS            =
      COMMUNICATIONNOTESNONADDRESS        =
      COMMUNICATIONUSAGENONADDRESS        =
      TELEFONDATANONADDRESSX              =
      FAXDATANONADDRESSX                  =
      TELETEXDATANONADDRESSX              =
      TELEXDATANONADDRESSX                =
      E_MAILDATANONADDRESSX               =
      RMLADDRESSDATANONADDRESSX           =
      X400ADDRESSDATANONADDRESSX          =
      RFCADDRESSDATANONADDRESSX           =
      PRTADDRESSDATANONADDRESSX           =
      SSFADDRESSDATANONADDRESSX           =
      URIADDRESSDATANONADDRESSX           =
      PAGADDRESSDATANONADDRESSX           =
      COMMUNICATIONNOTESNONADDRESSX       =
      COMMUNICATIONUSAGENONADDRESSX       =
       RETURN                              = IT_RETURN.
      ADDRESSDUPLICATES                   =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =

    Hi
    Try giving
    WA_CENTRALDATA_X-SEARCHTERM1 = 'X'.
    WA_CENTRALDATA_X-SEARCHTERM2 = 'X'.
    WA_CENTRALDATA_X-CENTRALBLOCK = 'X'.
    WA_CENTRALDATA_X-CENTRALARCHIVINGFLAG ='X'.
    It will solve your problem

  • Update BP first and last name. pls helpp

    HI fnds,
    I want to update the contact person bp first name last name and email id.
    is there any function module where i can use to update the above 3 values of a contact person,
    pls help me..thank a ton
    niraja

    Hi,
    Contact Person is a kind of Business Partner. You can use the Function Module
    BAPI_BUPA_CENTRAL_CHANGE to change the BP. You can change the Personal Data of the BP with this function module. For address change you can use the FM BAPI_BUPA_ADDRESS_CHANGE. Call the FM BAPI_BUPA_ADDRESS_GETDETAIL to get the details of the BP.
    Hope this will help.
    Thanks,
    Samantak.

Maybe you are looking for

  • Crystal Report and Terminal Service 2008 (registry trouble ?)

    Hi to everyone, I develop an account software that use Crystal Report to obtain reporting capabilities. My software supports three runtimes of Crystal Reports: release 8, release 9 and release XI. The user can configure the application and choose whi

  • Error: Delegate has not been set

    Hi, I am using IBM websphere Studio Application Developer (Windows) version: 5.1.1 to develop EJBs for my company. Recently, I wrote an EJB to generate monthly sales summary report which actually retrieve a lot of data from the database. When I teste

  • Database usage with Motion and/or Shake

    Is it possible to create templates in motion that pull information from databases to fill drop zones? Since Shake uses c programming, can you merge a database with shake to create video content? For example, if you create a database and list in that

  • Multiple sale orders

    Hi Experts I have a situation where a customer projects has two sale orders attached to the same project. - Sale order for the services - Sale order for the expense on the project The reason being is that the customer issues two separate  purchase or

  • Validation Of  selection screen in Module pool

    Hi Guru, I am giving Plant as input at selection screen. Below that I am creating one table control at selection screen. I have to do validation of the Plant at the selection screen. I am doing that IN PAI module. But when i give wrong plant at selec