cancel
Showing results for 
Search instead for 
Did you mean: 

How to integrate web dynpro ABAP and web dynpro Java applications?

Former Member
0 Kudos

Dear All

We have three applications - 2 in web dynpro ABAP and 1 in web dynpro java.

My requirement is to connect the 2 web dynpro ABAP applications with the web dynpro java application.

Web dynpro ABAP applications will call web dynpro java application on the execution of an action.

Certain parameters will be passed from web dynpro ABAP applications to web dynpro java application.

It is also required that user should be able to navigate back to web dynpro ABAP application from web dynpro java application. While navigating back, web dynpro ABAP application should be in the same state as they were in earlier i.e. without any loss of data.

Anybody knows how to achieve this?

Kindly let me know if you need any further information.

Regards

Vineet Vikram

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I think the only way to achieve this is using Potal navigation. This is because both the applications run in different severs. So internal navigation is not possible.

You can do like this:

Create ivews for both WebDynpro ABAP and WebDynpor Java applications.

Use "WDPortalNavigation.navigateAbsolute(ivew)" to navigate from WebDynpro ABAP Ivew to WebDynpor Java application Ivew.

How to keep user selected values in the WebDynpro ABAP Ivew?

Before navigating store all the selected values in client session and navigte to WebDynpro Java Ivew.

Again navigate back to WebDynpro ABAP Ivew. Every time in the init method of WebDynpro ABAP Application check whether any selected values present in client session. If yes then make sure to select those values by default in the screen.

You can think about work protect mode also in Portal.

Regards,

Charan

Former Member
0 Kudos

Hi

How can we store user selected values in client session?

Regards

Vineet Vikram

Former Member
0 Kudos

Hi,

In WebDynpro for Java you can use below code:


WDScopeUtil.put(WDScopeType.CLIENTSESSION_SCOPE,"KEY","Value");
WDScopeUtil.get(WDScopeType.CLIENTSESSION_SCOPE,"KEY").toString();

Regards,

Charan

Former Member
0 Kudos

Hi,

You can maintain the clinet side data in session.

Code to maintain the client side data in session

String test1 = wdContext.currentContextElement().getTest1();

String test2 = wdContext.currentContextElement().getTest2();

IMaintainScope maintainer = Utils.getScopeMaintainer(WDScopeType.CLIENTSESSION_SCOPE);

maintainer.getScope().put("Test1", test1);

maintainer.getScope().put("Test2", test2);

//Retrieving the data from session

if(maintainer.getScope().get("Test1") != null)

{

String test1= maintainer.getScope().get("Test1").toString();

}

if(maintainer.getScope().get("Test2") != null)

{

String test2= maintainer.getScope().get("Test2").toString();

}

Hoe this helps you...

Regards,

Saleem

Answers (0)