cancel
Showing results for 
Search instead for 
Did you mean: 

use of CL_HTTP_CLIENT to send pdf source

Former Member
0 Kudos

We are on Portal running xRPM.

My WDA populates an InteractiveForm UI element with data. As a result - I have pdfSource xstring which I need to save in Cfolder (this is Collaboration folder within xRPM).

I use function CALL FUNCTION 'CFX_API_URL_COL' to get URL: I submit collaboration ID and the function gives me URL.

Cfolders are in Web Application server.

WebDynpro is in browser.

I am trying to use CL_HTTP_CLIENT to submit xstring.

But I have a little idea how to do that.

I successfully created http client by Url:

CALL METHOD cl_http_client=>create_by_url

EXPORTING

url = l_url

  • PROXY_HOST = l_proxy_host

  • PROXY_SERVICE = l_proxy_service

IMPORTING

client = l_http_client

EXCEPTIONS

argument_not_found = 1

plugin_not_active = 2

internal_error = 3

OTHERS = 4

What is next?

Any help is greatly appreciated .

Tatyana

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Web Dynpro is rendered in a browser, it will be running in the Application Server Only.

You can simply read the xstring and call your function module which will be executed at server side.

Abhi

Answers (1)

Answers (1)

Former Member
0 Kudos

Abhi,

<You can simply read the xstring and call your function module which will be executed at server side.>

I don't quite understand what you are saying.

I don't have to read the string - the string is already in context of my Webdynpro.

The Webdynpro has to put that string on URL.

The whole purpose of it is to allow a Portal user to see PDF file every time when he open a page with that URL.

Do you know how I could send a string to URL?

Thanks,

Tatyana