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: 

Delele customer in table kna1

Former Member
0 Kudos

Hi All,

I want to delete a customer from table KNA1.

which Bapi can be used(Bapi should not call the standard transaction XD06).

Please help me...

Thanks in advance.

Kulvendra kumar

4 REPLIES 4

Former Member
0 Kudos

Please Refer this question and answer......

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?

****************

<b>Answer</b>Then Press Enter.

Choose the check boxes, all areas or General data on the next sxreen and say "save".

To check whether the customer has been succesfully marked for deletion or not, go to se11 and see in kna1 table the field LOEVM is 'X' or not.

************8

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 Kudos

'Bapi_customer_delete' call the standard transaction Xd06.

I want to delete the customer without using transaction xd06.

Is it possible to delete the customer without calling xd06.

Thanks for last reply..

With Regards.

Kulvendra kumar

0 Kudos

hi Kulvendra,

what is the problem with XD06?

thanks

ec

Former Member
0 Kudos

HI

try this BAPI

BAPI_CUSTOMER_DELETE

Regards

Shiva