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

reg: Error in CMOD

Former Member
0 Likes
1,431

Hi

After creating a project from CMOD,while giving a enhancement name by clicking on enhancement assignments , it is throwing error as

"SAP enhancement V45A0003 already belongs to project Zxxxxx"

How to resolve it..

regards

chandrakanth.k

7 REPLIES 7
Read only

Former Member
0 Likes
1,121

Hello Chandrakanth,

imagine, you want to drive to the supermarket with your car. But your wife tells you, that your son is already using it, as he wants to drive to the cinema.

Now you have the following options:

1. Get your son out of the car and drive to the supermarket

2. Getting into the car as co-driver of your son. Then first drive to the cinema and afterwards to the supermarket.

3. Getting into the car as driver and ask your son, if he want's to be your co driver. Then drive to the supermarket first, and - in case it's still required - to the cinema.

Best regards

Stephan

Read only

0 Likes
1,121

>

> Hello Chandrakanth,

>

> imagine, you want to drive to the supermarket with your car. But your wife tells you, that your son is already using it, as he wants to drive to the cinema.

>

> Now you have the following options:

>

> 1. Get your son out of the car and drive to the supermarket

>

> 2. Getting into the car as co-driver of your son. Then first drive to the cinema and afterwards to the supermarket.

>

> 3. Getting into the car as driver and ask your son, if he want's to be your co driver. Then drive to the supermarket first, and - in case it's still required - to the cinema.

>

> Best regards

>

> Stephan

Love this analogy. I'll try to interprete this and let me know if I'm making some mistakes.

Your enhancement already used in other project, hence you have several options:

1. Get rid of existing implementation in that enhancement and put your code in it.

2. Write your code after existing codes, means that existing code will be processed prior your new code.

3. Write your code before existing codes, means that existing code will be processed after your new code.

This is a nice blog that discuss on how to implement option 2 and 3 elegantly.

[|]

If you can find multiple implementation Badi that can be used for your requirement, it always the best approach. However, if you can not found it, try check on that blog and apply it if needed.

Regards,

Abraham

Read only

Former Member
0 Likes
1,121

Hi....

The enhancement u want to use for ur purpose is already active(included) with the project

ZXXXX(u specified).

Jus do ur coding in the exit of that enhancement without disturbing the other code that is

already there.

U write ur code and activate the exit(INCLUDE). Thats all.

U dont need to again go for creating a project in CMOD.

To check whether the exit u r using is active, go to CMOD, give that project name

ZXXXX(u specified), and in the components check for the exit. It should be active(Green Button)

befor the exit name.

Regards,

Veeranji Reddy P.

Read only

Former Member
0 Likes
1,121

hi,

the user exits are not a reusability. if u assign a enhancement to a project. we cannot use the same enhancement in the different project. better u can search for any badi.

regards,

sathis.

Read only

Former Member
0 Likes
1,121

Hello,

Customer enhancements are not reusable. That means if it is already assigned to a project you can not use it again for another purpose.

In your scenario you need to find a appropriate BADI for your transaction. Because BADI can be reused multiple times in diffrent implementations.

Regards

Arindam

Read only

Former Member
0 Likes
1,121

Hi,

You know the enhancement is a one time used component and is specific to a z program.

The error you got might be because of it.

I agree with the Veeranji Reddy said above, see whether your project name is active , if it is active , I mean green color, if not need to activate it.

Here u201CSAP enhancement V45A0003 already belongs to project Zxxxxxu201D

Here V45A0003 which Predefine sold-to party in sales document for other enhancement.

Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed

Some times , you get error due to some un refreshed data in the system variables, try once again .

Thank you,

Lakshmi Narayana

Read only

Former Member
0 Likes
1,121

solved