on 08-01-2007 9:51 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
Thanks, I think with this answers i will get it.
Carola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.