Skip to Content
author's profile photo Former Member
Former Member

Archivelink

I am currently trying to use Archivelink to connect an external imaging system to R3. I've been through all the config steps, set up all the document types in the wizard and using certain BO types, everything works fine. The trouble arises with purchase orders, BUS2012 and standard task TS30001128 IMAGEASSIGNEARLY. BUS2012 doesn't have a create method so I created a zBUS2012 and added create to it as well as IFARCH21 for the archivelink. I basically modeled BKPF which works fine for either early or late archiving.

When I run OAWD my work item is created with no problem...which is really the only code I added to BUS2012. The problem is that after execution of the work item, TOA01 is never updated and the work item stays in the inbox. Late storage scenarios (using TS30001117) update the table fine as well as early storage with BO types that already have the create method such as BKPF.

I can't seem to figure out what I'm missing. The task fires and the container seems to have the correct information. But the update to TOA01 just never happens. Any help would be greatly appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jun 23, 2007 at 04:40 PM

    Is your <u>work item</u> created without problem? What about the purchase order? Not sure how this works for either BKPF/FIPP or BUS2012, but I assume ImageAssignEarly needs some sort of reference to which the image is to be assigned.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Wow is been a month. I decided to post again in case anyone runs into a similar problem with archivelink.

      I was on the right track earlier with reference to the OBJECTS container element that wasn't getting populated in my archive task TS30001128. The question remained why not? After working on some other things the past few weeks, I came back to this problem with a blank slate. I spent a few mins on google and instead of searching for archivelink...I searched for IFARCH21. This the archivelink interface. This led me the following page:

      http://www.jt77.com/business-warehouse/work-flow-15703.html

      A reference is made there to an FM WF_COMMIT:

      "My advice would be to debug the code from the point you click 'save'. There should be a function module in there just before the 'commit work' statement is met, usually called 'WF_COMMIT'".

      Followed by a solution:

      "I had to change the standard SAP code to add the 'WF_COMMIT' FM just before the transaction's 'commit work' statement"

      I decided to debug the create method of BKPF (an invoice which works) and BUS2012 (a PO which does not) with a breakpoint at WF_COMMIT. And to my surprise, BKPF has a call to this FM and BUS2012 does not. The solution was (as mentioned in the link) to add a reference to the FM just before the commit work statement...in my case inside the include MM06EF0B_BUCHEN. I added an enhancement with the same call as in BKPF:

      ENDENHANCEMENT.

      ENHANCEMENT 25 ZWF_COMMIT. "active version

      *

      data : xwfla(1) TYPE c.

      DATA: BEGIN OF wfltab OCCURS 3.

      INCLUDE STRUCTURE wfas2.

      DATA: END OF wfltab.

      wfltab-asgtp = 'BUS2012'.

      wfltab-asgky = ekko-ebeln.

      APPEND wfltab.

      CALL FUNCTION 'WF_COMMIT'

      IMPORTING

      called_by_workflow = xwfla

      TABLES

      assignments = wfltab

      EXCEPTIONS

      assignment_error = 01

      db_error = 02.

      CASE sy-subrc.

      WHEN 1.

      MESSAGE a503 WITH wfltab-asgtp.

      WHEN 2.

      MESSAGE a504.

      ENDCASE.

      ENDENHANCEMENT.

      $$-End: MM06EF0B_BUCHEN_03----


      $$

      After adding this code, the early storage archivelink task works perfectly.

      A checklist to adding this functionality to a business object without archivelink:

      1. Create subtype of BO

      2. Add a create method with code and a parameter to pass the appropriate create transaction (simply get the transcode from the container and do a call transaction).

      3. Add the interface IFARCH21.

      4. Make sure WF_COMMIT is called just prior to the COMMIT WORK statement.

      5. Delegate to new business object subtype.

  • author's profile photo Former Member
    Former Member
    Posted on Apr 08, 2008 at 06:34 PM

    Hi ,

    We are trying to setup archive link for (BKPF) invoice documents using the sap note# 595563

    We did all configuration steps but how to test this process on FB03/FB02 If you have further steps can you please let us know.

    If you have some time please call me

    Regards

    Siva Ramasani.

    248-875-9014

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.