on 10-21-2015 1:34 PM
Hi guys
do you have any example or tutorial to Call url of my web dynpro from a zprogram se38.?
I need that user insert the transaction and open the IE browser with my program web dynpro directly.
thanks
Hi,
Try below code.
Data:
EV_URL Type STRING.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = iv_wd_application
in_parameters = it_parameter
IMPORTING
out_absolute_url = ev_url.
"Open browser
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = ev_url
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
bad_parameter = 3
file_not_found = 4
path_not_found = 5
file_extension_unknown = 6
error_execute_failed = 7
synchronous_failed = 8
not_supported_by_gui = 9
others = 10.
if sy-subrc <> 0.
* implement suitable error handling here
endif.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can create transaction for WDA using parameter transaction for WDYID. Check this wiki for reference: http://wiki.scn.sap.com/wiki/display/WDABAP/How+to+Create+a+transaction+code+for+webdynpro+applicati...
Alternately, you can call WDA from ABAP Report, using below code:
* Get Web Dynpro Appplication URL
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'ZWD_APPL_NAME' " Application Name
IMPORTING
out_absolute_url = lv_url.
* Call Web Dynpro Application
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = lv_url .
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ronaldo,
Assign transaction code for your webdynpro application and using call transaction you can access webdynpro from zprogram.
Regards,
aneesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.