cancel
Showing results for 
Search instead for 
Did you mean: 

Opening Web Dynpro application from POWL

former_member213219
Participant
0 Kudos

Hello Experts,

Need your help and suggestions.

Please tell me the significance of transaction LPD_CUST.

Our requirement is that: There is a button in our POWL application, now on clicking on the same we want to open a new window (Web Dynpro for ABAP application), which have a textview where users can enter some text.

I have gone through the link LINK: [;

Please tell me the significance of ROLE and INSTANCE variable used in configuration.

Thanks,

Harish

Accepted Solutions (0)

Answers (1)

Answers (1)

Madhu2004
Active Contributor
0 Kudos

HI ,

Doing the following steps:

1) Create a Global class attribute GR_COMP_INSTANCE of type REF TO IWCI_*Component name.Suppose the powl component name is ZPOWL then the type would be IWCI_ZPOWL.

2) Update the value of the above attribute in the POWL component controller DOINIT method

GR_COMP_INSTANCE ?= WD_THIS.

3) Create a method in the POWL component contoller to open the new application using the methods

CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = lv_application_name
    IMPORTING
      out_absolute_url = lv_out_absolute_url.

  l_api_window_open = wd_this->wd_get_api( ).
  l_component       = l_api_window_open->get_component( ).
  l_window_manager  = l_component->get_window_manager( ).

  CALL METHOD l_window_manager->create_external_window
    EXPORTING
      url    = lv_out_absolute_url
    RECEIVING
      window = l_window.

  IF l_window IS NOT INITIAL.
    l_window->open( ).
  ENDIF.

4) using the above isntance call the new method from the HANDLE_ACTIONS of the POWL feeder class.

Regards,

Madhu

former_member213219
Participant
0 Kudos

Thanks Madhu for your response.

I am not using POWL inside a Web Dynpro application. I will directly create a POWL iView and give application id there.

Now from that application I need to call WebDynpro for ABAP screen.

Hope I am able to quote the question correctly.

Thanks,

Harish