cancel
Showing results for 
Search instead for 
Did you mean: 

Settings to use UWL APIs in Web Dynpro

Former Member
0 Kudos

Hello,

I would like to develop a Web Dynpro Screen for UWL. For that I want to access the IUWLService API. When I wrote code like the following:

IUWLService uwlService=(IUWLService)PortalRuntime.getRuntimeResources().getService(IUWLService.ALIAS_KEY);

UWLContext myContext = new UWLContext();

try {

IUWLSession mySession = uwlService.getUwlSessionForWebDynproClient(myContext);

} catch (Exception e) {

IWDMessageManager myMan = wdComponentAPI.getMessageManager();

myMan.reportSuccess(e.toString());

}

I am getting an error: IUWLService cant be resolved. I tried to add plugin, but there is no UWL Plugin.

Please let me know what are the settings needed to access UWL APIs in Web Dynpro?. In other forums, people were talking about adding library, I dont know how to add it.

I appreciate any kind of help. Thanks.

Sunita.

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

Sunita,

You will need to create a UWL project in NWDS by clicking File --> New --> Other --> Universal WorkList.

Please refer this [document|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/405729e9-314f-2a10-eab6-fcebe6fe8cba] for more details.

Chintan

chintan_virani
Active Contributor
0 Kudos

Additionally if you just want to add the UWL library do this.

Right click on your project in NWDS --> Java Build Path --> Add External JARs --> Browse to C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.netweaver.bc.uwl.plugin_1.0.0 --> lib --> Select both the jars and add it.

Note: The IDE path if differs use the path accordingly.

Chintan

Former Member
0 Kudos

Chitan,

Thanks for help. However, I am getting error now on Portal Runtime. Do you know how to resolve this?. Thanks, Sunita.

Answers (0)