cancel
Showing results for 
Search instead for 
Did you mean: 

Probleme in updateing telephone number in bapi BAPI_BUPA_CENTRAL_CHANGE

Former Member

Hi All,

I am using BAPI_BUPA_CENTRAL_CHANGE

BAPI_BUPA_ADDRESS_CHANGE

for business partner change.

If BP contains telephone number then it is updating with new one but if BP does not contain any telephone number then it is is not changing or addding new no. It throws fallowing warning message with no change.

' Table BAPIADTEL entry to be changed not found in target system '

Please suggest as soon as possible.

Thanks

Swarup

View Entire Topic
Former Member

Hi

I had teh same problem. i needed to change the email's address.

I used this BAPI, Check part of my code:


    call function 'BAPI_BUPA_ADDRESS_GETDETAIL'
      exporting
        businesspartner       = aux-bp
*   ADDRESSGUID           =
*   VALID_DATE            = SY-DATLO
     importing
       addressdata           = it_addressdata
     tables
       bapiadtel             = it_bapiadtel
       bapiadfax             = it_bapiadfax
       bapiadttx             = it_bapiadttx
       bapiadtlx             = it_bapiadtlx
       bapiadsmtp            = it_bapiadsmtp
       bapiadrml             = it_bapiadrml
       bapiadx400            = it_bapiadx400
       bapiadrfc             = it_bapiadrfc
       bapiadprt             = it_bapiadprt
       bapiadssf             = it_bapiadssf
       bapiaduri             = it_bapiaduri
       bapiadpag             = it_bapiadpag
       bapiad_rem            = it_bapiad_rem
       bapicomrem            = it_bapicomrem
       addressusage          = it_addressusage
       bapiadversorg         = it_bapiadversorg
       bapiadverspers        = it_bapiadverspers
       bapiaduse             = it_bapiaduse
       return                = it_return.
    if it_return[] is initial.
      if it_bapiadsmtp[] is initial.
        refresh it_bapiadsmtp.
        move: aux-email to it_bapiadsmtp-e_mail,
              '001' to it_bapiadsmtp-consnumber,
              'X' to it_bapiadsmtp-home_flag,
              'X' to it_bapiadsmtp-std_no.
        append it_bapiadsmtp.
****Comunication type
        move 'INT' to it_addressdata-comm_type.
      else.
        read table it_bapiadsmtp with key std_no = 'X'.
        if sy-subrc eq 0.
          move: aux-email to it_bapiadsmtp-e_mail.
          modify it_bapiadsmtp index sy-tabix.
        endif.
      endif.
      call function 'BAPI_BUPA_ADDRESS_ADD'
        exporting
          businesspartner              = aux-bp
          addressdata                  = it_addressdata
*   DUPLICATE_MESSAGE_TYPE       =
*   ACCEPT_ERROR                 = ' '
* IMPORTING
*   ADDRESSGUID                  =
       tables
*   BAPIADTEL                    =
*   BAPIADFAX                    =
*   BAPIADTTX                    =
*   BAPIADTLX                    =
         bapiadsmtp                   = it_bapiadsmtp
*   BAPIADRML                    =
*   BAPIADX400                   =
*   BAPIADRFC                    =
*   BAPIADPRT                    =
*   BAPIADSSF                    =
*   BAPIADURI                    =
*   BAPIADPAG                    =
*   BAPIAD_REM                   =
*   BAPICOMREM                   =
*   ADDRESSUSAGE                 =
*   BAPIADUSE                    =
*   ADDRESSDUPLICATES            =
         return                       = it_return.
      if it_return[] is initial.
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait = 'X'.
******

Regards

Gregory

Former Member
0 Kudos

Thanks it works