cancel
Showing results for 
Search instead for 
Did you mean: 

display report in PDF w/o save

Former Member
0 Kudos

Hi,

I want to display Report on xmii browser without saving , I tried PDF action but it is giving error when calling url "File doesn't begin with %PDF-". When using image saver for saving file it saved on given path successfully.

I also used isBinary=true in url paremeter, which I found in forum for one of the reason of this error but still it didn't work.

Steps I am following for test case:

1. Create PDF document action block

2. Create PDF page action block - link to pdf document

3. Craete PDF text action block with some value - link to pdf document

4. Assign output parameter of PDF document action to BLS transaction output of type string.

5. call url:

http://servername/Lighthammer/Runner?Transaction=TestBLS/TestPDF&OutputParameter=Output&isBinary=tru...

Please advise if I am missing something, I am using xMII 11.5.

Thanks and Regards,

Alok

Accepted Solutions (0)

Answers (1)

Answers (1)

jcgood25
Active Contributor
0 Kudos

I just hit a working test URL on a 12.0 server and aside from the web app name your url looks good:

/XMII/Runner?OutputParameter=PDFOutput&Transaction=Development/I808614/TestPDF&IsBinary=true&Content-Type=application/pdf

Does it work if the browser instance is logged in first?

To test you could also append &XacuteLoginName=xxxx&XacuteLoginPassword=xxxx to the end (clear text of course)

Former Member
0 Kudos

Jeremy/Alok - double check the URL. I notice that the case is different on two of the parameters isBinary vs IsBinary and Content-type vs Content-Type.

Former Member
0 Kudos

Hi Jeremy,

I tried with passing username and password to login while executing BLS for url, it is giving same error.

http://servername/Lighthammer/Runner?Transaction=TestBLS/TestPDF&IsBinary=true&Content-Type=applicat...

Thanks and Regards,

Alok

Former Member
0 Kudos

Hello Rick,

Tried with IsBinary and Content-Type instead of isBinary and Content-type still got same error.

Thanks and Regards,

Alok

Former Member
0 Kudos

Alok,

There are two things which u mainly need to check here...

At First, i dont think "Runner" will work with xMII 11.5. Plz confirm it with experts. Instead u can try using http://<server>/Lighthammer/Illuminator?Server=XacuteConnector&Mode=Query&Transaction=<NAME>&OutputP...;

Secondly, Also check whether is it possible to use Content-Type "application/pdf". When i checked, it gave me an error as "Illuminator Error [-100] - The content-type supplied is not supported at this time. "

plz chk this link....

[Output Parameter Reference|http://help.sap.com/saphelp_xmii115/helpdata/en/Advanced_Topics/Customizing_Output/Customizing_Output_Paramerter_Reference.htm]

hope this helps

Muzammil

sidnooradarsh
Contributor
0 Kudos

Muzammil - Indeed Runner works with 11.5 too and its the Key to trigger a BLS trx via URL.

You can use Illuminator to execute Query templates so on via URL.

Alok - Your URL looks good but still if you are getting same error "%PDF" then check whether you are providing exact Output parameter you have mapped in BLS trx.

Also you can refer to below few threads on the same issue.

[Thread1|]

[Thread2|]

[Thread3|]

Hope this helps!!

Regards,

Adarsh

Former Member
0 Kudos

Two things to try:

1) Run the URL with another content type, perhaps text/html, just to see what comes back

2) Append a dummy parameter on your URL as in: &Dummy=MyFile.pdf