cancel
Showing results for 
Search instead for 
Did you mean: 

CAll WD Application from a Dynpro UI, transaction for WD Appl call

Carola1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello.

How can I call my webdynpro application using a transaction code.?

I would like to call the WD application with several parameters.

Finally I would like to place a button or menue entry in a Dynpro to call my Webdynpro Application.

Kind regards.

Carola

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Carola,

<i> I would like to call the WD application with several parameters.</i>

See example program DEMO_START_WD_IN_PLACE2

you can use FM WDY_EXECUTE_IN_PLACE.

Then you can create a TCODE via SE93 for the ABAP Programm.

Regards

Frank

Answers (4)

Answers (4)

Carola1
Product and Topic Expert
Product and Topic Expert
0 Kudos

solved.

Carola1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello.

at the moment the parameters are set to the relevant context node in the inbound plug method.

But I need the parameter values already in

the DOINIT method of the view. the inbound handler seems to be called afterwards.

How can I pass the parameters earlier, e.g. in the comp controller ??

Kind regards.

Carola

Former Member
0 Kudos

Hi Carola,

Pass the parameters in the inbound plug handler of the window. Have a setter method in the component controller to set the context attributes. Pass the values in the inbound handler to the method using wd_comp_controller->method_name and set it in the component controller's context.

Regards

Nithya

Carola1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Nithya

What I did is:

1) Inbound plug of the window with param, is also startup plug of the window.

2) Method set_navi in the comp controller with importing params objcat, objtyp, polcat

Within the method, the context attributes are set:

ls_policyfor-objcat = objcat.

ls_policyfor-objtyp = objtyp.

ls_policyfor-polcat = polcat.

  • navigate from <CONTEXT> to <POLICYFOR> via lead selection

lo_nd_policyfor = wd_context->get_child_node( name = wd_this->wdctx_policyfor ).

lo_el_policyfor = lo_nd_policyfor->get_element( ).

lo_el_policyfor->set_static_attributes(

exporting

static_attributes = ls_policyfor ).

The problem is as before: I need the data in the DOINIT method of the view or even in the DOINIT method of the comp controller. The inboundhandler seems to be called too late.

Did I do something wrong ??

Kind regards,

Carola

3)Call of method set_navi in inbound plug handler:


     wd_comp_controller->set_navi(
       objcat = objcat
       objtyp = objtyp
       polcat = polcat

Carola1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Okay, I solved it in this way:

Because the WDDOINIT method of all controllers are performed BEFORE the inbound handlers, I moved the methods call which need the import parameter values to the inbound plug handler.

Carola

Carola1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks, I think with this answers i will get it.

Carola

Former Member
0 Kudos

Hi Carola,

You can also add WDA to you favourites in Menu.

Right click on menu.

Select add other object

Select WDA.

Select your application.

Now you have a simple menu option that will launch your WDA app.

regards

Phil

Carola1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Phil.

ok, but what's about parameters that I want to pass to the WD Application ?

Is it possible in some way ?

Kind regards.

Carola

Former Member
0 Kudos

Parameters can be passed in yes.

http://<host>:port/wda?p1=X&p2=Y

On the plug behind your application (normal default on the window)

define the parameters required.

With regard to the menu option. This is a static URL concept.

So it can pass parameters in.

The popup window you see has a grid for the parameters.

NAMe and VALUE pairs

If you need dynamic parameters, you must code this.

regards

Phil.