Skip to Content

BAPI/Function module to mark customer as deleted

Feb 13, 2017 at 02:29 PM


avatar image

Dear community,

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

Thank you.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Raymond Giuseppi
Feb 13, 2017 at 02:33 PM

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.


Show 4 Share
10 |10000 characters needed characters left characters exceeded

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


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!


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.


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,