01-06-2008 5:48 AM
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.
01-06-2008 9:52 AM
hi,
i hope the tcode XD99 will help u ,it is used for customer mass maintenance .
Reward points if helpful,
Regards,
Sumanjeet.
01-06-2008 9:52 AM
hi,
i hope the tcode XD99 will help u ,it is used for customer mass maintenance .
Reward points if helpful,
Regards,
Sumanjeet.
01-06-2008 10:25 AM
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
01-06-2008 12:09 PM
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?
01-08-2008 6:48 AM
hi,
please create a recording for XD06 tcode and then create a bdc and delete the customers.
Reward points if helpful,
Regards,
Sumanjeet.