Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ArchiveLink buffer issue

Former Member
0 Likes
862

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

4 REPLIES 4
Read only

Former Member
0 Likes
698

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á

Read only

0 Likes
698

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

Read only

0 Likes
698

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

Read only

0 Likes
698

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