cancel
Showing results for 
Search instead for 
Did you mean: 

URL parameter to WDA context

Former Member
0 Kudos

Hello all,

I'd like to call a WDA application with passing parameters to the URL. Application would have no connection to the backend (no function calls etc.), with context only filled by parameters in the URL.

1. Is there, as in WD Java (WebContextAdapter), a method to read the data from the URL to send it to the context? Any code example would be welcome!

2. Is there a limitation on the number of parameters, and/or on the length of the URL string?

Thanks in advance,

Francois

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

check this <a href="/people/koen.labie2/blog/2006/11/29/eating-cookies-with-webdynpro-and-bsp or this <a href="

grtz,

koen

Answers (2)

Answers (2)

Former Member
0 Kudos

Maximum length of URL is practically 2K.

Apparently you can go to 2083 bytes on IE.

Never tested it as it is not nice way to send data.

Use the HTTP body to pass the data. (HTTP POST not get)

eg

CALL HTTP service xyz on ABAP stack.

Your custom service.

very simple to code.

That can have as much data as you like.

The data can be persisted, under a custom key.

Then redirect to a Service that is your WDA URL.

Passing only the KEY eg a GUID.

The WDA just reads the data.

That way you are not limited to the URL

Cheers

Phil.

Former Member
0 Kudos

I'd like to answer your questions.

There is some different between WD4A and WD4J

You have created view: V_defualt, and Window: W_default.

W_defualt:

Window: Embed view --->v_default

Inbound Plugs: Importing parameter from Default--> define the parameters which you'l like to get from URL.

And also define the paramters in the Context.

then edit the code of method HanldeDefault

V_Default

Properties: add the W_Default controller as Used controller.

and define and map the context.

You can find a book "Wed Dynpro for ABAP" chapter 3 at SAP Press. it's a sample chapter.

Cheer!

mohammed_anzys
Contributor
0 Kudos

Hi

In the DEFAULT window of your application , you have a DEFAULT plug , inside that you can call this method

Data:lt_all_url_param TYPE tihttpnvp.

wdevent->get_data( EXPORTING name = '_ALL_URL_PARAMETERS'

IMPORTING value = lt_all_url_param ).

here in the lt_all_url_param , you will get all the URL parameters as name value pair.In this case , you dont have to explicitly specify this parameter anywhere.

Thanks

Anzy