Skip to Content
0
Dec 19, 2011 at 09:47 AM

Reading POST-Request-Parameter-Values from WebDynPro now possible?

200 Views

Hello,

in the past I always was disappointed that in WebDynPro there was no way to read POST-request-parameter-values directly after the call of a WebDynPro-Application.

The only (documented) way to read / transfer request-data into an WebDynPro-application was via "URL query string parameters" in the request URL.

The last week I forgot this restriction. I called my WebDynPro-application using a POST-Request-Parameter (cookie_guid) instead of an URL-parameter.

After noticing my mistake, I was really surprised that the WebDynPro could read / shows the the POST-Request-Value.

I didn't make any changes in the coding of my WebDynPro-Application (zvis_show_sso_cookie).

After this cognition I built the following simple HTML-formular to analyse the behavior of the WebyDynPro by calling it with an URL-Parameter (cookie_guid=Url-GUID) together with the POST-Parameter (cookie_guid = Post-Value-GUID).

After calling the WebyDynPro it reads / shows the "POST-Value" of the request !!!

(Remark: If I made a simple refresh or type directly the URL "http://hg10762.vis-extranet.de:1080/sap/bc/webdynpro/sap/zvis_show_sso_cookie?sap-language=DE&cookie_guid=Url-GUID" in the browser, the same webdynpro reads / shows the URL-Parameter-Value).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

</head>

<body>

http://hg10762.vis-extranet.de:1080/sap/bc/webdynpro/sap/zvis_show_sso_cookie?sap-language=DE&cookie_guid=Url-GUID">

<table border="0" cellpadding="5" cellspacing="0" bgcolor="#E0E0E0">

<tr>

<td align="right">Cookie_GUID:</td>

<td><input name="cookie_guid" type="text" size="30" maxlength="30" value="Post-Value-GUID"></td>

</tr>

<tr>

<td>

<input type="submit" value=" Absenden ">

<input type="reset" value=" Abbrechen">

</td>

</tr>

</table>

</form>

</body>

</html>

My questions:

I there any documentation that describes the behavior of WebDynPro after calling it by using POST-Parameter values?

I believe in the past it wasn't possible to read POST-request-parameter-values in WD. Has SAP changed the functionality?

Is the behavior I described in my example above mandatory?

Regards

Steffen