cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment display by ITS instead http Service

Former Member
0 Kudos

Hi,

we use EBP 4.0 Bid Scenario.

Our Support package level is:

SAP_BASIS 620 0036 SAPKB62036

SAP_ABA 620 0036 SAPKA62036

BBPCRM 400 0004 SAPKU40004

PI_BASIS 2003_1_620 0005 SAPKIPYH55

ST-PI 2005_1_620 0004 SAPKITLQG4

ST-A/PI 01H_CRM400 0000 -

ITS, Version 6200.1020.55116.2, Build 800981

The topic of our request is about download of file ‘Attachment’ in Bid Scenario. As you know in the bidding transactions of EBP bid invitation and vendor quotation (BBP_BID_INV and BBP_QUOT) the user can attach some files during the creation of the document (bid invitation or quotation). During the phase of attachment download the server use the ‘docserver’ configuration and we get a link similar to http://touareg.it.pirelli.com:8045/sap/ebp/docserver/008/pirelli_re.gif?attcget&ClId=4510DA3E6C093A5...

This is a tipical link that use the document server http service to display the attachment.

We would like to use the old configuration of ITS attachment display instead the ‘docserver’. In particular the use of docserver force to use different TCP port and address and not the same TCP port and address that the ITS use. We need to use only channel (the same as the ITS use for the users logon) in order to satisfy the security policy.

This is the link of the user during the ITS connection that use different server and ports (ITS instead WAS):

http://crmserver.it.pirelli.com:85/scripts/wgate/bbpstart460952c7/~flNlc3Npb249SVRSOmNybXNlcnZlcjowM...

We find some oss notes as 434218, 588597 or 605323 about this topic but what we need is the opposite behaviour : display the attachment from ITS connection instead http Service.

Best regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Davide,

Hi. I had a similar problem.

You can programatically display the attachments as an ITS service. This is done through a call to function module within a bespoke ITS transaciton.

The below code was to send the shopping cart print out as a pdf, but the same principle would apply from any attachment. You would just need to read in the attachment as a binary table (Look at the code in docserver to see how to do that)

    • Buffer set for

  • concatenate

  • 'attachment; '

  • 'filename=Cart'

  • i_cartid

  • '.pdf'

  • into lv_mimedisp.

*

    • Download & display this on the ITS server

  • call function 'BBP_ALEWEB_DOWNLOAD'

  • exporting

  • data_len = l_size

  • mime_type = lc_type

  • " mime_disp = lv_mimedisp

  • tables

  • data_tab = tab_pdf

  • exceptions

  • its_not_available = 1

  • others = 2.

*

  • if sy-subrc ne 0...

I found this to be a bit flawed in that you loose the link to the transaction (ITS page), and therefor the user is always logged, even though they have closed the attachment display. In the end I used a call to WAS from ITS (i.e. the docserver), and turned on SSO.

By turning on SSO you would most likely avoid security issues, but obviously it is dependant on your specific network.

These issues are avoided with SRM 5.5 where the ITS is internal, and therefor on the WAS

http://saptest:8080/sap/bc/gui/sap/its/bbpstart/!

vrs

http://saptest:8080/sap/bc/bsp/sap/itsm/default.htm

Cheers

Rob