cancel
Showing results for 
Search instead for 
Did you mean: 

How to read systems from Portal in WDJ application

Former Member
0 Kudos

Hi All,

I want to read Portal's system landscape in Web Dynpro Java application.

I have followed threads :

and included proper JARs, but application is not able to resolve ISystem and ISystems APIs.

Could you please suggest if I am missing out on anything or any other JAR to be added.

Regards,

abhijeet

Accepted Solutions (1)

Accepted Solutions (1)

former_member182598
Active Contributor
0 Kudos

Hi Abhijit,

1. Right click on your project. Go to Properties->Web Dynpro References ->Sharing References

2. Click on Add

3. Add the following line

PORTAL:sap.com/com.sap.portal.ivs.systemlandscapeservice

4. Rebuild your project, Deploy and test.

Thanks

Prashant

Former Member
0 Kudos

Hi Robin,

Could you please tell me in which component can I find tc/ep/semantics/api ?

Hi Prashant,

I tried adding that in Sharing Reference, but it didnt resolve the issue.

Regards,

Abhijeet

Qualiture
Active Contributor
0 Kudos

Hi,

On my NW 7.3 environment, it's in SC 'EP-RUNTIME'

I'm not sure if the same is valid for previous versions though... However, since it is highly discouraged to directly include JAR files to a WDJ application, I would also propose the following for your consideration:

1) Create a new DC of type 'external library'

2) Copy your JAR files to the library folder

3) Create 2 public parts (one for API and one for SDA)

Since you cannot deploy an external library directly, you need to create a J@EE library:

4) Create J2EE server library component and add the SDA public part to its used DC

5) Deploy the J2EE component

6) Add teh API public part of the External Library dc to your Web Dynpro project's Used DC, and add the J2EE server component into the WDJ's library references

For more info, see

Best,

Robin

former_member182598
Active Contributor
0 Kudos

Hi Abhijeet,

Forgot to mention one more point:

You can either deploy the jars as an external library or alternatively put them in the lib folder of the WD Java project.

1. Go to Navigator tab, navigate to lib folder

2. import com.sap.portal.ivs.api_landscape_api.jar and com.sap.portal.ivs.api_portalpcm_api.jar

Rebuild , Deploy and test.

Thanks

Prashant

Former Member
0 Kudos

Hi Robin,

If the SC is already defined with few dependencies on other SC (SAP JTECT etc), will adding other dependency i.e. EP-RUNTIME create any impact/ill effects ?

Regards,

abhieet

Qualiture
Active Contributor
0 Kudos

Hi Abhieet,

It shouldn't cause any issues

Best,

Robin

Answers (1)

Answers (1)

Qualiture
Active Contributor
0 Kudos

Hi Abijeet,

Have you added tc/ep/semantics/api as a used DC? This should contain the ISystem and ISystems classes