10-09-2007 1:29 PM
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
10-09-2007 1:31 PM
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.
10-09-2007 2:28 PM
'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
10-09-2007 2:35 PM
10-09-2007 1:35 PM