Skip to Content
0
Former Member
Sep 30, 2014 at 01:01 PM

How to update and delete telephone no in BAPI_BUPR_CONTP_ADDR_CHANGE

293 Views

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