Your enhancement implementation wull be saved into a different ABAP repository object with your own package. The original program being enhanced is NOT touched at all.
Once created, you can add your own logic around line 72 ENHANCEMENT and 76 ENDENHANCEMENT.
In the runtime, your enhancement will be called after standard code is executed.
See one example of callstack below: