cancel
Showing results for 
Search instead for 
Did you mean: 

Deletion of Customers

Former Member
0 Kudos

Hai guys,

We are planning to delete a long list of customers from our Data Base which we no longer deal with.

There are about 22,000 customers we have identified to delete but the problem is they are not in serial order.

I know the Function Module BUP_BUPA_DELETE can be used to delete the cusomters but it needs an archiving flag to be set up.

So do any guys know a FM which sets up the archiving flag.

Guys can you help me out by suggesting some other easy ways to go through this process

Thanks in Advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can write a program to read an excel file into an internal table and call the function BUP_BUPA_MASS_DELETE to delete the customers.

To read the excel file into an internal table you can use

function mod : 'GUI_UPLOAD'

Hope this helps!

Chandrika

Former Member
0 Kudos

To mark the BP's for Delete use the following code sample.

It marks the BP's for Delete and once you archive them delete them in bulk.

data : BUPANUM type BU_PARTNER,

RETMSG type ITMSG,

ls_central type BAPIBUS1006_CENTRAL,

ls_Central_X type BAPIBUS1006_CENTRAL_X.

ls_central-CENTRALARCHIVINGFLAG = 'X'.

ls_central-CENTRALBLOCK = 'X' .

move-corresponding ls_Central to ls_Central_X.

CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'

EXPORTING

BUSINESSPARTNER = BUPANUM

CENTRALDATA = ls_Central

CENTRALDATA_X = ls_Central_X

TABLES

RETURN = RETMSG.

Thanks,

Thirumala.

Former Member
0 Kudos

Hi ,

I am using Tcode Bupa_del to delete the cusotmers in CRM.

But when I delete the cusotmers in CMR they are not getting updated in R/3.

The bp still exist in R/3

should i delete them again in R/3 also