‎2010 Jul 27 2:59 PM
Hi there!
We are using ArchiveLink to retreive the scanned image file (for invoices) from content server. This file we are attaching to the work item that the approver uses to verify while approving the document in the invoice creation process.
We are using FM ARCHIVOBJECT_DISPLAY to display the associated file. However, when back scanned, this FM displays the same image for both workitems.
Workflow log confirms that Archive Doc ID is different in both the work items.
But when user logs off and logs in again into SAP, the correct image gets displayed.
Is there and buffer setting related to ArchiveLink that displays the already downloaded file?
What can be the reason?
Thanks in advance!
G@urav
‎2010 Jul 27 3:12 PM
Hi!
I've found the following solution in our systems, i hope you'll find something useful in it (I don't know is it working or not
Please check out:
DATA: ls_conn TYPE toav0.
CLEAR ls_conn.
ls_conn-archiv_id = ls_borid-objkey(2) .
ls_conn-arc_doc_id = ls_borid-objkey+2(40).
ls_conn-sap_object = gs_object-objtype.
ls_conn-object_id = gs_object-objkey.
CALL METHOD lo_bor_object->get_attribute
EXPORTING ip_name = 'AR_OBJECT'
IMPORTING ep_value = lp_value
EXCEPTIONS OTHERS = 1.
ls_conn-ar_object = lp_value.
CALL FUNCTION 'ARCHIVOBJECT_DISPLAY'
EXPORTING
archiv_doc_id = ls_conn-arc_doc_id
archiv_id = ls_conn-archiv_id
objecttype = ls_conn-sap_object
object_id = ls_conn-object_id
ar_object = ls_conn-ar_object
EXCEPTIONS
error_archiv = 1
error_communicationtable = 2
error_kernel = 3
OTHERS = 4.Regards
Tamá
‎2010 Jul 28 8:06 AM
Thanks for the reply Tamás!
I know how to use this FM. The problem is what I have described in my question.
G@urav
‎2010 Aug 02 2:12 PM
It seems that there is some buffer issue with SAP business workplace. Bacause when user comes out and goes in into business worplace, correct image is getting displayed.
Any suggestions?
Thanks
G@urav
‎2011 Mar 24 10:22 PM
Gaurav,
Were you able to resolve this issue?
I have same problem with function module 'ARCHIVOBJECT_DISPLAY'. Custom transaction is called from SAP Business Workplace. USer is unable to open the scanned invoice 2nd time. They need to logout and login back to reopen the scanned image from inbox.
Thanks,
Subha