cancel
Showing results for 
Search instead for 
Did you mean: 

How to add new class to existing DC (Web Dynpro project)

Former Member
0 Kudos

Hi,

How can I add new class to an existing DC (Web Dynpro project)?

I tried adding it using File - New - Other - Java - Class, but after a build of the DC the new class (and its contents ) was completely removed.

Then I created a new DC (java project) and created a new class in that DC. This went fine, but I got into problems because of circular referencing between the new & the old DC, so no build was possible.

This can't be difficult, does somebody knows how to do it?

My temporary solution is to add the classdefinition to an exisiting .java file. Very ugly.

Thanks,

Jeroen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jeroen,

where did you create the class? If the *.java file is placed in the src/packages folder it should not be deleted by a build. (I suspect you created it in the gen_wdp folder?)

Regards,

Marc

Former Member
0 Kudos

Hi Marc,

Thanks for your reply.

I will check this asap. If it works you'll get a 10

Jeroen

Answers (1)

Answers (1)

Former Member
0 Kudos

Regarding the circular referencing problem, probably, you can create a third DC, which hosts all the common functionalities - so that the first two DCs can refer to this common DC.

Former Member
0 Kudos

Hi,

In my case that wouldn't work because one component has been written by SAP (XSS) and thus I can't move certain funtionalities to another component...

Jeroen