cancel
Showing results for 
Search instead for 
Did you mean: 

Passing URL parameter from WD Application url link

0 Kudos

Hi

I want to pass a URL parameter to a Web Dynpro application to be used in one of the methods.

I have to display data correspoding to a parameter called Message ID which i will pass through the URL parameter. For example if I want to see data on a web page for Message ID:12787987

I should be able to just give:

http://hostname/sap/bc/webdynpro/sap/zab_wdp_bi7_alertmsg2&messageid=12787987

where

zab_wdp_bi7_alertmsg2 is the name of my Web Dynpro application.

I am using text view to display the Message ID deatils from a table..

Please help..

Regards

Sunil Kumar

Accepted Solutions (1)

Accepted Solutions (1)

pranav_nagpal2
Contributor
0 Kudos

Hi,

Refer the threads below.......

regards

Pranav

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In your WDA application zab_wdp_bi7_alertmsg2,

1. In parameter tab make entry for parameter say message_id

2. To Read the parameter, Go to the method HANDLEDEFAULT of window.

Call get_string method of import parameter wdevent


  DATA lv_id TYPE string.
  CALL METHOD wdevent->get_string
    EXPORTING
      name  = 'MESSAGE_ID'
    RECEIVING
      value = lv_id.

arjun_thakur
Active Contributor
0 Kudos

Hi,

Refer to this [thread|].

I hope it helps.

Regards

Arjun