on 09-25-2007 11:19 AM
Hi,
May be I am doing something very silly but I am trying to read URL parameter in my HANDLEDEFAULT method of MAIN window , and I am trying to define URL paramter as Method parameters but its gives me run time exception every time 'The ASSERT condition was violated.'
my simple paramter is like this HEADER_ID TYPE importing associated type STRING
Can any body help me why this error happens.
Regards,
Gaurav
just add &HEADER_ID=value in the url in the browser.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
have you also declared the parameter HEADER_ID in your WD Application ?
Regards
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, Gaurav,
Have you tried something like this:
DATA: l_url_parameters TYPE tihttpnvp,
l_url_parameter TYPE ihttpnvp.
wdevent->get_data( EXPORTING name = if_wd_application=>all_url_parameters
IMPORTING value = l_url_parameters ).
READ TABLE l_url_parameters WITH KEY name = 'parameter_name'
INTO l_url_parameter.
IF sy-subrc EQ 0.
* your value treatment here
ENDIF.
There's no need to declare your parameters as method parameters.
Regards,
Andre
The parameter must be filled either as an application parameter or as a URL parameter. The recommended solution is to define the parameter in the application with some appropriate default value, and then you can redefine it with a URL parameter.
In the future parameters can be declared as optional, but currently this is not possible
Ciao Regina
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.