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

Acquire Customer duplicates list in the ABSL Code

Hello,

We found out that, in Cloud for Customer, the Customer Business Object (namespace: http://sap.com/xi/AP/FO/BusinessPartner/Global) provides the Action CheckForDuplicates, in a way to run the duplicates check on the processed Customer.

Is there any way to acquire the list of the duplicates found by the Action in the ABSL Code? We tried to run the following code lines:

customer = Customer.Retrieve(bp);

customer.CheckForDuplicates();

if (customer.BusinessPartnerDuplicateCheck.IsSet()) {

foreach (var duplicate in customer.BusinessPartnerDuplicateCheck.Result) {


// process duplicate.BusinessPartnerInternalID value

/// ...

}

}

But unfortunately the BO member BusinessPartnerDuplicateCheck is not accessible on the Public level, as displayed by the error message we got at code activation:

Do you have any information about this request? We are available on any feedback about it.

Thanks a lot,

Davide

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 28, 2014 at 05:30 PM

    Hi Davide,

    I am not sure, what you are doing in the "process" part.

    However, according to the Repository explorer, the BusinessPartnerDuplicateCheck Bo is released in the public solution model but only only for reading:

    So please check whether you unintentionally try to modify any part of the BusinessPartnerDuplicateCheck Bo in the processing code.

    Alternatively it might be (this happened to me already once) that a BO or parts of it are marked as released but read-only for use in the public solution Model and accessing this does not work.

    If you are positively sure everything should definitely work I would recommend to file an incident in the PDI workcenter describing the situation. Usually this has been fixed by SAP development with the next PDI release cycle.

    Best regards,

    Ludger


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Thomas White

      Hi Tom,

      I'm sorry, but unfortunately we got no solution for this question. We stopped to investigate it because our client accepted the standard "Check Duplicates" button in the New Customer Creation screen.

      Kind regards,

      Davide

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.