on 05-25-2010 8:55 AM
Hi,
Im using WD 7.11 and got this warning when I added a BAPI to the model:
Class is a raw type. References to generic type Class<T> should be parameterized
This is just a warnig but when I try to activate this DC I get the following error:
javac] ERROR: ...\model\Bapiret2.java:343: <identifier> expected
javac] ERROR: static void registerMCFactory(java.util.Map<String, Object> mcFactories) {
javac] ERROR: ...\model\Bapiret2.java:344: ')' expected
javac] ERROR: registerMCFactory(mcFactories, "...model.Bapiret2", ....model.TESTModel.class, ....model.Bapiret2.class);
javac] ERROR: ...\model\Bapiret2.java:344: <identifier> expected
javac] ERROR: registerMCFactory(mcFactories, "...model.Bapiret2", ...model.TESTModel.class, ...model.Bapiret2.class);
javac] ERROR: ...\model\Bapiret2.java:344: '{' expected
javac] ERROR: registerMCFactory(mcFactories, "...model.Bapiret2", ...model.EHS_GRModel.class, ...model.Bapiret2.class);
........................
Also this warning:
WARNING: DC "...model ..." depends on deprecated DC sap.com/tc/bl/jrfc/api (sap.com_ENGFACADE_1) by using its public part api.
Im not sure is this is all related, I would like to solve the warning at least:
"Class is a raw type. References to generic type Class<T> should be parameterized"
Thanks in advance
Jean Carlo
there was a mix up of versions. I got to fix some configuration on the NWDI server but still there are traces of 1.4 compiling on 1.5 code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U have to replace the <T> by the name of the structure while u want to send the input to a BAPI. This is is used when u are sending a list to any BAPI as an Input parameter.
The template will be:
List<(structurename)> listForBAPI = new ArrayList<(structurename)>();
where the (structurename) is an object which will hold single record of the input added to the list and sent to BAPI
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jean
IF you are using the NWDS 7.11, you must have Java 1.5 or higher. Uninstall all the lower version of Java from your desktop and re-start your PC and then update JAVA_HOPME envirometal variable (update JAVA_HOME system enviromental variable in my computer (My computer > Priperties >> Advance >> Startup and Recovery >> Enviromental Variable >> System Variables >> Add new JAVA_HOME parameter with path for installed Java JDK))
Then try to import the model from NWDS, It will work.
Hope it will helps
Regards
Arun
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.