Skip to Content
0

ISCOPE class not found in NW7.4 migration

Aug 24, 2017 at 07:23 PM

48

avatar image
Former Member

Hello,

We are doing migration of custom webdynpro java development from NW7.01 to NW7.4 version. While migrating, we are getting the IScope class is not resolved in NW7.4.

Can anyone please let us know in which component or jar file, we can find the Iscope class for NW7.4.

The error during compilation like

package com.sap.tc.webdynpro.services.session does not exist

[javac] ERROR: import com.sap.tc.webdynpro.services.session.IScope;

Thanks

Kanail

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Milen Dontcheff
Sep 08, 2017 at 06:33 AM
1

Here I do post the reply of the SAP Development Support to serve as a further reference...

***

The jar _webdynpro_services.jar is removed from higher releases in design time and hence you will not be able to use IScope and Utils classes, however you can try using WDScopeType , WDScopeUtil or WDScopeManagementType.


As per the SAP Note 928485 - Do not use internal APIs (java.lang.NoSuchMethodError)

use of Internal Web Dynpro Classes and Interfaces are not supported as they are subject to change at any time without warning and are not documented in detail hence it is recommended to use interfaces that start with IWD and only use classes that start with WD.

***


So, you will need to change your code accordingly to the newly implemented architecture of WebDynpro for Java, running on releases 7.1 and higher.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hello Milen,

Thank you for your response regarding the Iscope Class.Earlier we were using the code to get and set session between 2 component using below code like

IScope scope = Utils.getCurrentClientSession().getScope();
pertElement = (IWDNodeElement)scope.get("PertDetails");

scope.put("PertDetails",pertElement);

Here PertDetails is a node.

Now in NW7.31 onwards , we have to use WDScopeType , WDScopeUtil or WDScopeManagementType.

Even to get and set method has the parameter only string but earlier we can pass the parameter object like table and node. Can you please help me out , how we can change the code for session to get and set the value for node or table object.


Thanks

Kanailal Metya

0