Skip to Content
avatar image
Former Member

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?

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 19, 2006 at 02: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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Apr 19, 2006 at 02: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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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