This section will guide you to create a template for Appointments
items, and to work with it in Microsoft Outlook.
Prerequisites
Make sure that you have the URL of the OData service you want to use, and you have
permissions in the SAP Gateway system to access the service.
Context
To create the Appointments template, proceed as follows:
Procedure
Open the GWM Outlook 2010 Add-in or GWM Outlook 2013
Add-in wizard.
The wizard opens the Select Template page.
Choose Appointments in the list of items under Select
Template and then enter a name for the template.
A default name, Appointment01, is provided for
the template. You can change the name.
Note The template name field can take a
maximum of forty characters. Only alphanumeric (numbers and letters) are
allowed.
Choose Next. The Select Service page
opens.
Enter the URL of the service in the Service URL field
and click GO to access the service.
You can choose Browse to connect to SAP Gateway system, and then
select the OData service, GWDEMO in the
Connection Service window.
The Service
Collections pane opens to display the list of collections,
and a default name is generated for the proxy in the Proxy
Name field. You can change the name of the proxy.
Choose Next. The page displays the following 2 panes:
Service Collection:
Displays the list of collections in the selected service. Select the
collection you want from the list.
Collection Properties:
Displays the list of properties in the selected collection. Icons
indicate the create, update and delete capabilities supported in the
collection.
Select the collection of your choice, for example,
TimeRecordingCollection in the Service
Collections pane.
Choose Next, the Map Properties page
displays.
To manually define the mapping between the properties of the service and the
properties of the Appointment item, drag and drop the suitable property from the
SAP Properties on the left to the field for the
Outlook Property on the right.
Choose Next; the Additional Properties page
displays. In the Additional Properties page, you can add
further customization, and view the associations defined in the service for
navigation options..
Click Next; the Project Summary page
displays, and then click Generate Project. The wizard
generates the project for your template. The generated code and resources
display in the Solution Explorer of Visual Studio.
Working with the Appointment Template in Outlook
Procedure
Select the GWM Outlook add-in name from the Microsoft Outlook
ribbon. For example, GWMOutlookadd-in1
Click GetAll TimeRecording to retrieve all the time recordings from the SAP
system.
The time recordings are fetched and displayed in the Microsoft Outlook details
region.
Double click on a time recording item to open it, and then do the following:
If the service supports record edits, make changes to the appointment item and click
Save&Close to save the changes to the
appointment in the SAP system.
If the service supports record deletion, delete the appointment.
Click on the New Item button on the toolbar to create a new time
recordings. This is the New Items label you had specified when creating the
template.
The create appointment window appears.
After entering the details for new time recordings, click Save & Close
to save the new appointment to the SAP system.