Skip to Content

This is the 3 part of the How-to Use Document Templates in ITSM Blog

Prerequisites

  • SAP Solution Manager 7.1
  • Microsoft Word
  • Notes to check:

1840810 – Creation of Template using the document template designer in CRM

1707600 – Office Integration for MS Word 2007/2010

1777018 – Office integration – MS Word 2007/2010 with Content Controls

1829834 – Cannot create ‘DOC’ type attachment on MSWord2007/MSWord2010

Scope and context

The scope of this blog, is show you how-to generate the Template Word files dynamically with the information of the Ticket and protect them for the free editing of the end users.


Procedure

On  ITSM –> Service Operations–>Document Template, select create a “New” Document Template.
Screen Shot 2013-04-25 at 8.58.42 AM.png

Fill all the information and click on Download to save the Schema on your computer
Screen Shot 2013-04-25 at 9.37.09 AM.png

Then, click on “Start Designer”
Screen Shot 2013-04-25 at 8.59.43 AM.png

SAP Solution Manager will be open the WORD on your computer with the template name that you define in the previous step, Go to “Developer” tab, and select “Schema”Screen Shot 2013-04-25 at 9.37.57 AM.png

Click in “Add Schema” to select the schema that you download previously:
Screen Shot 2013-04-25 at 9.38.14 AM.png

Define an “Alias” for the new Schema and save
Screen Shot 2013-04-25 at 9.03.59 AM.png

Before leave the screen, remember to flag/Activate the Schema.
Screen Shot 2013-04-25 at 9.38.46 AM.png

Now is time to edit the word document, for this demo I will show 2 fields (Incident, Description:

________
Screen Shot 2013-04-25 at 9.40.25 AM.png
________________________________________________

To add the fields, you need to select the -crmost_<name of the webservice> from the right on the screen.
Screen Shot 2013-04-25 at 9.40.31 AM.png

The system will be propose if you want to “Apply to Selection Only”  or to “To the entire document”, My recommendation is use “Entire Document”  (If you select “Selection Only”, each time that you want to use a web service field, the system need to define the full path of the field)

Screen Shot 2013-04-25 at 9.04.21 AM.png

After select the WebService, you will found Output–>ZwebserdocWord01–>Administrativeheaderoforder–>ObjectID

Screen Shot 2013-04-25 at 9.04.27 AM.pngScreen Shot 2013-04-25 at 9.04.32 AM.pngScreen Shot 2013-04-25 at 9.04.34 AM.pngScreen Shot 2013-04-25 at 9.04.37 AM.png

Now in your Word Document  you will found in pink color, the field that you mapped

Screen Shot 2013-04-25 at 9.41.17 AM.png

For this demo, I mapped 2 field, IncidentID and Description

Screen Shot 2013-04-25 at 9.41.30 AM.png

How-to Restrict the edition of the Document

Now is time to Lock the Word document, to do that you need to click in the button “Restrict Editing”

Screen Shot 2013-04-25 at 9.50.27 AM.png

Then Select the option 2.Editing Restrictions –> Allow Only this type of Editing in Teh Document: –> Filling in Forms” (this will force the user to only use the forms that we define)
Screen Shot 2013-04-25 at 9.50.31 AM.png

For this demos I add 2 new fields, Owner and Date

Screen Shot 2013-04-25 at 9.51.10 AM.png

Then select the “Text” Icon in the Controls Tab

Screen Shot 2013-04-25 at 9.51.16 AM.png

Now you will found the in field in the Word document
Screen Shot 2013-04-25 at 9.51.34 AM.png

To enable the protection, you need to click on “Yes, Start Enforcing Protection”
Screen Shot 2013-04-25 at 9.51.50 AM.png

Word will be open a new screen to allow you define a Password Document:
Screen Shot 2013-04-25 at 9.51.56 AM 1.png

Now you will found the message saying that this Document is protected from unintentional Editing.
Screen Shot 2013-04-25 at 9.52.07 AM.png

Then you save the document and Close Word application, you will found the following message in ITSM
Screen Shot 2013-04-25 at 9.59.05 AM.png

How-to Use the document in ITSM

Now when you open your Incidents in ITSM , In the Attachments you will have the option to create New Attachments “With Template” Screen Shot 2013-04-25 at 9.59.42 AM.png

You will se the list of Templates document that you can use,Screen Shot 2013-04-25 at 9.59.50 AM.png

If we select the document that we create previously, WORD will be open and you will found your template, with the information of the Incident filled.Screen Shot 2013-04-25 at 10.00.09 AM.png

Now you use the word only making modifications in the forms that you define previously.
Screen Shot 2013-04-25 at 10.00.33 AM.png

After close Word, you will found your document in the Attachments, with “x” at the end,

Screen Shot 2013-04-25 at 10.01.11 AM.png

Still in Investigation

When you close Word, SAP dont close the “Template Selection Screen”

When I use the Option “With Template”, Word always save the document with the same name <template>x

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply