cancel
Showing results for 
Search instead for 
Did you mean: 

ArchiveLink and UserExit, run own code when clicking on it

Former Member
0 Kudos

We have a big productive problem with customers of our EBPP-solution. For each IDOC which we can select in WE02 we have an attachment list. In this list we have links to PDFs and other files in the archive. These PDFs have a PKCS#7 signature, which surrounds the PDF content. This signature gives us the problem. Some of the signed PDFs cannot be viewed with the Adobe Reader (any version). So this is the problem: We have to strip off the signature on the fly when someone clicks on this (archive)link in the attachment list. Files which are signed with this surrounding signature do have the extension ".p7m". Is there a way (eg. in a UserExit), how we can add some code to strip off this signature, or are there configurations to enable things like this. Not only with PDFs we have this problem, lets say in general with any files that are signed with a surrounding signature.

Our customer will not install a software on their clients to remove this signature, so we have to provide a solution in R/3.

Is it possible to use the UserExit "SALIN001"? How to use this UserExit?

Thanks a lot, I need help

Frowin Keiser

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Frowin,

you can implement your own viewing by using a user exit of the function module ARCHIVOBJECT_DISPLAY. It is registered in the SAP table TOAEX with the name 'OA_OBJECTDISPLAY_01'.

It is provided with the DOC_ID, CREP_ID, DOC_TYPE and some more parameters. From here you have access to the content via SCMS_AO_STATUS, SCMS_AO_TABLE_GET* and then you have to present the content.

The function module you register here must have the following API

call function f_toaex-exit_fub

exporting

archiv_doc_id = archiv_doc_id

archiv_id = archiv_id

objecttype = object_type

object_id = object_id

ar_object = document_type

language = language

window_id = window_id

window_title = window_title

doc_type = document_class

importing

goon = goon

exceptions

error_archiv = 1

error_communicationtable = 2

error_kernel = 3

others = 4.

Best regards

Torsten