cancel
Showing results for 
Search instead for 
Did you mean: 

How to update and delete telephone no in BAPI_BUPR_CONTP_ADDR_CHANGE

Former Member
0 Kudos

Hi All,

I have read lot of forum related to this. but still this problem exist.

I want to update the telephone no and email id of Contact person.

I am usingBAPI_BUPR_CONTP_ADDR_CHANGE

but it never allows to update or delete.

it gives message "Telephone number XXXXX / does not exist. Change/deletion not possible.

Please help.

Why it is not allowing change deletion.

1.logic to change any existing number

     ls_telx-telephone = 'X'.

      ls_telx-std_no = 'X'.

      ls_telx-updateflag = 'D'.

      append ls_telx to lt_telx.

      ls_teL1-telephone = LS_TEL-TELEPHONE .

      ls_teL1-CONSNUMBER = ls_tel-CONSNUMBER.

      ls_tel1-std_no = 'X'.

      APPEND LS_TEL1 TO LT_TEL1.

Then i am calling BAP

2. CALL FUNCTION 'BAPI_BUPR_CONTP_ADDR_CHANGE'

  EXPORTING

    businesspartner = 'BP no'

    contactperson   = 'CP no'

  TABLES

    bapiadtel      = lt_tel1

    bapiadtel_x     = lt_telx

    return          = lt_bapiret2.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  EXPORTING

    wait = 'X'.

I

Accepted Solutions (0)

Answers (3)

Answers (3)

peter_valjasek
Explorer
0 Kudos

Hi,

try to set:

ls_telx-consnumber = 'X'.

p.

Former Member
0 Kudos

Hi Arun,

Please try passing the consnumber value as a value between 001 and 999.

Thanks,

James

Former Member
0 Kudos

Hi James,

I have tyied that you said,but it does not work.

Could you give me a example?

Thanks,

Sophia.

Former Member
0 Kudos

HI,ARUN.

THE SAME ERROR OCCURRED IN MY FM. NOW ,DO YOU KNOW THE SOLUTION TO THIS QUESTION? I NEED YOUR HELP VERY MUCH. 

THANK YOU !