cancel
Showing results for 
Search instead for 
Did you mean: 

How to open WD- Adobe form open in new window -without Portal header

Former Member
0 Kudos

Hi,

In my WD application -MAINVIEW , I made 2 different groups under ROOTUIELEMENTCONTAINER

GROUP1 -Selection fields with search button - with ROW LAYOUT

GROUP2 -INTERACTIVE FORM - with FLOW Layout

Basically when we click the Search button I get the form in the same view underneath GROUP1.

I am calling this WD application in Portal by giving the hyperlink via BSP application.So when they run the WD application now With portal headers it is still becomming heightwise small area.

Is there a way with which we can open form in completely new window without the Portal Headers?

Rgds

Vara

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

yes.. you can launch the form from a selection screen into a new window...

I am using this to launch an editable PDF from a selection screen into a new window. This code is placed on the event handler of my Create button on the selection screen.


  DATA: str TYPE string,
        l_window1 TYPE REF TO if_wd_window_manager,
        l_cmp_api TYPE REF TO if_wd_component,
        result TYPE REF TO if_wd_window,
        lt_parms TYPE TIHTTPNVP,
        ls_parms like LINE OF lt_parms.

  ls_parms-name  = 'OPERATION'.
  ls_parms-value = 'C'.
  APPEND ls_parms to lt_parms.

  CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = 'your_wd_application_here'
      in_parameters = lt_parms               " <- any URL parameters you need to send
    IMPORTING
      out_absolute_url     = str.
  l_cmp_api = wd_comp_controller->wd_get_api( ).
  l_window1 = l_cmp_api->get_window_manager( ).

  result = l_window1->create_external_window(
    URL = STR ).

  result->open( ) .


You have to be aware, though, that you will lose ALL your context data b/c you are opening a new user session. That's why I had to use url parameters to pass data to my form.

Former Member
0 Kudos

Robert,

Thank you for the code snippet.

WD application opens in new window but it just has selection-screen because as i lost all conext data b/c.

Normally i used to get selection-screen & adobe form output upon hitting the CREATE BUTTON.

How do i send URL parameters ?

Rgds

Vara

Former Member
0 Kudos

you fill the parameters table with what you need to pass.

ls_parms-name = 'OPERATION'.

ls_parms-value = 'C'.

APPEND ls_parms to lt_parms.

here, i pass OPERATION=C to my window.. then, I use that to re-populate my context all over again.

Former Member
0 Kudos

Robert ,

My URL is always same when it is selection-screen or when it is with adobe form.

Do i need to change something to reflect changes?

http://sape-dev****net:8000/sap/bc/webdynpro/sap/zschedule?sap-language=EN

rgds

Vara

Former Member
0 Kudos

what i did is create a WD application for the selection screen and another for the PDF form - they are in 2 separate Views in 2 different windows.

This way, you have a url for your selection screen application and another for your PDF application

Former Member
0 Kudos

Thank you Robert It worked!

Awarded full points.

Rgds

Vara

Answers (0)