cancel
Showing results for 
Search instead for 
Did you mean: 

How to read data from ITS to Web Dynpro

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

ChandraMahajan
Active Contributor
0 Kudos

Hi,

i have used the way of getting the data appended to URL. try below link. it may be useful to you.

regards,

Chandra

(Award points if helpful)

mohammed_anzys
Contributor
0 Kudos

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 )

Former Member
0 Kudos

hi chandra ,

I need to send data from ITS to web Dynpro .In its it seem that you have fired out bound plug that will send parameters .I want to read existing URL .