on 11-26-2009 9:50 AM
Hi All,
Can any one tell me " How to Pass parameters through Web dynpro application URL ?"
Thanks In Advance
Hi Sreelakshmi,
I think u can easily get value by reading WDWVENT PARAMETRS.
Also you can get value table by using following the same get_data method as follows
wdevent->get_data(
EXPORTING
name = '_ALL_URL_PARAMETERS'
IMPORTING
value = lt_url ).
Hope now u will get all ur parameters.
Nawal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreelakshmi,
The easiest way to do this is, first give the parameters to the application.
In the application goto Parameters tab and give the parameter and data type details
once provided, go to the window and plug handler mentioned in the application.
Give the same parameters as mentioned in the application as importing parameters.
Eg: Give user_id as parameter in application.
In the window handler also give the same parameter with the same data type.
Now you can access this in your code.
This will avoid reading the WDEVENT importing variable of the handler.
Thanks,
Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreelakshmi,
If thats the case then may be you rum some other version of Netweaver.
Now you can try to get the value by using PARAMETERS attribute in
class CL_WD_CUSTOM_EVENT assigned to WDEVENT.
here also list of attributes are there.
Nawal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreelakshmi,
please check the method which i have specified.
Here the WDEVENT is of type CL_WD_CUSTOM_EVENT.
Tell me if still problem occurs.
There must be a constant parameter ALL_URL_PARAMETERS type STRING in interface IF_WD_APPLICATION under attributes.
Nawal
Edited by: Nawal Kishor Mittal on Nov 26, 2009 6:08 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreelakshmi,
ALL_URL_PARAMETERS is not a method its attribute.
It returns a parametrs list in table.
Use it as it is it will work.
Nawal Kishor Mittal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreelakshmi,
Kindly go through these steps:
1. Double click on your application name.
2. Read the Interface view name and Plug name.
3. Then Goto the window specified in Interface View.
4. In this window you will find 'HANDLE<plugname> method under methods tab.
There only you can read these parameters and use them as you want.
Regards,
Nawal Mittal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreelakshmi,
Construct the URL for WDA as belows:
DATA lt_param TYPE tihttpnvp.
DATA ls_param TYPE LINE OF tihttpnvp.
DATA lv_url TYPE string.
*Construct parameter List
ls_param-name = 'sap-client'.
ls_param-value = sy-mandt.
APPEND ls_param TO lt_param.
CLEAR ls_param.
ls_param-name = 'sap-language'.
ls_param-value = sy-langu.
APPEND ls_param TO lt_param.
CLEAR ls_param.
End of Parameter List
Construct URL for WDA_NAME and parameter list
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'WDA_NAME' -
> Web Dynpro aaplication name
in_parameters = lt_param -
> Parameter List
IMPORTING
out_absolute_url = lv_url.
To read these parameters:
DATA lt_url TYPE tihttpnvp.
wdevent->get_data(
EXPORTING
name = if_wd_application=>all_url_parameters
IMPORTING
value = lt_url ).
here lt_url contains all the parameter list along with there value.
Hope this will solve all ur queries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sreelakshmi,
Please check the below help
http://help.sap.com/saphelp_erp2005/helpdata/EN/7b/fb57412df8091de10000000a155106/content.htm
They have to be mentioned while creating the application and they will be available in Default handle parameters of the window the application calls.
It is also possible to use WD standard methods to retrieve the application parameters.
Thanks,
Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.