SAP MDG · ABAP FOUNDATIONS

Why does a changed class still behave the old way when I retest MDG consolidation?

Changed ABAP class still runs the old logic

No specific dump. The changed class or method still behaves as it did before the change.

Error

No specific dump. The changed class or method still behaves as it did before the change.

Symptoms

  • The source in the editor shows the new logic, but the process follows the old path.
  • A breakpoint on a new line is not reached, or an old breakpoint still is.
  • An inactive version of the object exists, or a background process started before activation.

What is the issue

ABAP repository objects can have an inactive version in the worklist. The editor may display the inactive (new) source while the runtime — and especially a background workflow or bgRFC process — still loads the last active version. If activation was skipped, failed, or not verified, a retest uses the old logic. A process that was already started may also have loaded the old code into its session.

Where to debug

  • In Class Builder (SE24) or the ABAP worklist, confirm the object status is Active and that no inactive version remains.
  • Compare the active source (display the active version) with the code you believe you saved.
  • For MDC, set an external breakpoint in the active method for the background workflow or bgRFC user, in the same client where the process runs, and confirm the new statements are reached.

How to solve

  1. Activate the class and check that no inactive version is left in SE24 or the worklist.
  2. End any session or process that may still be running the old load.
  3. Start a new MDC process (or at least a new step) and retest.

Alternate option

If activation reports errors, fix those first. Do not test against an inactive version. If a generation or load buffer is suspected after a confirmed activation, start a new process in a new session rather than continuing the old one.

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

Related questions and keywords

Alternative questions

  • How do I check that a class is Active and has no inactive version before an MDC retest?
  • Why is a breakpoint on a new line in SE24 not reached in a background MDC process?
  • Does a bgRFC or workflow process keep using the last active version of a class?

Possible questions

  • How do I check that a class is Active and has no inactive version before an MDC retest?
  • Why is a breakpoint on a new line in SE24 not reached in a background MDC process?
  • Does a bgRFC or workflow process keep using the last active version of a class?
  • What configuration is required for Changed ABAP class still runs the old logic?
  • How can this SAP MDG scenario be tested?

Keywords

inactive versionactivationSE24Class BuilderworklistActiveold logicbgRFCMDG consolidationretest