on 08-26-2013 3:24 PM
Hi
My scenario is how to transfer data to webdynpro apllication through URL .
Example :
http://------------.--------.com:800/sap/bc/webdynpro/sap/zwd_vbak?sap-language=EN&vbeln=0000000123
please help me solution or document
Hi,
Create the Parameters in the HANDLEDEFAULT method of the window and read the parameters.
Check the below documents for reference:
http://scn.sap.com/docs/DOC-34850
You can also use class cl_http_request method get_uri_parameters to read the url parameters.
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 Kiran ,
Thanks for sharing information
I have flow this document but got some error in my application
I am new in webdynpro .please sharing any full document for that requirment.
Regards
sanjeet
Hi,
I just created a document. Check this: http://scn.sap.com/docs/DOC-45729
Hope this helps.,
Revert back for further assistance.
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Here you can add data in your URL..
DATA: w_url TYPE string,
w_value TYPE string.
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = '<your existing application name>' like zmy_app.
IMPORTING
out_absolute_url = w_url.
CALL METHOD cl_http_server=>if_http_server~append_field_url
EXPORTING
name = 'vbeln'
value = w_value "" here you can give your id... 0000000123
CHANGING
url = w_url.
" for opening new window at same action using new url..
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_external_window( url = w_url ).
lo_window->open( ).
Here is code to fetch vbeln value..
DATA lv_server_id TYPE string.
lv_server_id = wdr_task=>client_window->get_parameter( 'vbeln').
IF lv_server_id IS NOT INITIAL.
Do your work..
endif.
BR
.. Chandra..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.