Application Development and Automation 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: 
Read only

BAPI/Function module to mark customer as deleted

bruno_esperanca
Contributor
0 Likes
1,172

Dear community,

Is there still not a function module to mark a customer for deletion in SAP?

Thank you.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
998

There is a static method CMD_EI_API=>MAINTAIN_BAPI to update customer, did you try it, also method CMD_EI_API_EXTRACT=>GET_DATA to read curent values from DB and build first class parameter.

Regards,
Raymond

5 REPLIES 5
Read only

RaymondGiuseppi
Active Contributor
0 Likes
999

There is a static method CMD_EI_API=>MAINTAIN_BAPI to update customer, did you try it, also method CMD_EI_API_EXTRACT=>GET_DATA to read curent values from DB and build first class parameter.

Regards,
Raymond

Read only

0 Likes
998

I'll give it a go, thanks for the (lightening) fast answer!

Read only

0 Likes
998

Hi again Raymond.

I confirm your suggestion is working (I used method MAINTAIN instead of MAINTAIN_BAPI). Don't remember why 🙂

I have a new question now... to which I should probably create a new thread about... when I create a new customer, is there a way to extract the new number? I can't find any. It is also not saved in the KUN parameter ID.

Thank you, cheers!

Read only

998

If there is no such information in ES_MESSAGE_CORRECT and ES_MASTER_DATA_CORRECT then try executing cmd_ei_api_memory=>read_global_kna1_keys just after or before the commit.

Read only

0 Likes
998

Thanks a lot Raymond. I have "worked around" the problem by providing a number from the number range myself when a number is not provided. But if the necessity arises, I will try your suggestion and will let you know if it works.

Thanks again.

Best regards,
Bruno