on 08-08-2005 10:48 AM
Hello All,
I would like to realize the following scenario:
A transaction is called via WebGUI for HTML using the following URL: <b>http://<server>:<port>/sap/bc/gui/sap/its/webgui?~transaction=<transaction></b>. It is working fine; in backend the transaction is performed; after performing, at the end of the transaction an <b>HTML</b> or <b>XML</b> page should be sent.
The idea of the scenario is that the URL is called from a third party portal, which receives the results of the transaction via HTML or URL.
Im using <b>WebAS 640 with interated ITS</b>.
Ive tried some ideas such as sending own HTML using function module <b>ALEWEB_DOWNLOAD</b> for sending HTML; but it is not working correctly.
Is there a general possibility to send HTML or XML while or after performing the called transaction using WebGUI?
Thanks & Regards,
Kurt.
Message was edited by: Kurt Weiskopf
Hello Raja,
Thanks for your information.
I've checked the class <b>CL_HTTP_CLIENT</b>; I don't know, whether this class could solve my requirement.
I'm looking for the possibility to generate HTML-code after performing a transaction via <b>WebGui</b>.
Could you please explain me, how to use and include this class in <b>WebGui</b>?
Thanks & best regards,
Kurt.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
<i>I'm looking for the possibility to generate HTML-code after performing a transaction via WebGui.</i>
Let me understand
you have a transaction say "ABC" and this is called using WEBGUI. after clicking a button in the transaction , you want to generate html code and
<b>show it in the browser or?</b>
<b>send it to some other address?</b>
<b>show it in the browser or?</b>
you can do this using BSP
<b>send it to some other address?</b>
generate html code and send it using CL_HTTP_CLIENT . the code would look something like below.
call method cl_http_client=>create
exporting
host = 'www.xxxxx.com'
service = '80'
scheme = '1'
importing
client = http_client.
call method http_client->request->set_header_field
exporting
name = '~request_method'
value = 'POST'.
call method http_client->request->set_header_field
exporting
name = '~server_protocol'
value = 'HTTP/1.1'.
...
...
...
call method http_client->request->set_cdata
exporting
data = <b>wf_string</b> " this would hold the generated html data
offset = 0
length = rlength.
call method http_client->send
exceptions
http_communication_failure = 1
http_invalid_state = 2.
Hope this is clear.
Regards
Raja
If your question is answered, reward the helpful answers and close the thread.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.