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: 

a simple quetion: how to activate UserExit

Former Member
0 Kudos

Hi all, i must tell you that my english is not so good, but i'll do my best...i'm new in SAP and programming in ABAP. I know that there are a lot of answers about User exits but i need the simplest you can....

In this i need an Exit for VF01.

I have ZFindExit, when i click in an UserExit, for example SDVFX011 the transaction SMOD appear. then i enter to the function module EXIT_SAPLV60B_011 and the include ZXVVFU11 appear, but when i do double click, a yellow icon appears at the bottom of the screen and i cant enter the include to put a break for example,

can somebody help me.

i promise that points will be rewards!!!!

thank in advance!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Rich i have followed step by step your words, i could put the SDVFX011 to an existing proyect, i activated it, and i activate de proyect too.. but the message is still apearing....what do you think?

12 REPLIES 12

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

what does the yellow icon message say at the bottom? If the include program does not yet exist, the system should be asking if you want to create it.

Regards

RIch Heilman

0 Kudos

You can activate the user exit in transaction CMOD. Go to CMOD, create a project or choose one that already exists. Click change. Click enhancement assignments, enter SDVFX011 here. Press enter. Now click the componnets button, In the dialog say yes, create transport request. But your cursor on the function module name and click activate.

Now the code in the INCLUDE inside the function module will get executed during program runtime. You must create the INCLUDE if not yet created and put code in it.

Regards

Rich Heilman

Former Member
0 Kudos

Hi

It's all right! Don't worry! It's only warming!

U have to create that include and insert your vode there.

Anyway your user-exit is really active only if the enhancement (SDVFX011) is assigned to a project.

After creating the project you have to active it too.

Max

Former Member
0 Kudos

Hi,

Is it that screen says that object does not exist ,then you need to create new object .Save it & activate it .

Thanks.

Former Member
0 Kudos

the yellow message says : names of programs ZX.... are reserved for includes of exits function groups....what shall i do? i have never used exits until now.

thanks!!!

0 Kudos

No problem with that message, just enter thru it, you should get a dialog which asks you if you want to create the include, say yes, then add your code in the include and activate the include program. You will need to activate the user exit as I have described above.

Regards,

Rich heilman

0 Kudos

Hi

Go on! Guy!

U have to create that include ZX.... and there you have to insert your code so after the message press YES and create it.

Max

Former Member
0 Kudos

Hi

The yellow message is a warning message and means that it has not yet been created. For writing code to that include u must first create the include. Go to SE80 -> edit object -> click on the 'program' tab, select include radio button and give the include name and say create. Your include will be created.

1. The next step is to create the project. Go to transaction code CMOD or follow menu path: Tools -> ABAP Workbench-> Utilities -> Enhancements -> Project Management.

2. Enter the project name; begin the name with a "Z."

Click on the Create button.

3. Enter in a description for the project.

4. Click on the Enhancement Assignments button.

5. You will be prompted to save the enhancement. Click on Yes.

6. At this point you will be asked for a development class and to create a transport for the project. You may use the same one created when adding the ABAP code to the function module.

7.Enter the name of the enhancement

8.Save the project.

9.Back out of the enhancement assignment.

10.Activate the project by hitting the Activate button.

Regards,

Sookshma

Former Member
0 Kudos

Rich i have followed step by step your words, i could put the SDVFX011 to an existing proyect, i activated it, and i activate de proyect too.. but the message is still apearing....what do you think?

0 Kudos

Is it displaying a message 'Program names ZX... are reserved for includes of exit function groups'. If so press enter it will ask for dialog box and Press box.

Else copy that Zinclude name, goto SE38 and create it from there.

Regards,

Prakash.

0 Kudos

What message? The yellow warning message when double clicking the include statement? Yes it will keep coming untill you create the INCLUDE. You see the EXIT_ function modules have these include statements in them, but by default, these include program are not created yet. This is your job, when you double click on the include name, the system will start the process of creating the include program, the warning message is just telling you about the namespace, hit enter to get passed it, it should be asking if you want to create this include program, say YES!, enter the code in the exit INCLUDE program that you just created and save and activate the include program.

It seems that you have already completely the steps in SMOD/CMOD.

Regards

Rich Heilman

0 Kudos

Hi

That message will be shown every time you create a new ZX<INCLUDE> for a user-exit, it doesn't depend on the exit is active or not active.

U can try to do this.

Create a your program ZTEST by SE38.

Here insert only this line: <b>INCLUDE ZXTEST</b>

So active your ZTEST program: no error'll occur, although the include ZXTEST doesn't exist.

The reason is if the include name begins for ZX the system skip the control.

Now Try to do a doubleclick on the name of ZXTEST and that message'll be shown, because that message is shown by default.

Max