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

cmod and smod

Former Member
0 Likes
1,098

hi

in smod i created a included program in the user exit "EXIT_SAPLCOZF_001" under the enhancement "COZF0001".

Now for this include prg to be executed what i have to do?

whether i have to create a project in CMOD?

If so how does the transaction<u> (,while executing, )</u>recoginizes my project(my include prg).

please help me in this.

8 REPLIES 8
Read only

Former Member
0 Likes
1,028

Hi Kiran

1. Create project via CMOD.

2. Assign enhancement: COZF0001

3. Go to Components.

4. Select component "EXIT_SAPLCOZF_001" and use menupath: Project -> Activate.

Above steps makes entries in few tables which identifies that code that the exit is active and then processes accordingly.

Kind Regards

Eswar

Read only

0 Likes
1,028

hi eswar,

if i create a project(at present i dont know the name to assign and the package to use)

so if i store under some temporary name and temporary package whether it will execute or not.

or without creating the project simply activating

in smod itself what will happend whether the include will execute and what happens at transportation time.

Read only

Former Member
0 Likes
1,028

hi

good

go through these links, which ll give you brief idea about the CMOD and SMOD

http://help.sap.com/saphelp_bw21c/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/content.htm

thanks

mrutyun^

Read only

Former Member
0 Likes
1,028

Hi Kiran,

To make your Exit work you need to create a project in CMOD. Actually you should have implemented the program or your in this way but still its no ta problem.

Once done with the code activate the exit (Function or screen whatever).

The transaction when gets executed calls he User Exit using the statement 'CALL CUSTOM-FUNCTION '001''.

Then your exit gets triggered and works.

To check whether your exit works just put a soft breakpoint(to avoid going to debug mode for all users) i.e., BREAK<your User ID>. Then if you have chosen the correct exit and if it is active then it will stop or go to debug mode and you can check your code.

Hope this should have helped you.

Thanks,

Prashanth

Read only

Former Member
0 Likes
1,028

Hi Kiran,

When you create a project u add the enhancement which you created and with the enhancement components When you activate the exit ur exit is ready for execution .When you set a break point in ur exit ,it starts working and here it identify ur project based on ur exit

Please reward if useful

Read only

0 Likes
1,028

hi

if i create a project(at present i dont know the name to assign and the package to use)

so if i store under some temporary name and temporary package whether it will execute or not.

or without creating the project simply activating

in smod itself what will happen whether the include will execute and what happens at transportation time.

====================

how to reward points? in this site.

thx

Read only

0 Likes
1,028

HI Kiran

For the time being, you can create a project as a local object, assign the enhcement and activate the same. Later when you need to move to Quality and Production servers you can change the package via CMOD -> Menupath: Goto->Object Directory Entry.

Seems the point system is down now, maybe you can try later to close the thread if your queries are answered by awarding points.

Kind Regards

Eswar

Read only

0 Likes
1,028

Hi kiran,

1. so if i store under some temporary name and temporary package whether it will execute or not

YES, it will execute, the package name or temporary package does not matter.

(But, we have to ACTIVATE the project)

2.

or without creating the project simply activating

in smod itself

In SMOD we cannot activate anything.

First we have to GROUP some enhancement

under some Project name (thru CMOD)

and we have ACTIVATE in CMOD (not smod)

3. what happens at transportation time.

The project gets transported,

along with the include.

regards,

amit m.