04-19-2006 2:59 PM
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?
Thanks.
04-19-2006 3:07 PM
Hi Yaning,
you can't delete customer with that bapi.
try:
set loevm with that bapi (or transaction xd06)
run report <b>sapf056</b> to archive customers
Andreas
04-19-2006 3:05 PM
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.
Thats it.
Regards,
Ravi
04-19-2006 3:26 PM
hi Ravi ,
I have done with your introduction , however this customer is still in table KNA1. and how i can see the field LOVEM?
thanks.
Yaning
04-19-2006 3:07 PM
Hi Yaning,
you can't delete customer with that bapi.
try:
set loevm with that bapi (or transaction xd06)
run report <b>sapf056</b> to archive customers
Andreas
04-19-2006 3:30 PM
hi Andreas,
can you tell me ,how i can set the field LOEVM.
please give me a detailed instruction.
thanks
Yaning
04-19-2006 3:33 PM
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.
Regards,
Ravi
04-19-2006 4:06 PM
Hi Yaning,
use batch inp. procedure like in fm FI_ACCRECV_LOEVM_BATCH_INPUT
Andreas
04-19-2006 4:12 PM
Hi Ravi,
thank U very much!
correct!
as you have said, the deleted vendor is marked as 'X'.
but yet a Problem, in Transaction xk03 i test ,whether the customer is deleted or not. The marked 'X' vendor has not been created. but other vendors which are not marked as 'X' , it says also, the vendor has not been created.
why?
can you tell me , where the problem appears?
thanks
Yaning
04-19-2006 4:25 PM
HI Yaning,
I don't know the exact reason but for materials which can be displayed in xk03 before using the BAPI, will not be displayed later(after the usage).
But for the materials that cannot be displayed in xk03 even before the usage of the bapi there may be some other reason.
Please reward if my earlier posts helped you.
Regards,
Ravi