cancel
Showing results for 
Search instead for 
Did you mean: 

publish a pdf (adobe form) in BSP application

Former Member
0 Kudos

I have a ADOBE form used throw SAP GUI interface...

I would like to add a link into my BSP application to open the PDF in my BSP application

How can I do ?

Thanks for your help

Jerome

Accepted Solutions (0)

Answers (2)

Answers (2)

Emre_tr
Active Participant
0 Kudos

if you have pdf's binary data you can display in BSP in an iframe, here is my code;

CREATE OBJECT cached_response

TYPE cl_http_response

EXPORTING

add_c_msg = 1.

l_pdf_len = XSTRLEN( l_pdf_xstring ).

cached_response->set_data( data = l_pdf_xstring

length = l_pdf_len ).

cached_response->set_header_field( name =

if_http_header_fields=>content_type

value = 'application/pdf' ).

cached_response->set_status( code = 200 reason = 'OK' ).

cached_response->server_cache_expire_rel( expires_rel = 180 ).

CALL FUNCTION 'GUID_CREATE'

IMPORTING

ev_guid_32 = guid.

DATA:lv_crep_http TYPE crep_http.

CALL METHOD cl_http_ext_csif=>access_info_get

CHANGING

crep_http = lv_crep_http

EXCEPTIONS

failed = 1

OTHERS = 2.

CONCATENATE runtime->application_url '/' guid 'mypdffile' '.pdf'

INTO pdf_link.

cl_http_server=>server_cache_upload( url = pdf_link

response = cached_response ).

CONCATENATE 'http://' lv_crep_http-http_serv ':'

lv_crep_http-http_port pdf_link INTO pdf_link.

Former Member
0 Kudos

Hi,

you must first understand that SAP GUI is something different to a web page and your adobe form runs within the SAP system, while your BSP application runs in internet/intranet. You must also understand that the generation of the form within SAP is a different process as in web.

What you pretend is not possible because the system generates an internal "URL" for the form and this URL can be called only internally. It is not of the type HTTP://www.mysite.com like your BSP application. It´s like trying to call transaction SE38 or SE80 from a BSP application.

What you have to do is generate the form from your BSP application. There are many examples here in SDN for that. Search with CONVERT_OTF, cached_response->set_data or GUID_CREATE.

Former Member
0 Kudos

why not possible ? I know the difference... But is it possible to store the pdf into a server and copy it to a mime repository .... and just delivry the link to the PDF for instance.