Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Customers telephone and email addresses cmd_ei_api=>

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

4 REPLIES 4

iftah_peretz
Active Contributor

Hey,

Did you look here ? Did you see the comment is it relevant? What about this ? - You can always set '000000000' as a phone no.

former_member185998
Active Participant
0 Kudos

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

tyrone_bradbury
Discoverer

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)

sanjay_deshpande4
Participant
0 Kudos

Thanks Tyrone.

I needed the solution very much.