Skip to Content
0

customer - deletion flag to be set via BAPI

Apr 13 at 04:45 PM

154

avatar image

hi all,

I asked this question some time back but recently I came across the same requirements. I do not want to use the same solution (custom BAPI) I did back then.

So here the question: I need to set a "Central Deletion Flag for Customer Master Record". This is basically update of field LOEVM in KNA1 table. I need to do this via interface form 3rd party application. Is there any BAPI I can use for setting up the flag?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Jelena Perfiljeva
Apr 17 at 07:54 PM
3

What is the problem with using the old solution? To my knowledge, SAP is not delivering any new BAPIs for ECC lately, so whatever we had in 2014 is pretty much still the same in 2018. (Julin can correct me if I'm wrong.)

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Jelena,

thanks for your reply. The only issue with my old solution is that it is using custom BAPI that subsequently calls methods of class CMD_EI_API. My aim is to prevent the creation of anything custom... I want to stay as close to SAP standard functions as possible.

As per SAP Note " 2561195 - Central Deletion Flag for Customer/Supplier LOEVM in S4" it looks like there is a BAPI function for S4H based systems. I wonder why this is not available in predecessors of S4H...

cheers

0

S/4HANA is very different from ECC. There were many changes not just in functionality but also at the DB level. And, for example, S4 uses "business partner" functionality for customers and vendors, which is different from what we have in ECC. When the DB tables/fields do not exist in an earlier release, it can be impossible to down-port an API to that release. Same problem we're dealing sometimes even within ECC: if your SP level is too low, at some point you might not even be able to install a note because the dependencies and missing objects are way too many.

And I'm guessing SAP is not very interested in investing time in ECC anymore since they want to take it off support in 2025 and want the customers to buy S/4HANA instead. That's the gist of it.

I can relate to the "use standard" sentiment but, unfortunately, when a standard solution simply does not exist we just need to make do. I'd say the customers should also probably decide how much to invest in ECC development right now if come 2025 they could be running S4 or even a non-SAP product.

1

Just found an SCN wiki entry stating that there is no standard BAPI to maintain customer/vendor MD. Other ways how to maintain are batch input or ALE/IDcos,

https://wiki.scn.sap.com/wiki/display/ERPSCM/SAP+BAPI+to+create+Vendor+Master+Data+or+Customer+Master+Data

0

Closing this question seems there is no standard BAPI to set a deletion flag for the customer that wouldn't run in dialog mode.

thank you all

1
Julin Xin
Apr 15 at 04:30 AM
0

Hi Martin,

Are you in ERP or S/4HANA?

Thanks.

Best regards,

Julin Xin

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Julin,

I'm on ECC 6 system not on S/4HANA.

thanks

0
avatar image
Former Member May 14 at 10:37 AM
0

Hi Martin,

To set a "Central Deletion Flag for Customer Master Record" there is a BAPI

FM to set deletion flag for customer: "BAPI_CUSTOMER_DELETE"

CALL FUNCTION 'BAPI_CUSTOMER_DELETE' "Delete Customer Master Online
  EXPORTING
    customerno =                " customer_id  Number of the Customer to be Deleted
  IMPORTING
    return =                    " bapiret1 .     Return Parameter

Thanks & Regards
Srujana
Show 2 Share
10 |10000 characters needed characters left characters exceeded

unfortunately, the BAPI BAPI_CUSTOMER_DELETE just calls t-code XD06 in dialog mode which of course doesn't work as in my case it needs to be called from external 3rd party app outside the SAP system

0

All this BAPI does is calls XD06 transaction. It might not be very useful for an interface, which seems to be OP's task.

0