cancel
Showing results for 
Search instead for 
Did you mean: 

Error : The import com.sap.wec.app cannot be resolved

jibin_joy
Contributor
0 Kudos
222

Trying to Custom Field in Order Screen . Referring Document "Development and Extension Guide SAP® Web Channel Experience Management 3.0 SP01 – Application-Specific Information " Section "Displaying Custom Fields on the UI" / Page 98 .

I have followed the Steps which is mentioned in Document but Getting error "The import com.sap.wec.app cannot be resolved" .

Without Dependency SAP salestransaction : We have tried  without Dependency then we get above error


With Dependency SAP salestransaction : we are getting error "The type com.sap.wec.app.common.module.transaction.header.businessobject.interf.Header cannot be resolved. It is indirectly referenced from required .class files" (Screen Shot Shared Below)

Please Guide to Resolve this Issue .

SAP WCEM : 3.0 SP1

NWDS : 7.5

Regards,

Jibin Joy

View Entire Topic
patrickzimmerma
Advisor
Advisor
0 Kudos

Hi Jibin,

you need to add all dependencies required to your DC. In those cases find the DC the class belongs to and add it to your dependencies. In this case: ...interf.Header is contained in wec/comm/rc/transaction/interf. This procedure might be needed to be iterated.
To find the relevant DC create projects out of all SAP delivered DC's. Then press CTRL-R, enter the class name and find the class.

Regards,
Patrick

jibin_joy
Contributor
0 Kudos

Hi Patrick ,

Thanks for Information ...

For Time Being , I have created all create Project for Component "SAP-WEC" and "SAP-WEC-FRW" . Added Related DC Dependency in  my Custom Sales Transaction . Now Getting New Error "The hierarchy of the type CustHeaderBeanImpl is inconsistent"

So Verified

SalesDocumentHeaderBeanImpl > (Parent Class) SalesTransactionsBeanImpl > (Parent Class) BusinessObjectBeanBaseImpl is Missing

Please Guide us to Resolve this Issue !!!

Regards,

Jibin Joy

patrickzimmerma
Advisor
Advisor
0 Kudos

Hi Jibin,

seems you are missing some dependencies.

You might add those. In those cases just check out the class you are extending DC's dependencies and make good guesses what else you need.

Regards,
Patrick

jibin_joy
Contributor
0 Kudos

Hi Patrick ,

I have added DC's as mentioned but Issue was with JDK . I was Building on JDK1.8.0_45 then few DC got broken because  of error "The type ResultData must implement the inherited abstract method ResultSet.getObject(int, Class<T>)" . For time being ,I have changed code to Build .

Is it possible to share recommended  JDK for WCEM 3.0 SP1 !!!


Regards,

Jibin Joy

patrickzimmerma
Advisor
Advisor
0 Kudos

Hi Jibin,

chapter 8.8.4.2 of D&E guide says: "To check the JRE of your SAP NetWeaver Developer Studio, navigate to Window -> Preferences. In the tree on the

left, select Java -> Installed JREs. The installed JRE should be a version that is JavaSE-1.6 compatible, such as jdk1.6.0_14."

As the NW AS Java runs on JDK 1.6 you need to build against 1.6 (compatible) as well.

Regards,
Patrick

jibin_joy
Contributor
0 Kudos

Hi Patrick ,

Thanks for Information .

I have missed this Point in document somehow !!!

Regards,

Jibin Joy