on 05-24-2011 9:06 AM
hi
In the below standard code it is giving many errors in like
the import com.sap.tc.webdynpro cannot be resloved
com.sao.tc.logging cannot be resloved
wdcontrollerapi cannot be resloved like than this many errors for the below.
can any please help me how to relsove the errors
import com.sap.xss.hr.per.in.family.review.wdp.IPrivateReviewView;
import com.sap.xss.per.helpers.F4TextHelper;
import com.sap.xss.per.helpers.TextFieldInfo;
import com.sap.tc.webdynpro.progmodel.api.WDVisibility;
//@@end
//@@begin documentation
//@@end
public class ReviewView
{
/**
Logging location.
*/
private static final com.sap.tc.logging.Location logger =
com.sap.tc.logging.Location.getLocation(ReviewView.class);
static
{
//@@begin id
String id = "$Id$";
//@@end
com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);
}
/**
Private access to the generated Web Dynpro counterpart
for this controller class. </p>
*
Use <code>wdThis</code> to gain typed access to the context,
to trigger navigation via outbound plugs, to get and enable/disable
actions, fire declared events, and access used controllers and/or
component usages.
*
@see com.sap.xss.hr.per.in.family.review.wdp.IPrivateReviewView for more details
*/
private final IPrivateReviewView wdThis;
/**
Root node of this controller's context. </p>
*
Provides typed access not only to the elements of the root node
but also to all nodes in the context (methods node<i>XYZ</i>())
and their currently selected element (methods current<i>XYZ</i>Element()).
It also facilitates the creation of new elements for all nodes
(methods create<i>XYZ</i>Element()). </p>
*
@see com.sap.xss.hr.per.in.family.review.wdp.IPrivateReviewView.IContextNode for more details.
*/
private final IPrivateReviewView.IContextNode wdContext;
/**
A shortcut for <code>wdThis.wdGetAPI()</code>. </p>
Represents the generic API of the generic Web Dynpro counterpart
for this controller. </p>
*/
private final com.sap.tc.webdynpro.progmodel.api.IWDViewController wdControllerAPI;
/**
A shortcut for <code>wdThis.wdGetAPI().getComponent()</code>. </p>
Represents the generic API of the Web Dynpro component this controller
belongs to. Can be used to access the message manager, the window manager,
to add/remove event handlers and so on. </p>
*/
private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
public ReviewView(IPrivateReviewView wdThis)
{
this.wdThis = wdThis;
this.wdContext = wdThis.wdGetContext();
this.wdControllerAPI = wdThis.wdGetAPI();
this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
}
//@@begin javadoc:wdDoInit()
/** Hook method called to initialize controller. */
//@@end
public void wdDoInit()
{
//@@begin wdDoInit()
//@@end
}
//@@begin javadoc:wdDoExit()
/** Hook method called to clean up controller. */
//@@end
public void wdDoExit()
{
//@@begin wdDoExit()
//@@end
}
//@@begin javadoc:wdDoModifyView
/**
Hook method called to modify a view just before rendering.
This method conceptually belongs to the view itself, not to the
controller (cf. MVC pattern).
It is made static in order to discourage a way of programming that
routinely stores references to UI elements in instance fields
for access by the view controller's event handlers etc.
The Web Dynpro programming model recommends to restrict access to
UI elements to code executed within the call to this hook method!
*
@param wdThis generated private interface of the view's controller as
provided by Web Dynpro; provides access to the view controller's
outgoing controller usages etc.
@param wdContext generated interface of the view's context as provided
by Web Dynpro; provides access to the view's data
@param view the view's generic API as provided by Web Dynpro;
provides access to UI elements
@param firstTime indicates whether the hook is called for the first time
during the lifetime of the view
*/
//@@end
public static void wdDoModifyView(IPrivateReviewView wdThis, IPrivateReviewView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
{
//@@begin wdDoModifyView
String subtype = wdContext.currentSubtypesElement().getSubtype();
if (subtype.equals("2")) {
wdContext.currentContextElement().setStandardIsVisible(
WDVisibility.VISIBLE);
wdContext.currentContextElement().setIsVisible(WDVisibility.NONE);
wdContext.currentContextElement().setStandardVisible(WDVisibility.VISIBLE);
}else if (subtype.equals("6")) {
wdContext.currentContextElement().setStandardIsVisible(
WDVisibility.VISIBLE);
wdContext.currentContextElement().setIsVisible(WDVisibility.NONE);
wdContext.currentContextElement().setStandardVisible(WDVisibility.NONE);
}
else if(subtype.equals("5") || subtype.equals("8") || subtype.equals("10") || subtype.equals("14")){
wdContext.currentContextElement().setStandardIsVisible(
WDVisibility.NONE);
wdContext.currentContextElement().setIsVisible(
WDVisibility.VISIBLE);
wdContext.currentContextElement().setStandardVisible(WDVisibility.NONE);
}
else
{
wdContext.currentContextElement().setStandardIsVisible(
WDVisibility.NONE);
wdContext.currentContextElement().setIsVisible(
WDVisibility.NONE);
wdContext.currentContextElement().setStandardVisible(WDVisibility.NONE);
}
// Other Allowances
if (wdContext.currentSelectedInfotypeElement().getKdbsl().equals("X"))
{
wdContext.currentContextElement().setOther_Allowances(true);
}
else
{ wdContext.currentContextElement().setOther_Allowances(false);
}
//Child Education Allowance
if (wdContext.currentSelectedInfotypeElement().getKdzul().equals("X"))
{
wdContext.currentContextElement().setChild_Education_Allowance(true);
}
else
{ wdContext.currentContextElement().setChild_Education_Allowance(false);
}
// Children_Hostel_Allowance
if (wdContext.currentSelectedInfotypeElement().getKdgbr().equals("X"))
{
wdContext.currentContextElement().setChildren_Hostel_Allowance(true);
}
else
{ wdContext.currentContextElement().setChildren_Hostel_Allowance(false);
}
TextFieldInfo[] fieldInfo = new TextFieldInfo[]
{ new TextFieldInfo("Fasex", "Gender"),
new TextFieldInfo("Fanat", "Nationality"),
new TextFieldInfo("Fana2", "OtherNationality"),
new TextFieldInfo("Fana3", "SecondNationality"),
new TextFieldInfo("Fgbld", "BirthCountry"),
new TextFieldInfo("Fnmzu", "OtherTitle"),
new TextFieldInfo("Fvrsw", "Name_Prefix")
};
F4TextHelper.GetF4Text( wdThis.wdGetAPI(),
wdContext.nodeSelectedInfotype(),
view,
fieldInfo);
//@@end
}
/*
The following code section can be used for any Java code that is
not to be visible to other controllers/views or that contains constructs
currently not supported directly by Web Dynpro (such as inner classes or
member variables etc.). </p>
*
Note: The content of this section is in no way managed/controlled
by the Web Dynpro Designtime or the Web Dynpro Runtime.
*/
//@@begin others
//@@end
}
Thanks in advance
Deepika.M
Edited by: deepika_indian on May 24, 2011 10:49 AM
Edited by: deepika_indian on May 24, 2011 10:50 AM
Edited by: deepika_indian on May 24, 2011 11:49 AM
Hi Deepika,
Can you please check if all the necessary components such as SAP_BUILDT, SAP_JTECHS, EP_BUILDT, SAP-JEE are imported correctly in ESS track.
Regards,
Vivek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vivek
Thanks for your response.
Here we are using NWDS 7.0 version and we have imported all SAP_BUILT, SAP_J TECHS, EP_BUILD T, SAP-JEE of 7.0.1 version.will there be any in compatibility because i am getting many errors in the standard coding where it giving that some jar files missing ,com.xss file not available like this many.
can u please guide me
Thanks & Regards
Deepika.M
Edited by: deepika_indian on May 27, 2011 8:39 AM
Edited by: deepika_indian on May 31, 2011 6:42 AM
Hi Deepika,
It seems that the error could be because of the version mismatch between ESS SCA file and the supported SCA file like SAP_BUILDT. Can you please let us know what is version of ESS SCA file you are using.
Please go through the following Wiki Pages to check whether you are using the correct versions or not.
ESS 100 must be build agains 640 build plugins, while ESS 600 can be used for 700.
For 640 (ESS 100)
https://wiki.sdn.sap.com/wiki/display/ERPHCM/SPsMismatchinERP2004
For 700 (ESS 600):
https://wiki.sdn.sap.com/wiki/display/ERPHCM/HOWTOGETRIDOFSPSTACKMISMATCHISSUES
Regards,
Vivek
Edited by: vivek.saraogi on May 31, 2011 7:18 AM
Hi Vivek
I have pasted all the components which are used in server.can u please check it and guide me.
BP_ERP5ESS 1.0 SP18 (1000.1.0.18.0.20100830051959) SAP AG MAIN_ERP05VAL_C 20101223183222
sap.com BP_ERP5MSS 1.0 SP18 (1000.1.0.18.0.20100830033715) SAP AG MAIN_ERP05VAL_C 20101223183226
sap.com DI_CBS 7.00 SP23 (1000.7.00.23.0.20101122112033) SAP AG MAIN_APL70P23_D 20110509211915
sap.com DI_CMS 7.00 SP23 (1000.7.00.23.0.20101122112054) SAP AG MAIN_APL70P23_D 20110509212038
sap.com DI_DTR 7.00 SP23 (1000.7.00.23.0.20101122112109) SAP AG MAIN_APL70P23_D 20110509212048
sap.com EP-PSERV 7.01 SP3 (1000.7.01.3.0.20090108071100) SAP AG SAP AG 20101021161551
sap.com EP-WDC 7.01 SP3 (1000.7.01.3.0.20081211162000) SAP AG SAP AG 20101021161701
sap.com SAP-EU 7.01 SP3 (1000.7.01.3.0.20090112112930) SAP AG MAIN_NW701P03_C 20101021162607
sap.com SAP-JEE 7.01 SP7 (1000.7.01.7.0.20100612175953) SAP AG SAP AG 20110516194447
sap.com SAP-JEECOR 7.01 SP7 (1000.7.01.7.0.20100612180141) SAP AG SAP AG 20110516194727
sap.com SAP_BUILDT 7.01 SP7 (1000.7.01.7.0.20100610162200) SAP AG SAP AG 20110521181615
sap.com SAP_ESS 600 SP19 (1000.600.0.19.1.20110408044819) SAP AG MAIN_ERP05PAT_C 20110516202410
sap.com SAP_JTECHF 7.01 SP7 (1000.7.01.7.0.20100612180438) SAP AG SAP AG 20110516194827
sap.com SAP_JTECHS 7.01 SP7 (1000.7.01.7.0.20100612182449) SAP AG SAP AG 20110516203152
sap.com SAP_MSS 600 SP19 (1000.600.0.19.0.20110207050012) SAP AG MAIN_ERP05VAL_C 20110516203751
sap.com SAP_PSS 600 SP18 (1000.600.0.18.0.20100830054704) SAP AG MAIN_ERP05VAL_C 20110516203850
sap.com SAPPCUI_GP 600 SP18 (1000.600.0.18.0.20100830054620) SAP AG MAIN_ERP05VAL_C 20101223183346
Thanks & Regards
Deepika
Hi Deepika,
Please check the compatibility matrix before importing any components in the NWDI Track, Check whether the ESS package deployed is compatible with your backend as well Portal version.
Check in CBS in NWDI track you created whether all DC are showing GREEN symbol.
Regards
tushar shinde
Hi deepika,
Follow the steps
1. Synch all used dcs and build
2. Repair Project Structure and class path
3. Close the DC and reopen it.
All the above can be done through context menu which appears when you right click on the DC in WebDynpro Perspective.
Thanks
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.