📜 ⬆️ ⬇️

Archivelink - Attachment Attachment Technology in SAP for Beginning Consultants

This article is a synthesis of five years of experience as a consultant in the field of corporate workflow in the SAP environment. My experience is limited to only one vendor - OpenText (Canada) , but in recent years, this technology has become more and more popular, and therefore there was a desire to publish this material.

The article describes the technology of working with unstructured documents (document scans, electronic originals in MS Office format, etc.) in the environment of structured electronic documents - SAP transactions. Both the technical aspect and the main business scenarios of working with documents are described. The publication will be useful to all novice (and not so) document flow consultants working on SAP projects. The material was written almost "from the head," as a kind of crib, or manuals.

The publication here is the desire to share with all the experts in order to pass on their experience to the younger generation. I clearly understand that not a single training course or training manual will allow a single person (a spherical SAP / ECM consultant in a vacuum) to take and carry out a turnkey project for a customer. Therefore, I regard the material published here as the saving of precious human time. Well, glad criticism, of course!

Description of typical business scenarios


The EA system based on the standard Archivelink technology encompasses all types of paper documents that are subject to accounting in connection with conducting business transactions on them. In the direction of movement all documents can be divided into two types:
')
  1. Incoming documents (from external organizations, other information systems);
  2. Outbound (source of origin is SAP ERP).


Incoming documents, in turn, are divided into three typical scenarios:
  1. Incoming with pre-registration (the document enters the EA system at the time of the transaction, an SAP electronic document already exists; later it can be associated with other existing transactions).
  2. Inbox without prior registration (the document is placed in the EA before the transaction is completed; it is the basis for creating one or several SAP electronic documents).
  3. Incoming documents without reference to SAP objects (category of documents for which it is difficult to establish connection with transactions due to their large number or complete absence).

To realize the possibility to process the flow of documents in practice, labeling documents with bar codes is used. In the chain of movement of a document, a barcode is used to identify the scan itself and the place in the accounting system (transaction in SAP) to which it should be attached.

In addition, the presence on the first page of each document SK allows you to automatically disassemble the flow of scanned pages by document units.

For those who like to watch screenshots, there is a link to YouTube that describes one of the typical projects for the implementation of an electronic archive for SAP users:



In this video you can see on what equipment you can make a similar project. Further, more specific questions can be in a personal.

Document marking methods


On outgoing documents (generated by SAP) the barcode image is printed simultaneously with the printing of the document on a laser printer.



On incoming documents, regardless of the script, the barcode is placed with a sticker, for example:



Typical Scenario Descriptions

Inbound documents with pre-registration in SAP


To realize the possibility of registering barcodes (documents), minor modifications are made to the SAP user interface.

Pre-registered incoming documents are documents that enter the EA system at the time when the SAP electronic document already exists. In other words, the document is attached to an already completed transaction. The posting is performed by the same employee who performed the receipt of documents.

Formation of identification labels with CCs comes from the corresponding business transaction. To work with such documents, for example, a new functionality can be introduced into each transaction: the “Application Registration” button.



The scenario of work can be described by the scheme:



Incoming documents without prior registration


Incoming documents without prior registration are documents that are placed in the EA before the transaction is completed in SAP. A typical example of the use of this scenario is bookkeeping separated from warehouses, which is geographically located in an arbitrary location. The warehousekeeper, accepting the delivery of goods, performs only the registration of each paper document from the package of documents, but does not perform the movement of materials or other operations on them. Instead, the bookkeeper is sent a task to process each document (or package of documents).

Initially, the CC of these documents contains information about the type of document and the route of its movement. Printing labels with CC is made from the developed transaction Z *. When selecting from the directory, the values ​​of the “Processing unit” and “Document type” fields are dependent on each other, i.e. From the list, you can select only those documents with which specific departments work.



The scenario of work can be described by the scheme:



Incoming documents without reference to standard SAP objects are a special subtype of documents that cannot be associated with a standard business object (for example, references) or with an array of transactions (for example, reports). As a result, for this subtype of documents, you can create an artificial Z-object that does not contain any postings. You can simply attach links to an array of archived documents with attributes to this business object.

