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

enhancement spot plz help

Former Member
0 Likes
2,275

hi all ,

i am creating an enhancement thru this method and i am able to create it and its coming like

ENHANCEMENT 2 ZTEST.

goto the program. click on the enhancment button(one with curled) on the tool bar.

the screen color will change. click on goto->enhancments->show implicit enhacment.

you will see yellow color line. chose the line wher you want to enhance and right click and select enhanment->create.

in the dialog box, press create button. give the enhacment spot name. press ok.

now select your enhancement name and press ok

your enhancment will be added in the code.

press activate to activate the point.

but i am not getting any enhancement spot

i want to create like this

ENHANCEMENT-POINT BELEG_LESEN_01 SPOTS ES_SAPMV60A.

and

ENHANCEMENT-SECTION BELEG_LESEN_02 SPOTS ES_SAPMV60A.

kindly tell me how i can create ENHANCEMENT-POINT

and ENHANCEMENT-SECTION .

Edited by: SARABPREET CHADHA on Mar 13, 2008 6:05 AM

7 REPLIES 7
Read only

Former Member
0 Likes
1,561
Read only

0 Likes
1,561

hi Thanx 4 ur rply

But i am not able to understand meaning of theses line

ENHANCEMENT-POINT ep1SPOTS s1 .

ENHANCEMENT-SECTION ep2 SPOTS s1 .

END-ENHANCEMENT-SECTION .

means do i need to write these statements in my programs or they will come automatically on pressing some buttons ???????

also tell me how to create this enhancement spot s1

plz guide me in this

Edited by: SARABPREET CHADHA on Mar 13, 2008 6:21 AM

Edited by: SARABPREET CHADHA on Mar 13, 2008 6:39 AM

Read only

Read only

0 Likes
1,561

Hi Yash

Thanx 4 ur rply

i am not getting nethng from it

which package it is talking about

can i create it in $tmp package

is there is any other way to create enhancement spot?????

thanx in advance

Read only

0 Likes
1,561

Hi,

Enhancement points are like hooks where you can attach your own piece of code and coding in an enhancement point is no different than a normal coding , just that it is a point in the standard program into which you can give your own custom logic.

There are 2 types of enhancements given by SAP:

1. Explicit enhancement points: Go to program RIAUFMVK . You can see ENHANCEMENT-POINT at many places. These are all explicit enhancement points and you can easily implement these points . Simply press shift+F4 and then go to the point which you want to implement. Right click on it and follow the path Enhancement implementation->create. Give the name of the implementation and the assign it to a package(shoud not be a Z package).

Once it is created you can start your coding as you normally do.

2. Implicit enhancement points are not very stable and should be the last resort after you have explored all the user exits , BAdIs and explicit points. In order to find out the implicit enhacement points , press shift+F4 then goto menu option Edit->Enhancement Operations->show implicit enhancement options. This will bring up all the points that you can enhance. This will appear as a line with arrows. To implement this you have to follow the same procedure as for explicit enhacement points.

So enhacement point works like the other codes . Just that you should know which one to implement and where. As far as possible avoid implicit enhacements as they are not very stable at present and even if you are going for it keep a back-up of your code always.

enhancement spots

The enhancement spots are used to manage explicit enhancement options. Enhancement spots carry information about the positions at which enhancement options were created. One enhancement spot can manage several enhancement options of a Repository object. Conversely, several enhancement spots can be assigned to one enhancement option.

Regards

Read only

Former Member
0 Likes
1,561

Hi ,

-Place the cursor on the yellow line and right click and create

-Click on < Declaration >or < code >

-Click on < create > and Provide details <NAME> and <SHPORT DESC> and ENTER .

-Give DEV CLASS and SAVE .

<ZTEST_ENH> is created <message at bottom of the screen .

->Then check the <ZTEST_ENH> and enter.

-Observe the blue ‘*’ .remove and write ur code .

-Write ur code and activate it

-send ur mail id i wll sedn the steps

<reward if helpful>

Thanks

Jagadeesh.G

Read only

Former Member
0 Likes
1,561

Hi

Once you change the screen and then if you want to create the spot then goto enhancment ppoints then show implicit enh spot and then click on the start and again goto enh spot and click on create

create the spot and assign the same to $tmp or package as per ur requirement

then select the created one write the code and activate the same

If you want to change the existing then select the same and click on change

please let me now if you nedd any help

Regards

Shiva