cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Webdynpro Java Application from Webdynpro ABAP Application.

Former Member
0 Kudos

Hi,

We have developed one Application using Webdynpro Java and I m in need to call the Webdynpro Java application from Webdynpro ABAP.

Require Suggestions to acheive this.

Thanks In advance.

Reg,

Ajay.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Ajay,

Assuming that both your applications WDA & WDJ are in the portal & you don't have to pass any parameters to the WDJ application.

Write the following code on the action where you would call the WDJ application.

  DATA:

        lr_compcontroller TYPE REF TO ig_componentcontroller,
        l_component TYPE REF TO if_wd_component , 

        lr_port_manager TYPE REF TO if_wd_portal_integration ,
        wa_navigation TYPE navigation.

  lr_compcontroller =   wd_this->get_componentcontroller_ctr( ).
  l_component = lr_compcontroller->wd_get_api( ).
  lr_port_manager = l_component->get_portal_manager( ) .


* The value inserted into the navigation-target field can be found in the Portal
* content administration tab of your portal. It is the ID or PCD Location field 
  wa_navigation-target = pcd. " Please provide the PCD Location of the WDJ Application here.
  wa_navigation-mode   = '0'.  "0 = INTERNAL(same page) and 1 = EXTERNAL(new page).

  CALL METHOD lr_port_manager->navigate_absolute
    EXPORTING
      navigation_target = wa_navigation-target
      navigation_mode   = wa_navigation-mode.

You can get the PCD from the Page properties of the WDJ application page in the Portal.

Hope it helps!

Warm regards,

Upendra Agrawal

Former Member
0 Kudos

Hi Upendra,

I tried giving PCD Location path and called WDA from portal. But Still the application is not calling WDJ.

I have created LINK TO ACTION. On Action , i followed the same procedure as you mentioned. Pl suggest me , if there need modification.

Regards,

Ajay

Former Member
0 Kudos

Dear Ajay,

Please note that both the application i.e the *called application

and the calling application* should be on portal(atleast their iVew must be created).

The only thing where you may have gone wrong is the PCD path.

So, check it again.

Warm Regards,

Upendra Agrawal

ChandraMahajan
Active Contributor
0 Kudos

Hi,

Please refer,

Thanks,

Chandra