Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to mark flag for deletion for bulk of customers.

Former Member
0 Kudos

Hi friends,

GM..

I hv a question , that how to mark flag for deletion for bulk of customers.Few function modules are there (eg. HRCA_CUSTOMER_DELETE ) which are going to 'XD06' transaction to set the flag for individual customers.

But data is huge so it's not possible to go & mark the flag for deletion for individual customers.So what is the solution for this.....

waiting for ur reply....

Thanx.

Regards,

Ajit.

1 ACCEPTED SOLUTION

Former Member

hi,

i hope the tcode XD99 will help u ,it is used for customer mass maintenance .

Reward points if helpful,

Regards,

Sumanjeet.

4 REPLIES 4

Former Member

hi,

i hope the tcode XD99 will help u ,it is used for customer mass maintenance .

Reward points if helpful,

Regards,

Sumanjeet.

Former Member
0 Kudos

Hi Ajit,

XD99 can be used as a appropriate mass deletion tool for customers .

It is good for max 500 customers to mark for deletion, if you have more than that some times you may get dump.

OR

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.

OR

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.

if you give me brief i can help you out more.

Thank you .

Regards

Ram

0 Kudos

Hi Ramana,

Thnx for ur reply .

You hv provided me the options for deleting the BP's but i want to delete the customers & not just BP's .Would u please ellaborate how to use 'XD99' to solve this issue or is there any other way to delete the customers?

0 Kudos

hi,

please create a recording for XD06 tcode and then create a bdc and delete the customers.

Reward points if helpful,

Regards,

Sumanjeet.