on 11-05-2014 3:54 PM
Hi all,
i created a new Webdynpro application and i need to execute it from a ABAP report but i need to pass some specifics parameters to my Webdynpro like customer number or executive date.
I searched the solution on SDN but nothing conclusive.
To execute my Webdynpro application from report ABAP i use the following code :
DATA : link TYPE string,
lv_param TYPE string.
CALL FUNCTION 'WDY_CONSTRUCT_URL'
EXPORTING
* PROTOCOL =
* INTERNALMODE = 'X'
application = 'ZMY_WD_APPLICATION' " Your application name
IMPORTING
out_url = link. " here you will recive the url for application
*class for opening the application in browser
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = link
parameter = lv_param
EXCEPTIONS
OTHERS = 1.
And it's work fine, but i would like to pass some parameters.
Thanks for your help.
Solution : http://scn.sap.com/docs/DOC-45729
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eric,
Please use the class cl_http_server=>append_field_url to add parameters to a URL.
DATA : link TYPE string,
lv_param TYPE string.
CALL FUNCTION 'WDY_CONSTRUCT_URL'
EXPORTING
* PROTOCOL =
* INTERNALMODE = 'X'
application = 'ZMY_WD_APPLICATION' " Your application name
IMPORTING
out_url = link. " here you will recive the url for application
call method cl_http_server=>append_field_url
exporting
name = * Name of the field
value = *Value of the field
changing
url = link.
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = link
parameter = lv_param
EXCEPTIONS
OTHERS = 1.
In the webdynpr component if you want to retrieve the passed values,, this piece of code will help you in fetching.
Data: lv_value type String.
lv_value = wdr_task=>client_window->get_parameter( ‘Parameter name’ ).
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.