Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_CLEAR_CASE_CREATE_MULTI

Former Member
0 Likes
590

Dear Experts,

I'm using the BAPI "BAPI_CLEAR_CASE_CREATE_MULTI" in order to create Merge Cases for BusinessPartners. This works so far, but I'm having trouble resolving the cases in SAP so I have a few questions:

1. Is there a possibility to trigger the resolution of a case programmatically

2. Is there a possibility to tell the case programmatically which fields of which source should be merged into the target.

3. Is there a possibility to transfer the related entities (like activity) from the source to the tartget.

Or is there maybe an other BAPI I could use?

Kind Regards,

Julian

4 REPLIES 4
Read only

former_member186444
Participant
0 Likes
539

Hi Julian,

did you ever get this working ? We've been using the same FM to create cleansing cases but have found that it's not creating a line for the Master and Source when we view it in the UI.

thanks,

Malcolm.

Read only

Former Member
0 Likes
539

Hi all,

I'm having the exact same problem as the first poster in this thread, I'm able to create the merge case but how can I mark which fields I want to merge and how can I trigger the execution of the case without user intervention?

Thanks in advance and regards,

Luis

Read only

Former Member
0 Likes
539

Hi,

I have the same issue, I want to auto-execute the case I created with BAPI_CLEAR_CASE_CREATE_MULTI. I found class CL_CRM_CLEAR_AUTO and method AUTOMATIC_MERGE. This actually executes the case immediatly, but only the basics. I need to configure that all business transactions are also transferred from one account to the other.

Anybody knows how? The search continues..

Read only

0 Likes
539

Ok I resolved the issue! Not using the class but after the creation BAPI I called BAPI_CLEAR_CASE_CHANGE and changed the cases to Completed (D). You cant create a case with this status initially so this needs to be done separate. After this I manully add the case into the table crmm_bupa_merge. This table can't be updated from a function module. I only populate the field mergeguid.

After this the normal process (CRM_BUPA_REALIGNMENT) can process the case and it works without any manual steps!