on 07-03-2007 12:35 PM
Dear Experts ,
I have requirement where User clicks on specific Shopping cart .On click of it
Web Dynpro Application containing Shopping cart details should open .
Can any one please tell me how can I do so ? If I can pass some data appended to my web Dynpro URL , How can I read URL ? Is this correct way ? If possible please provide with sample code ?
I feel there are other ways as well like memory id filling in ITS and reading it in Web dynpro ? Is that fair practice ?
Point I want make is I need code to read Application URL .
(eg. cl_wd_utilities->CONSTRUCT_WD_URL). How to use this ?
Points will be awarded surely.
Cheers
Parry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
data lo_cmp_api TYPE REF TO if_wd_component,
lo_window_manager TYPE REF TO if_wd_window_manager,
lo_ext_win TYPE REF TO if_wd_window.
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = '<Your WD application name >'
IMPORTING
out_absolute_url = lv_root.
This will give you the root URL , then you need append taht with teh parametres like following
concatenate lv_root '?sap_boid=' lv_boid '&sap_publ=' ls_header-bid_type into lv_root.
and then you can fire an external window with the values
lo_cmp_api = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_cmp_api->get_window_manager( ).
lo_ext_win = lo_window_manager->create_external_window(
url = lv_root
title = 'MyApplication' ).
Thanks
Anzy
(Award points for useful answers )
User | Count |
---|---|
77 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
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.