10-24-2017 4:15 PM
Good day
Can anyone assist me. I have created an abap program to edit customer telephone and email details using the class cmd_ei_api=>. However i first need to delete all the telephone numbers for that customer who is being edit if they have any but im failing to do so using
cmd_ei_api=>maintain. Can you please assist with links or other ideas or samples on how i can acheive this.
Thank you in advance
Thomas
12-05-2017 8:57 PM
01-26-2018 7:32 AM
I'm struggling with this, too. I'm unable to delete phone numbers (i.e. overwrite existing numbers with blank). From this thread I got the idea of setting the CURRENT_STATE flag to 'X'. Yet no luck. The best solution so far is what Iftah suggests above - replace the number with some dummy value, e.g. '00000' or '-'.
01-19-2021 2:43 PM
Hi Thomas,
I know that I am responding to an old post - this answer for anyone who may experience the same issue.
With reference to the structure CVIS_EI_PHONE, in order to delete a Telephone number, specify:
- DATA-CONSNUMBER (of the number to be deleted)
- DATAX-CONSUMBER = 'X'
- set TASK = 'D'.
All the CONSNUMBERs can be obtained by first reading the Address data of the customer (you could use FM ADDR_GET_COMPLETE to read the address)
10-24-2021 2:21 PM