cancel
Showing results for 
Search instead for 
Did you mean: 

How to get sap-return-url parameter value from webdynpro (for ABAP) url

Former Member
0 Kudos

Hello,

I use configuration system logon "Register property" to call my webdynpro application. The system calls my app correctly and pass return url as value of parameters sap-returl-url in url string. I would like to know how to get this parameter value. There is no way to define this parameter as parameter of inbound plug because it contains '-'. I also tried to use following code but without success.

data: l_url_parameters type tihttpnvp.

wdevent->get_data(

exporting

name = if_wd_application=>all_url_parameters

importing

value = l_url_parameters ).

Is there any other posibility to read value of sap-return-url or just to go back to this url.

Thank you in advance.

Krzysiek

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Krzysiek ,

Maybe the code below will help you:

----


field-symbols <fs> type any.

paratable = wdevent->parameters[].

read table paratable into ls_paratable index 1.

assign ls_paratable -value->* to <fs>.

lt_paratable_1 = <fs>.

read table lt_paratable_1 into ls_paratable_1 index 1.

wd_id = ls_paratable_1-value.

----


Best Regrads,

Nemo

Former Member
0 Kudos

Hi,

Thank you for your codding but it does not work because parameters[] does not contain sap-return-url parameters.

I solved this problem in different way using small bsp aplication wich has possibilty to read sap-return-url parameters and redirect to webdynpro app.

regards

krzysiek