Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI to delete customer

hello everyone ,

I want to build a procedure which calls BAPI_CUSTOMER_* in WebAs, so that provide user to

operate (create ,edit ,delere customer :table: KNA1 ) in web environment (browser).

I have a problem. I try now in ERP system BAPI_CUSTOMER_DELETE to execute. but delete

operation is unsuccessful.

first appear 'TEST FUNCTION MODULE: Initial Screen', Import parameter: CUSTOMERNO , then i

input a customernumber which exists in table KNA1. then execute(F8) . Then appear 'Customer

Flag for Deletion: Initial Screen' , I already entered all(customer, company code , sales organization, distribution channel, division). and then ? how i can delete the customer?

Who can help me?


Former Member

Hi Yaning,

IN SAP Master data sometimes in not deleted from the master data tables.It will be only marked for deletion.

BUt this means that the customer/material/vendor is deleted for all practical purposes.

This bapi also does the same.

If loevm field is marked as 'X' you can't display it in xk03.Check for urself.

For testing,

Chcek a vendor in kna1 table and see if loevm field is space or not.

Also see in xk03 transaction.

If it is space, then do what i have said in my previos post.

It makes the kna1-loevm as 'X'.

now go to xk03 and give the vendor and press enter.

It says the vendor is not created.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question