Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Customizing Duet 1.5


Published on

Presentation given at SAP & MS Integrator\'s SIG - July 2010

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Customizing Duet 1.5

  1. 1. Customizing Duet 1.5 solutions<br />Andre Rosenthal, CTO<br />Ricetech Inc, Dallas TX<br /><br />
  2. 2. Case Study – parameterized calls <br />How do you pass a parameter to Outlook as part of a step of a workflow?<br />Business reasons: passing the cost center for a cross-center expense report.<br />Duet 1.5 solution: anything that is not vanilla for a workflow must be handled via ABAP code. <br />Easier said than done!<br />
  3. 3. Outlook 2007 handling<br />Either consume the new parameter and display it as part of the message body of the Duet item<br />Or, better yet, write the body as an XML message, and use Outlook Forms to reformat it <br />The code is pretty ugly as it relies of VSTA without shim <br />You need two assemblies for it to work, and full trust between these<br />Additionally you will need to use WS03 in dev mode in order to debug the application code.<br />
  4. 4. Parameter setting<br />
  5. 5. Resulted Message body<br />
  6. 6. Action Items<br />Migrate the message body to XML<br />Trust the outlook form VSTA application and create a publisher-subscriber event from it into the SAP workflow application<br />Set the OnLoad method to hide the UI – call into ShowWindowEx passing the form’s object of the bound item to the Duet pane.<br />Retrieve the message body as XML, and bind it to a control as in the previous picture.<br />Voila, the Outlook Form is displayed using the data from the workflow!<br />