Skip to Content

BAPI to flag customer as deleted?

Hi,

I'm looking for BAPI which I can use to set KNA1-LOEVM "Central Deletion Flag for Master Record" for particular customer.

Is there such a BAPI available? If not how to handle such a requirement? Basically I need to mark customer for deletion.

Also is there a BAPI to delete customer directly?

thanks

m./

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 01, 2014 at 08:41 PM

    You can use class CMD_EI_API. You can find some document about in ind SDN.

    Generaly, first call:

    CMD_EI_API=>INITIALIZE( ).

    Then call method MAINTAIN_BAPI, field to chenge put in parameter IS_MASTER_DATA (few levels of structure).

    If You need update customer from external system, You need to write your "Z" remote-enabled function which fills parameters and calls methods.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 01, 2014 at 04:48 PM

    Hello Martin,

    I searched se37 with BAPI*CUST*DEL and found BAPI_CUSTOMER_DELETE.

    Can you quickly try with this FM and check if it can set KNA1-LOEVM as 'X'

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

    • Well, yes you can use any FM from external system as long as it is RFC enabled. However if there is a CALL TRANSACTION used which run in dialog you need to be connected into that SAP system via GUI to use such an BAPI. SAP calls such a BAPI as Dialog. Means dialog with a user is required and it cannot be executed in the background.

      My case is that I need to will call this BAPI from external system without connection to SAP GUI or SAP user.

      thanks

      m./