cancel
Showing results for 
Search instead for 
Did you mean: 

Sending data from external web application to my Web Dynpro application

Former Member
0 Kudos

Hi SAP expterts,

in one of my my web dynpro application views I use an IFrame to contain an external web application. This web application is basically a single HTML page (residing on the client) with HTML, Javascript code and an embedded COM object which the user can operate on. Now I need to pass data from this web application back to my web dynpro application, is there any way I can use Javascript or other technology to achieve this?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bernt,

You can use query strings. You can write below code Window->Inbound Plug to get query strings.

DATA: L_URL_PARAMETERS TYPE TIHTTPNVP,
        L_URL_PARAMETER  TYPE line of TIHTTPNVP.


  WDEVENT->GET_DATA(
  EXPORTING
  NAME = IF_WD_APPLICATION=>ALL_URL_PARAMETERS
  IMPORTING
  VALUE = L_URL_PARAMETERS ).

  read TABLE l_url_parameters INTO l_url_parameter
                           with KEY name = 'product_id'.

Former Member
0 Kudos

Thanks for replying Erhan,

but could you elaborate a little? Do you mean that I should pass data back and forth between the external application and the web dynpro by updating the URL?