on 08-07-2015 9:37 AM
Hi Team,
I am trying to customize one of the standard class which belong to the module wec~comm~mc~customerinteraction~bo~sap.com and the package by name com.sap.wec.module.customerinteraction.rating.backend.impl.crm the class name is by name RatingReviewCRM.java here the class connects with CRM .
Below are the steps followed
1. In the custom BO module created a new package .
2.Added new xml file called backendobject-config.xml and referenced the standard backend object with the new Z_RatingReviewCRM.java
3.Z_RatingReviewCRM.java extends RatingReviewCRM.java
3.Overridden the method in Z_RatingReviewCRM.java
Problem:
Unable to build the dpu the build breaks because of the changes made.
Can Anybody faced simillar kind if problem please guide me through this issue .Appreciate your help in this regard.
Thanks
Santosh
Hi Santosh,
First try to find out the dependencies and then add. It is a very tedious job.
Thanks,
Hamendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh,
I suppose that you made your changes in a custom module with your namespace. The WCEM Dev and Ext guide gives you detailed information about the enhancement concept and provided examples.
In your case, I guess that you did not configure the 'component dependencies' correctly. In the NWDS, please check for your DC the component dependencies.
Best regards,
Steffen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steffen,
I have added the component dependencies with respect to dpu ,here we are only trying to extend a backend.crm.impl RatingReviewCRM.java class only to edit a method called saveRating .But we are unable to do it .
we are getting the Build error as:
Check for used DCs failed: Cannot build because used component is broken: customer.com/customer/customerinteraction/bo
please guide us on this .. Appreciate your assistance.
HI Steffen,
Really thankful for your response on this issue feels like there is some hope to resolve this problem .
please guide us.
we checked the build.log file generated ,below is the message.
Development Component Build (2015-08-09 08:50:57 GMT-05:00 (EDT))
Component name: customer/customerinteraction/dpu
Component vendor: customer.com
SC compartment:customer.com_PEWCEM30SC1_1
Configuration: PND_PEWCEMT1_D
Location: PND_PEWCEMT1_D
Source code location: http://SAPPND000:50000/dtr/ws/PEWCEMT1/customer.com_PEWCEM30SC1/dev/inactive/DCs/customer.com/customer/customerinteraction/dpu/_comp/
DC root folder: D:\customer_naveen.jdi\4\DCs\customer.com\customer\customerinteraction\dpu\_comp\
DC type: J2EE
DC subtype: Enterprise Application
Host: VWSDEV000
DC Model check:
DC is available locally
ERROR: Check for used DCs failed: Cannot build because used component is broken: customer.com/customer/customerinteraction/bo(customer.com_PEWCEM30SC1_1)
Build failed with errors.
We get this error every time we build the application with the changes we make .
we follwed the steps mentioned in the dev and Extn Guide chapter 9 but we still get the same error in build log.
Added to this we see there are no custom files created in this DC we are the first to try creating the custom file of the standard in this DC .
please guide us on this .. Appreciate your assistance.
Hi Santosh,
in NWDS, please open the 'Component Browser' view and mark your custom bo module part. The 'Development Infrastructure' perspective should offer you a 'Component' view as well. Here you find the tab 'Overview'. And for 'local Build State' a link to the build log.
That log shows detailed information.
BR,
Steffen
Hi Steffen,
We have opened the build log in the component view tab overview tab and local build below is the error messages captured
[javac] Compiling 1 source file to D:\CustTest.jdi\1\t\6BE4A7FC436DC4E4C8E1152A91B67E13\classes
[javac] ERROR: D:\CustTest.jdi\1\DCs\customer.com\customer\customerinteraction\bo\_comp\src\com\customer\wec\module\customerinteraction\rating\backend\impl\crm\ZRatingReviewCRM.java(cat): package com.sap.wec.module.customerinteraction.rating.backend.impl.crm does not exist
[javac] ERROR: import com.sap.wec.module.customerinteraction.rating.backend.impl.crm.RatingReviewCRM;
[javac] ERROR: ^
[javac] ERROR: D:\CustTest.jdi\1\DCs\customer.com\customer\customerinteraction\bo\_comp\src\com\customer\wec\module\customerinteraction\rating\backend\impl\crm\ZRatingReviewCRM.java:4: package com.sap.wec.module.customerinteraction.rating.model.interf does not exist
[javac] ERROR: import com.sap.wec.module.customerinteraction.rating.model.interf.RatingReviewModel;
[javac] ERROR: ^
[javac] ERROR: D:\CustTest.jdi\1\DCs\customer.com\customer\customerinteraction\bo\_comp\src\com\customer\wec\module\customerinteraction\rating\backend\impl\crm\ZRatingReviewCRM.java:10: cannot find symbol
[javac] ERROR: symbol: class RatingReviewCRM
[javac] ERROR: public class ZRatingReviewCRM extends RatingReviewCRM {
[javac] ERROR: ^
[javac] ERROR: D:\CustTest.jdi\1\DCs\customer.com\customer\customerinteraction\bo\_comp\src\com\customer\wec\module\customerinteraction\rating\backend\impl\crm\ZRatingReviewCRM.java:20: cannot find symbol
[javac] ERROR: symbol : class RatingReviewModel
[javac] ERROR: location: class com.customer.wec.module.customerinteraction.rating.backend.impl.crm.ZRatingReviewCRM
[javac] ERROR: public void setRatingData(RatingReviewModel ratingObject) {
[javac] ERROR: ^
[javac] ERROR: D:\CustTest.jdi\1\DCs\customer.com\customer\customerinteraction\bo\_comp\src\com\customer\wec\module\customerinteraction\rating\backend\impl\crm\ZRatingReviewCRM.java:16: cannot find symbol
[javac] ERROR: symbol : variable super
[javac] ERROR: location: class com.customer.wec.module.customerinteraction.rating.backend.impl.crm.ZRatingReviewCRM
[javac] ERROR: return super.saveRating(workFlowEnabled, ratingProfile);
[javac] ERROR: ^
Here we already imported the RatingReviewCRM and extended the same class , it did not show any error in the java class but in the log it show the above error message as does not exist.
import com.sap.wec.module.customerinteraction.rating.backend.impl.crm.RatingReviewCRM;
public class ZRatingReviewCRM extends RatingReviewCRM {
Please suggest us steffen do let us know if you need any further information. Appreciate your help.
Thanks
Santosh
Hi Santosh,
ok, that's the right log now. Unfortunately, it is not easy to read as the lines are wrapped. I am sure that you forgot some dependencies. Did you create projects of all SAP standard module parts?
Your customerinteraction/bo part should have dependencies to the SAP standard customerinteraction/bo, the customerinteraction/intf and the wec/frw/tc/core.
Best regards,
Steffen
Hi Steffen,
Thank you for your reply
As you mentioned the above, While adding the dependencies we are getting the error " Some of the new references are either deprecated or protected by Access control list(ACL) "
We continue with that error and build the module but build is failed.
We defined our Custom(ZRatingReviewCRM.java) class in Backendobject-config.xml but getting
an exception while communicate with the back end: Current class [loader]=sap.com/wec~frw~tc~core~app@com.sap.engine.boot.loader.ResourceMultiParentClassLoader@36f6a610@alive
java.lang.ClassNotFoundException: com.customer.wec.module.customerinteraction.rating.backend.impl.crm.ZRatingReviewCRM
Thanks,
Santosh
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.