You can link documents with any number of application objects.
For an application object that is integrated with the Document Management Service, the following details must be defined in Customizing:
Document types that use the application object
Function module for determining the where-used list for a document
Function module that checks if the document is used in an application object
The module is called before the deletion or archiving of a document.
Optional: a function module that displays the application object when the where-used list is called
The link is made possible by the integration of the interfaces of the Document Management Service with the application objects.
Links between documents and application objects can be stored and accessed centrally or on an application-specific basis. For individual application objects, you can decide if you want to use the application-specific link or the central link.
You integrate this central management of links in your individual applications using Application Programming Interfaces (APIs). The following functions are supported:
Create
Using the function module FKKDMS_CONNECTION_INSERT, you can link documents or unprinted correspondence with an application object. After the correspondence is printed using the print workbench or correspondence history, the system automatically adds the correspondence to the Document Management Service. You can use the function module FKKDMS_CONNECTION_INSERT to link correspondence with an application object even before the correspondence is printed. After the correspondence is printed, and thereby added to the Document Management Service, the system automatically updates the links with the information about the documents.
Delete
You can use the function module FKKDMS_CONNECTION_DELETE to delete links between application objects and documents.
Selection
Using the function module FKKDMS_CONNECTION_SELECT, you can select documents that are linked to an application object.
If you do not want to use the central function for linking documents, define the following in Customizing by choosing
:A function module that checks if a document can be deleted.
A document cannot be deleted if it is used by an application object, for example.
A function module that returns information as to which application objects use a document.