Application Development 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: 

About Enhancement Point

Former Member
0 Kudos

Hi,

I want a clarity on enhancement point. Where we can see that a code written under a enhancement point will get trigger.

For ex,

ENHANCEMENT-POINT RM07II31_G4 SPOTS ES_RM07II31 STATIC.

$$-Start: RM07II31_G4----


$$

ENHANCEMENT 1 MGV_GENERATED_RM07II31. "active version

INITIALIZATION.

DATA: mgv_matnr_prog LIKE rsvar-report,

mgv_matnr_selopt_tab like rsldbdfs occurs 0 with header line.

FIELD-SYMBOLS <mgv_matnr_selopt_conv> TYPE STANDARD TABLE.

ENDENHANCEMENT.

This is code from standard tcode MI31. I have put breakpoint in this code. but while i run mi31 the control didnt reach at this breakpoint. So please tell me where we can see that a particular enhancement code will be called?

Regards,

Krishan

3 REPLIES 3

Former Member
0 Kudos

Hi

Try this link. This may help you.

http://help.sap.com/abapdocu/en/ABAPENHANCEMENT-SECTION.htm

Regards

Former Member
0 Kudos

>

> Hi,

>

> I want a clarity on enhancement point. Where we can see that a code written under a enhancement point will get trigger.

>

> For ex,

>

> ENHANCEMENT-POINT RM07II31_G4 SPOTS ES_RM07II31 STATIC.

> $$-Start: RM07II31_G4----


$$

> ENHANCEMENT 1 MGV_GENERATED_RM07II31. "active version

> INITIALIZATION.

> DATA: mgv_matnr_prog LIKE rsvar-report,

> mgv_matnr_selopt_tab like rsldbdfs occurs 0 with header line.

> FIELD-SYMBOLS <mgv_matnr_selopt_conv> TYPE STANDARD TABLE.

> ENDENHANCEMENT.

>

> This is code from standard tcode MI31. I have put breakpoint in this code. but while i run mi31 the control didnt reach at this breakpoint. So please tell me where we can see that a particular enhancement code will be called?

>

> Regards,

>

> Krishan

If the related busines function switch for these enhancement points is turned on then you new code writtne in enhancement points will be executed else old code will be executed. Just keep pressing F5 and you will go to the code being executed.

If you want to debug new code written under enhancment point just put a break point on enahcement point and press F5.

ENHANCEMENT-POINT RM07II31_G4 SPOTS ES_RM07II31 STATIC.

$$-Start: RM07II31_G4----


$$

ENHANCEMENT 1 MGV_GENERATED_RM07II31001. "active version

INITIALIZATION.

DATA: mgv_matnr_prog LIKE rsvar-report,

mgv_matnr_selopt_tab like rsldbdfs occurs 0 with header line.

FIELD-SYMBOLS <mgv_matnr_selopt_conv> TYPE STANDARD TABLE.

ENDENHANCEMENT.

If you put a breakpoint inside code in bold it will not reach there if switch is on. In this case program flow will go to new code mentioned by enhancement spot.

To naviagte to new code wirtten under enhancement spot just double click on 'ES_RM07II31'.

It will open a tabular display of all 4 spots declared in program, select the first spot which we clicked and click on ABAP editor button in table menue on top to see the new code.

this is the code which will be executed if switch is on.

Hope this helps

Regards

Manas Dua

Former Member
0 Kudos

Hi,

It means that the location where you have defined your implicit enhancement code is not getting triggered for the transactional values you have entered in the Tcode mi31. Instead debugg and zero in on the location, where it is appropriate to write. Usually at the beggining and end of the Subroutenes Function Modules etc.

Regards,

Murthy