Create template documents in SAP-DMS

Template documents must made available to the users as simple as possible. SAP-DMS allows this with following methods:

  • Default template handling from SAP-DMS, which allows only very limited parameters for accessing templates.

  • Global folders, which must be searched manually.

ProObjectLib template control allows detailed control of the access to the templates, also supporting language specific templates.

Document type to define

The template control is based on document info records created within SAP-DMS. Then to this document info records the original files are attached and checked in. Follow following rules when defining the document type for the template document info records:

Key for templates

Following access types can be set up using standard customizing, any others has to be programmed using customer-exits:

  • For "According assignment in templates":

    • The object identification of the document info record receiving the template is defined using the corresponding characteristic name.

    • If the identification is empty, the document type is used.

    • In the templates in the characteristic values of the characteristic according the setting "Char. TemplAss.", the identifications for which this template is valid are registered. Wild card * allowed. If more then one target type must be entered, the characteristic must allow mutliple values.

    • A template with just * entered is for all documents valid.

  • Other access types (see also syntax below):

    • Template search using the document identification

    • Template search using the document type

    • Template search using the document identification and if not found using the document type

    • Template search using the document identification and if not using a customer-exit to build the key

    • Template search using a customer-exit to build the key

    • Template search using a customer-exit to build the key and if not found using the document type

Depending on the settings, the key for this access types can be in the number or the description of the document info record.

Syntax

This syntax is NOT relevant for access type "According assignment in templates".

The syntax of the template key has following elements:
<Key>:<Text> or <Key>:[<Ident>]

Thereby applies:

<Key>

Der Schlüsselwert gemäss Customizing-Einstellung, also ein Merkmals-Wert, die Dokument-Art oder gebildet vom Customer-Exit.
The key according the access type, see above.

:

Separation of key and text (if key in description) of separation of key and identification (if key in number).

<Text>

if the template key is stored in the description then the text following the colon (:) is the template description.
If the key is stored in the document number, the whole description of the template document info record is used as template description.

<Ident>

If the template key is stored in the number of the template info record and multiple templates for one key must be defined, then a unique identifier after the colon (:) is necessary.

Language

When searching templates for a document, only template document info records will be selected, for which a description in the users login language is available.

Search

This part is NOT relevant for access type "According assignment in templates".

To search the templates always the key followed by a colon and * is used (<key>:*). Then all document info records matching this search criteria, available description in user login language and a release status are selected. If multiple released versions are available, only the most recent us used.

If multiple templates are valid, a selection box to chose the template will be processed.

Example for key in characteristic - "According assignment in templates"

Vorlage

  • Eingetragene Identifikationen

Document A
TSP-LA

Document B
TSP-BER1

Document B
TSP-TX

Document D
ZNG

Vorlage

  • Eingetragene Identifikationen

Document A
TSP-LA

Document B
TSP-BER1

Document B
TSP-TX

Document D
ZNG

Template A

  • TSP*

Template B

  • TSP-LA

Template D

  • TSP-BER*

  • TSP-TX*

Template D

  • ZNG

Template E

  • *

Example for key in number or description

Following access examples based on setting "Template search using the document identification and if not found using the document type".

Existing templates (key in number):

  • TSP:

  • TSP-AC:1

  • TSP-AC:2

  • TSP-BH:

Access examples, if several templates grab, the user can choose one from a selection:

Document type

Identification

Template(s)

Note

Document type

Identification

Template(s)

Note

TSP

TSP-BH

TSP-BH:

Direct usage of template, no selection.

TSP

TSP-AC

TSP-AC:1 and TSP-AC:2

The user has to select one of the found templates.

TSP

TSP-ZF

TSP:

No template for identification found, therefore the template with key = document type will be used.

QV1

QV1-BX

None

No valid template found and a corresponding message given to the user.

Create template document info records

Use SAP-DMS standard transaction CV01N to create a template document info record. Rules:

  • If the access type for the templates is set so that the key is in the document number, then the document number must be according to the syntax described above.

  • If the template access type is set so that the key is in the document name, the key must be in the name before the text according to the syntax described above.

  • If the access type for the templates is set to "Common assignment in the templates", the document identifications for which a template is valid must be entered in the corresponding multi-value characteristic.

  • A text must always be entered (directly or after the key).

  • Add the template original (the Microsoft Office document) to the new document info record and store it. If the template is not stored, the file must be located in a directory that can be read by all SAP DMS users.

  • Do not forget that the template document is only active when it is set to a status that has the release indicator set.

© ProNovia AG | Imprint | Data Protection