Application Development and Automation 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: 
Read only

Regarding Enhancement Point Implementation.

aditya_niyogi
Participant
0 Likes
459

Hi Experts,

Recently I have implemented an explicit enhancement point. However as this enhancement point is placed inside an INCLUDE program that is accessed by another transaction - I am getting a dump for the other transaction whereas it is working fine for the transaction that I have coded for. Is there any way to make an explicit enhancement implmentation exclusive to a particular transaction ???

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
438

One think you can do is add a check on sy-tcode at the start of the enhancement.

For ex.



ENHANCEMENT POINT

IF sy-tcode EQ 'MIRO'.  "Add this code

Your logic.

ENDIF.               "

END ENHANCEMENT POINT.

One think you have to make sure is that you want this code to be execute only by that transaction and not any other BAPI/Transaction.

3 REPLIES 3
Read only

Former Member
0 Likes
439

One think you can do is add a check on sy-tcode at the start of the enhancement.

For ex.



ENHANCEMENT POINT

IF sy-tcode EQ 'MIRO'.  "Add this code

Your logic.

ENDIF.               "

END ENHANCEMENT POINT.

One think you have to make sure is that you want this code to be execute only by that transaction and not any other BAPI/Transaction.

Read only

SantoshKallem
Active Contributor
0 Likes
438

specify your code in condition.

If sy-tcode = 'your tcode'

your code.

endif.

regards,

santosh reddy

Read only

Former Member
0 Likes
438

Hi ,

u can put a logic like this , in side the include.

if sy-tcode eq 'XXXX'.

endif.