cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a Webdynpro Application in using WDURLGenerator.getApplicationURL

Former Member
0 Kudos

Hi,

I have to call a webdynpro application in an external window using the application name. Please note that no iViews are created out of the application which i am going to call.

I have DC1 and DC2 and from the Comp Controlller of DC1 , i need to invoke the application in DC2.

String depObjectName =wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();

WDDeployableObjectPart depObjectpart=WDDeployableObject.getDeployableObjectPart(depObjectName,"TestApp",WDDeployableObjectPartType.APPLICATION);

String url = WDURLGenerator.getApplicationURL(depObjectpart) ;

* *

window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"Test View");

* *

window.show();

Is this the correct API to get getDeployableObjectName which is in the different DC.

Please let me know the correct API which i can use to get the getDeployableObjectName and the subsequently the Application which is availbale in the different DC.

Thanks and Regards,

Sekar

Accepted Solutions (0)

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

Sekar,

You are using the correct API to get deployed applciation details. But i would rather use following code to get the deployableobject.

WDDeployableObjectPart objectPart = WDDeployableObject.getDeployableObjectPart("sap.com/<Name of second DC>","<Application you want to call>",

WDDeployableObjectPartType.APPLICATION));

Chintan

Former Member
0 Kudos

Hi Chintan Virani,

Thanks for your reply.

Is it possible to get to know through the APis that the Webdynpro Application Deployed in the server is started.

I hope some API's will be available.I need to open this application only when it is started.

I tried this,

IWDDeployableObject deplObj = WDDeployableObject.getDeployableObject("TestApp");

if ( deplObj.getState() == WDDeployableObjectState.STARTED ) {

// do something

}

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create deployable object TestApp' since it is not a Web Dynpro object. null

Thanks and Regards,

Sekar

Former Member
0 Kudos

Hi,

Just build your DC

Right Click on Project>Development Component>Build DC

Now, Right Click on Project>Development Component>Deploy

Now, run your application.

Regards,

Murtuza

Former Member
0 Kudos

Hi,

Thanks for your reply.

Please let me know if there is a way to check whether the Deployed Application is Started or not.

Based on the output perfom the operation.

Appreciate your response.

Thanks and Regards,

Sekar