cancel
Showing results for 
Search instead for 
Did you mean: 

URL parameters

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks stefan!

and how can i pass the parameter on Event Handler?

Former Member
0 Kudos

take the parameter, pass it on by binding it to the context, or call a method in a used controller, store it in a controller attribute

but you were successfull right?

Answers (3)

Answers (3)

Former Member
0 Kudos

..

giusepperollo
Explorer
0 Kudos

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

.

pranav_nagpal2
Contributor
0 Kudos

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