on 12-10-2008 5:08 PM
Hello everybody!
i'm in my first experience whit ABAP web dynpro.
i want create my application receiving in input a dynamic parameter (on URL).
This parameter is neccessary for calling a BAPI .
it's possible?
i have not found any document about it.
in SAP library they talk just about standard parameters
someone can help me?
Thanks
hi
check this out
types:
begin of param_t,
name type string,
value type string,
end of param_t.
data: params type standard table of param_t.
data: param like line of params.
wdevent->get_data(
exporting
name = '_ALL_URL_PARAMETERS'
importing
value = params
).
you can also define URL parameters this way:
add parameter of type string to default plug of application window
in application you may than add this parameter and give it a default value
then you may use it in the handle default method of window and pass it on...
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can use a static method of class cl_wd_runtime_services
CALL METHOD cl_wd_runtime_services=>get_url_parameter
EXPORTING
name = 'MY_PARAM_NAME'
RECEIVING
value = my_value
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
please see below the procedure for specifying URL parameters and using them...
Note these steps are directly taken from WD ABAP pdf by SAP....... these are not wriiten by me...
1. In the component, switch to the window editor.
Here you can change the predefined inbound plug or create a new inbound plug.
u2022 Specify the plug as a startup plug (Start).
u2022 The data type should be string since data conversion and data checking are
currently not performed.
u2022 Activate the component.
2. For the application, specify the component to be called, the window, and the startup
plug. You can now specify the parameters.
Apart from the default parameters, the startup plug parameters are also available and
can be assigned a default value. If no default value is specified, the parameters have
to be specified as URL parameters when calling the application.
3. Call the application.
The URL parameter overwrites the application parameter.
regards
Pranav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
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.