Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CL_GUI_HTML_VIEWER and POST request

Former Member
0 Likes
881

Hallo,

I want to use the CL_GUI_HTML_VIEWER to interact with a web-application.

When calling the URL I want to append some parameters to it in the form

http://myurl?param1=value1&param2=value2&.

I think that the control sends this as GET request. So the length of the url is limited.

What is the limit?

Is it possible to call the url as unlimited POST request?

Guido

2 REPLIES 2
Read only

Former Member
0 Likes
480

The sample SAPHTML_EVENTS_DEMO code provides demo buttons for both "Submit input using GET method" and "Submit input using POST method" so I assume you could choose either.

The "postdata_tab" in the demo is of type cnht_post_data_tab which is an internal table 256 chars wide... the CL_GUI_HTML_VIEWER class has attribute M_POSTDATA of the same type... the M_GETDATA attribute is type CNHT_URL = 2048 char (type group CNHT has the definitions).

Jonathan

Read only

0 Likes
480

In this demo form fields are send from the html page to SAP by a POST response.

I want so send parameters from SAP to the html page by a POST request to fill some input fields.