cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Business Partner + delete

Former Member
0 Kudos

Hello Friends,

I dont know if its a write fourm or not to ask this question? so excuse me, if some one bothered !

Actually I have created some test data using Transcation BP and Now I want to delete some SAP Business Partner. But I cant see any option to delete them ?

Is there any way that I can delete some SAP Business Partner ?

Many thanks

Marek

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Marek,

you could also use transaction BUPA_DEL.

Please find documentation on this topic in the SAP Help.

<http://help.sap.com/saphelp_erp2004/helpdata/en/f4/640636fd55ff08e10000009b38f839/frameset.htm>

Best regards,

Katja

Former Member
0 Kudos

Hi Katja,

Thanks for you reply,

I have used this transcatin BUPA_DEL to delete some of the business parterns, it works fine. and now a bit later when I try to delete some more, it gives me error! that a serious problem occurs and business partner cannot be deleted ?

Any idea what is possibly wronge?

Many thanks

Marek

Former Member
0 Kudos

Hi Marek,

There are two ways to do this:

1. The 'archiving' way

2. The 'bapi' way

1. Within transaction BP select your businesspartner and goto tabpage 'Status'. Check the 'Archiving flag'.

Then goto transaction SARA use objectname 'CA_BUPA'. Select the 'Delete' button. Once in the next screen, you'll need to find out if your marked businesspartners are listed. Also fill in a start date/time and the spool parameters. After execution (F8) a job is planned and after this job has runned, your selected business partners are gone.

2. You'll need to write an ABAP program that will remove the various objects of a business partner. This depends highly on how you have created those business partners. You can find the various BAPI functions via transaction SE37 and search for BAPI_BUPAREMOVE bapi's. This will give you an idea what you can use.

For each businesspartner object you can use a remove bapi in your program and after these bapi's in your program use the final BAPI_TRANSACTION_COMMIT bapi.

Hope this helps you on your way.

Regards,

Rob.

Former Member
0 Kudos

Hello Rob,

Many thanks for your reply, First of all might be it would be useful if you also mention the source of this information which you have provided

Any way!

Regarding 1 approch, I have selected one SAP BP set its status flag archivied, and after going to transcatin SARA, I put CA_BUPA as you mentioned I click on delete button, but in archive selection it says, no data avaiable ?? why its so ??

2,--- regarding BAPI I found one BAPI BAPI_BUPA_STATUS_REMOVE, I will give it a try now ?? do u think it is the required BAPI ?

In this BAPI 'BAPI_BUPA_STATUS_REMOVE' there is one table status, if I dont set this table, the program throws an exception

Can you pls let me know what values should I set for this table ( status ) , it has two fields ?

STATUS and STAT_PROF ??

I have mostly create the SAP BP using BAPI 'BAPI_BUPA_CREATE_FROM_DATA'.

Many thanks once again!

Marek

Message was edited by: Marek Jöricke

Former Member
0 Kudos

Hi Rob,

I am using the following code, to delete the SAP BP, but unfortunetly it did not work!

DATA: my_table TYPE STANDARD TABLE OF BAPIRET2 WITH DEFAULT KEY,

wa_mytab LIKE LINE OF my_table.

DATA: bpstatus type STANDARD TABLE OF BAPIBUS1006_CRM_JEST_SET WITH

DEFAULT KEY,wa_mytab1 LIKE LINE OF bpstatus.

CALL FUNCTION 'BAPI_BUPA_STATUS_REMOVE'

EXPORTING

BUSINESSPARTNER = '0000000061'

TABLES

STATUS = bpstatus

RETURN = my_table

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

WRITE: wa_mytab-TYPE.

WRITE: / wa_mytab-MESSAGE.

When I execute this program, the msg is

There is no status information for Business Partner .......

Marek