gwpam excel batch feature

10
1 Welcome to this SAP NetWeaver Gateway productivity accelerator for Microsoft presentation. This presentation covers the Batch Feature of GWPAM Excel Add-on.

Upload: vkvk362

Post on 30-Dec-2015

60 views

Category:

Documents


1 download

DESCRIPTION

Excel batch process

TRANSCRIPT

Page 1: GWPAM Excel Batch Feature

1

Welcome to this SAP NetWeaver Gateway productivity accelerator for Microsoftpresentation.

This presentation covers the Batch Feature of GWPAM Excel Add-on.

Page 2: GWPAM Excel Batch Feature

2

Page 3: GWPAM Excel Batch Feature

3

OData Batch requests allow grouping of multiple operations into a single HTTPrequest payload.

Starting with Support Package 4, SAP NetWeaver Gateway Version 2.0 providesthe capability for client applications to group multiple operations into a single HTTPrequest. The body of a batch request is made up of an ordered series of retrieveoperations and/or change sets. Retrieve Operations include the Query or Readoperations. A Change Set is a logical unit of work that is made up of an unorderedgroup of one or more of the Create, Update or Delete operations. The URI of thebatch endpoint is the service Root URI appended by the “$batch” keyword.

For details about how to work with OData Batch in SAP NetWeaver Gateway, referto the SAP Note 1869434. Also, refer to the guide How To Batch MultipleOperations Into a Single Request in the SAP Community Network portal.

Page 4: GWPAM Excel Batch Feature

4

GWPAM for Microsoft Excel can leverage the batch processing capability of SAPNetWeaver Gateway to carry out the Create, Update and Delete operations as asingle HTTP POST request to the $batch endpoint of an OData service. Forexample, submitting changes to the $batch endpoint of the sample serviceZGWSAMPLE_SRV.

To ensure transactional consistency between Excel and the SAP backend system,each Create, Update and Delete operation is processed in a separate change set.

After all operations are successfully processed by the OData service, a list ofchanges submitted to the SAP system and related statuses are displayed in theSubmit Change Response window.

Page 5: GWPAM Excel Batch Feature

5

The Batch feature of GWPAM Excel Add-on is a configurable option and can beenabled during the binding of Microsoft Excel to the OData service. In the ServiceSettings section of the GWPAM Excel binding wizard, the checkbox “Enable batchoperations” can be checked if the selected OData service supports batchoperations.

Because sending of HTTP request happens behind the scene, batch datasubmission to the SAP system is transparent to the End Users working on thebound Excel workbook.

Some of the key benefits of GWPAM Excel Add-on batch processing:• Enhance system performance: Data changes are submitted as a single request

instead of multiple requests, this results in less request/response traffic andenhances system performance.

• Improve data protection: SAP NetWeaver Gateway supports the use of $batch forprotecting sensitive data that can be exposed in URLs, and where the URL getstoo long.

• Ensure data consistency: Since each Create, Update or Delete operation isprocessed as one logical unit of work, transactional consistency is guaranteed bythe NetWeaver Gateway framework.

Page 6: GWPAM Excel Batch Feature

6

We will show a short demonstration of the Batch Feature of GWPAM Excel Add-on.

Page 7: GWPAM Excel Batch Feature

7

Since batch data submission to the SAP system is transparent to the End Usersperforming the Submit Changes function, using an HTTP tracing and debuggingtool for example, Fiddler, will help to understand how multiple operations aregrouped into a single HTTP request payload.

First, let’s take a look how GWPAM Excel add-on performs the Submit Changesfunction without the batch operations enabled.

As seen in the Fiddler tool, each Create, Update and Delete operation is submittedin a separate HTTP request. In the above example, the Create operation of theProduct ID # HT-1019 is submitted separately in an HTTP POST request to theProduct Collection endpoint of the OData service.

Page 8: GWPAM Excel Batch Feature

8

Let’s rebind the Excel workbook to the same ZGWSAMPLE_SRV, but with thebatch operations enabled. We will perform the similar Create, Update and Deleteoperations.

As seen in the Fiddler tool, multiple Create, Update and Delete operations aresubmitted in a single POST HTTP request to the $batch endpoint of the ODataservice. In the above example, each Create, Update and Delete operation isencapsulated in a separate changeset within the body of the HTTP request.

Page 9: GWPAM Excel Batch Feature

9

This concludes this presentation about the Batch Feature of GWPAM Excel Add-on.

Thank you for your time attending.

Page 10: GWPAM Excel Batch Feature

10