Skip to Content
avatar image
Former Member

Account merge - start immediately

Hi,

I've set up the Account merge configuration according to this document SAP CRM - Merging Accounts

Everything is fine but the BUPA_REALIGN background job is in scheduled job. I know i can go to release it manually in SM37, but is not practical for business user to do that.

Is there any way to allow the BUPA_REALIGN background job to be released immediately when the business user click on "start" button?

cheers,

julius

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jun 05, 2015 at 12:47 PM

    Hi Julius,

    The creation of the job is handled at CL_CRM_BUPA_REALIGNMENT, CREATE_ACCOUNT_REALIGN_JOB. You could redefine this method, set the start time to initial and call super.

    Best regards,

    Vijayalakshmi

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Luis,

      You're right, it would of course be the best to use a new action profile, but in the code, we associate the BP_TASK action profile to the realignment task (hard-coded), so I thought it would be better to directly control the start time of the realignment job.


      Bernadette's solution will work too, if the only thing the user does on the UI is to quickly click on 'Confirm' and then Save/Start... if a little extra time is spent in manipulating the data on the UI and such like, there'll be an error "Start time for realignment has to be in the future".

      Best regards,

      Vijayalakshmi

  • Jun 09, 2015 at 06:30 PM

    Hi Julius

    Enhance the component, redefine the method and comment the line.

          'ADD 500 TO lv_start_time'

         in Component/view CLEAR_HEAD/ClearSchedule

         method DO_VIEW_INIT_ON_ACTIVATION of class  CL_CLEAR_HE_CLEARSCHEDULE_IMPL

    Refer to the following link

    How to set the Schedule Merge Time and Date in ... | SCN

    Bernadette

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 05, 2015 at 07:52 AM

    Dear Julius,

    By default, the batch job will be triggered immediately after you press the "START" button if you choose "merge now".  Of cause, you can monitor the status of the job in transaction code SM37.  The Archive (BUT000-XDELE) flag will be set after the successful execution of batch job BUPA_REALIGNMENT (program CRM_BUPA_REALIGNMENT) during account merge.

    Thanks,

    Julin Xin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Julin,

      Thanks Julin!

      What you've described is what i've expected 😊

      Unfortunately, that's not what i'm having now.

      The BUPA_REALIGN background job is in "Schedule" state. If i release it manually in SM37, the archive flag will be set.

      Is there any step missing?

      p/s: I'm on CRM 7 EHP3.

      julius

  • Jun 05, 2015 at 08:18 AM

    I never had this requeriment but if I was in your situation I would analize the standard BADI implementation CRM_BUPA_REALIGN  also reading the note 1804767 - FAQ - Business Partner Data Cleansing may help.

    Cheers!

    Luis

    Add comment
    10|10000 characters needed characters exceeded