cancel
Showing results for 
Search instead for 
Did you mean: 

Archivelink PDF Display via Function Module ARCHIVOBJECT_DISPLAY

jaiswal_g1
Explorer
0 Kudos

I am using function module 'ARCHIVOBJECT_DISPLAY' to display PDF document stored at Arhivelink repositories.

Document is getting diplayed in Adobe Acrobat Reader which has Save button enabled. How to suppress Save functions so that confidential document is not saved locally by front end users. Will using SAPGUI ArchiveLink Viewer can help to overcome this issue?

I tried uploading protected PDF and retrieved the same from function module 'ARCHIVOBJECT_DISPLAY', surprizingly Save button got disappeared. How can we set document properties while storing PDF. I am generating SD invoice smartform output PDF at Arhivelink repositories.

CALL FUNCTION 'ARCHIVOBJECT_DISPLAY'
EXPORTING
objecttype = 'ZSDINVDIGI'
ar_object = 'ZGOS_INV1'
multiple = 'X'
IMPORTING
returncode = returncode
TABLES
dispdocs = lt_dispdocs
EXCEPTIONS
error_archiv = 1
error_communicationtable = 2
error_kernel = 3
OTHERS = 4.

Accepted Solutions (0)

Answers (2)

Answers (2)

jaiswal_g1
Explorer
0 Kudos

Hi Stefan,

Good to see your reply. I am willing to avoid Acrobat Reader subscription. We are storing our documents on IBM Filenet content repository. I am willing to use document viewer provided by IBM filenet to view documents from SAP. For that I have done required changes in OAA3.

Under defined protocol >> 'Display Stored document' >Choose the document type 'PDF' >choose the communication type as 'ARCHIVELNK' >

This works fine when I view document via OAER or OAAD. But when I retrieve document via CALL FUNCTION 'ARCHIVOBJECT_DISPLAY' I am getting error "HTTP error: 505 HTTP Version Not Supported" If you can advise on the same will be good.

Gopal

stefan_schnell
Active Contributor
0 Kudos

Hello Gopal,

sorry but my knowledge about ArchiveLink is old. But as far as I remember correct you can change your protocol for your content repository in TAC OAC0. Maybe here is a wrong setting.

Best regards
Stefan

stefan_schnell
Active Contributor
0 Kudos

Hello Gopal,

the FM ArchivObject_Display uses in Microsoft Windows Environments ShellExecute with the verb Open to launch the Adobe Acrobat Reader application. But before the PDF document was saved locally on the frontend server, via the data provider, to grant Acrobat access to it. In my opinion you have no possibility to disable any control elements inside Acrobat Reader application from SAP on this way. You can restrict the possibilities by the PDF document itself, but it seems not possible to do that with Acrobat Reader. Please look at a discussion about this requirement at Adobe forum here.

Best regards
Stefan