Skip to Content
0
May 28, 2018 at 10:36 AM

Issue in Opening PDF via Runner/Illuminator

307 Views

Hello Experts,

I have a requirement that I need to open a PDF form generated by a FM(RFC) in SAP ECC. From MII, I am passing relevant data to FM and FM gives "PDF_STRING" that I can open by Runner & application/pdf.

Now the problem is - we use SSO to login to SAP. So when I'm calling the FM, I map

SAP_JCo_Start_Session_UP2.SAPSSO2Ticket  to  Transaction.MYSAPSSO2

Now when I use Runner, I am passing IllumloginName as below but still somehow MII is not able to generate SAPSSO2Ticket and hence FM is failing.

var printWindow = window.open(url + '/Runner?Transaction=Default/Demo/DemoPDF&Action=UP2&IllumLoginName=test_mii&OutputParameter=Output&Content-Type=application/pdf&IsBinary=true','','scrollbars=yes,width=720, height=960');

Now if I use Illuminator, FM runs properly but if I use application/pdf with illuminator, it gives an error stating SAP MII type is not supported.

So I'm kind of stuck.

With Runner, MII is not able to create SAPSSO2Ticket  so FM is failing.

With Illuminator, MII is able to create SAPSSO2Ticket  and FM runs fine with giving back PDF_STRING but illuminator does not support application/pdf.


What options do I have to resolve the issue?

Thanks !