Outgoing documents


Outgoing documents are documents generated by the SAP system. The scenario of working with outgoing documents is intended for archiving the copies of outgoing documents signed by the contractor.

The functionality of the CC generation is integrated into the business transaction from which printing is performed. There is no need to use a sticker with CC (CC is printed simultaneously with the document).




... however, we wanted to talk about Archivelink here. We continue in the technical plane.

Technical scheme of interaction component Archivelink


Description of the interaction scheme of the components of the SAP Document Access by OpenText solution based on the standard Archivelink technology in the scenario of mass scanning of documents from CC:



  1. The SAP ERP user through the GUI registers a new record about the document. A unique identifier is assigned to the document, a label is printed with the CC;
  2. The sticker is pasted on a paper document;
  3. A paper document with a label is sent in the document stream to a scanner that is locally connected to the scan station (“thick” OpenText client);
  4. The scan client receives a stream of pages from the scanner, recognizes the borders of documents and recognizes barcode numbers from labels;
  5. The user initiates a session of sending a stream of documents to an electronic archive. The OpenText Document Pipeline document pipeline component is invoked:
    a. Metadata is sent via http on port 8080.
    b. The scanner image is sent to the special folder DPDIR on the archive server, in which the action on the document then takes place.
  6. The document conveyor initiates sending a document scan to the logical archive specified on the SAP side (ARCHIV_ID);
  7. The Administration Server component responds to the pipeline with the host name for sending the scan (ALHOST);
  8. The scan image file is sent to the archive server;
  9. The archive server confirms successful placement by returning a new DocID (ARC_DOC_ID) to the pipeline;
  10. The document conveyor sends the SAP application server through a call to RFC parameters: BARCODE, DOCID;
  11. Further interactions occur at the SAP application server level.


According to paragraphs 6-9, the interaction is carried out via a secure channel https. Protection is based on a self-signed certificate between the DP server and the Archive Server.

Here is how SAP imagines it from the point of view of organizing a business process:



At the level of the SAP link tables, the schema for attaching an Archivelink document with CC:



BDS_BAR_IN is a standard table in which records of open CCs are temporarily registered (that is, a new CC was registered in an electronic document).
BDS_BAR_EX is a standard table that receives for temporary storage records of documents arriving in an EA with identification CCs.
TOA01 is a standard link table containing linked records of electronic documents and references to EA documents added to them.

The functional of the document card is implemented using the standard “R / 3 Indexing” script, which allows the scanning client to transfer along with the CC to an arbitrary number of additional document attributes that will be deposited in Archivelink tables. Of course, this approach provides for the addition of standard tables, for example, the new Z_BDS_BAR_EX tables for attributes coming from the scanning system and Z_TOA01 for their permanent placement.

In the standard Archivelink chain, after linking, the CC value is lost, but for further EA maintenance (for example, to implement the function of managing physical storage of documents), it makes sense to continue to store the value of the identification CC in the document card.

Http link syntax Archivelink


The Archivelink link can be made “manually”, knowing the parameters of a specific archived document (table TOA01 will help us). The link uses several attributes, the minimum set of which are:

http://hostname:port/script?get&pVersion=XXXX&contRep=YY&docId=ZZZZZZZZZZZZZZ&accessMode=r 


In the given example:


In production systems, a security key is added at the end of the Archivelink link, which is generated using a self-signed security certificate sent by SAP to the archiving system side.

For test purposes, security (certificate verification) can be disabled, then it becomes possible to form a link in the browser, for example:

 http://vm-as-11:8080/archive?get&pVersion=0046&contRep=L0&docId=aah1yo65r5yviqtqlecc1g5avaiim 






If this topic is of interest to the Habrasoobshchestvu, it is ready to deepen it, for example, with the settings in SAP, as well as with articles about installing OpenText servers.

Source: https://habr.com/ru/post/243135/


All Articles