Skip to Content
author's profile photo Former Member
Former Member

SAP Business Partner + delete

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2004 at 08:00 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2004 at 08:50 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.