SAP MDG · CONSOLIDATION

Why does MDG consolidation hang after a custom BP model redefines READ_ALL_DATA?

Redefined READ_ALL_DATA hangs MDC when IV_FROM_CURRENT_STEP is forced to false

The MDG Consolidation or Mass Processing process hangs or stalls in a process step. There may be no dump and no error in the process log. Standard BUT000 (and related) data comes back empty after the read.

Error

The MDG Consolidation or Mass Processing process hangs or stalls in a process step. There may be no dump and no error in the process log. Standard BUT000 (and related) data comes back empty after the read.

Symptoms

  • The process remains in the current step and does not progress.
  • Standard business partner data that should have been read is empty in the model.
  • The issue appears only after a custom subclass of CL_MDC_MODEL_BP redefines READ_ALL_DATA.

What is the issue

CL_MDC_MODEL_BP=>READ_ALL_DATA uses the importing parameter IV_FROM_CURRENT_STEP to decide whether to read process-table data for the current step or to reread earlier data. A custom subclass that always calls the superclass like this overrides the caller's intent:

ABAP
1super->read_all_data( iv_from_current_step = abap_false ).

When the framework calls the method with IV_FROM_CURRENT_STEP = abap_true (typical in later process steps), forcing abap_false means standard BUT000 and related process data are not loaded as expected. The next step then works on empty data, and the process appears to hang.

Where to debug

  • Set an external breakpoint in the custom class method READ_ALL_DATA and in CL_MDC_MODEL_BP=>READ_ALL_DATA, for the background workflow or bgRFC user, in the same client where the process runs.
  • Watch IV_FROM_CURRENT_STEP on entry to the redefined method, and the value actually passed to SUPER->READ_ALL_DATA.
  • After the super call, check whether standard process data (for example ME->MR_BUT000_PRC) is bound and contains rows.

How to solve

Pass the caller's IV_FROM_CURRENT_STEP through to the super call unchanged. Do not hard-code abap_true or abap_false.

ABAP
1METHOD read_all_data. 2 super->read_all_data( iv_from_current_step = iv_from_current_step ). 3 " custom entity reads after the super call 4ENDMETHOD.

Alternate option

If custom logic truly needs a reread in a specific situation, branch on your own condition after inspecting the incoming IV_FROM_CURRENT_STEP, and document why. The default path must still pass the original value through.

The remaining configuration, implementation details, and testing guidance continue from this answer more…

Related questions and keywords

Alternative questions

  • Why is BUT000 empty after a custom READ_ALL_DATA in CL_MDC_MODEL_BP?
  • What happens if a redefined READ_ALL_DATA always calls super with IV_FROM_CURRENT_STEP = abap_false?
  • MDG mass processing stalls in a step after a custom BP model read — where should I look?

Possible questions

  • Why is BUT000 empty after a custom READ_ALL_DATA in CL_MDC_MODEL_BP?
  • What happens if a redefined READ_ALL_DATA always calls super with IV_FROM_CURRENT_STEP = abap_false?
  • MDG mass processing stalls in a step after a custom BP model read — where should I look?
  • What configuration is required for Redefined READ_ALL_DATA hangs MDC when IV_FROM_CURRENT_STEP is forced to false?
  • How can this SAP MDG scenario be tested?

Keywords

CL_MDC_MODEL_BPREAD_ALL_DATAIV_FROM_CURRENT_STEPBUT000MR_BUT000_PRCMDG consolidationmass processinghangempty data