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

copy Business partners

has anyone built a functionality to create new business partners by copying the existing ones??

also can we delete accounts/Contacts through PCUI??

will appreciate any inputs.

thanks

RH

Add comment
10|10000 characters needed characters exceeded

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 08, 2006 at 05:02 PM

    any inputs on the above query?

    kind regards,

    RH

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Rishi,

      I think you can use the function modules mentioned below to copy one BP to another BP. You can copy only the central and address data.

      Use the function module BUPA_CENTRAL_GET_DETAIL to get the details of the BP to be copied and then use the function module BUPA_CREATE_FROM_DATA to create a new BP with the data available from BUPA_CENTRAL_GET_DETAIL.

      I never did this on my own but I think this should work.

      Regards

      G.Raja

  • author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2006 at 05:14 PM

    Hello Rishi

    copying BP's or CP's is not a basic functionality available in standard. You will have to write the functionality yourself if you need it - but usually if you use the pre-filling functions for BP's i.e. from organizational model and / or employee data then many fields are already filled and the BP will be assigned correctly, so a pure copying is usually not needed.

    As for the deletion flag: The system does not support the direct deletion of BP's / CP's. However, you can set archive-flags on BP's and CP's and with a so-called archive run these partners are removed from the DB then in usually regular intervals.

    Regards

    Kai

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 20, 2006 at 05:21 PM

    Hi!



    Have a look to the function BUPA_MAIN_GET_STRUCT. This function generates a complete message bDoc BUPA_MAIN of an existing business partner.

    After calling this function, you can change the data. For example, you can also change the partner_guid, the partner, the tasks, ...

    Fill out 'I' in the header task. Generate a new partner_guid. Delete the partner number. - And then send the bdoc with cl_smw_mflow=>send

    to the middleware.

    Thats all.

    kind regards, föß

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Föß,

      I was able to retrieve the BDOC data, however, wenn calling CL_SMW_MFLOW=>SEND for site CRM, an exception is thrown. It seems as if the coding tries to send it to an external system and is therefore looking for an outbound adapter. Call of "CALL METHOD cl_smw_bdocstore=>persist_bdoc" returns sy-subrc = 1.

      Did you actually try your solution? If yes and it's working, could you kindly send me the ABAP coding?

      Many thanks & regards

      Wolfgang

  • Posted on Oct 12, 2009 at 06:59 AM

    Hello!

    As mentioned before it is currently not possible to copy Business Partner in CRM Web UI. It is also not possible to delete Business Partner directly.

    Within the CRM Web UI it is only possible to flag Business Partner for archiving (Archiving Process is again dependent on the status of replicated data u2026).

    However there is a note available, which enables also the deletion of Business Partner.

    Please check note: [Note 415007 - Deletion of business partners|https://service.sap.com/sap/support/notes/415007]

    Best regards

    Arno

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      If you have to delete a BP, then that BP should not be referred any where.

      If the BP is not referred any where then do the following...

      1) In Tcode BUPA_PRE_DA, give the BP which is to be deleted.This is teh preparation step which will set the status for Deletion.

      2) In Tcode BUPA_DEL, give the BP to be deleted after preparation step.This will delete the BP if it is not referred anywhere.