sap business one: on sdn: articles & tools for add-on ... · ©sap ag 2006, on sdn: articles +...
TRANSCRIPT
SAP Business One:On SDN: Articles & Tools for Add-On Development
Frank MoebiusSolution Architect
Please note that we are recording this session!
SAP Business One Welcomes you to the Weekly Partner Webinar Series
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 2
Your Instructor
Frank MoebiusSolution Architect
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 3
Prerequisites
Required:
Knowledge of SAP Business One 2005
Recommended:
Add-On development knowledge
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 4
Agenda: On SDN - Articles & Tools
SAP Business One on SDN – not just a Forum
Tools1: Development Environment (B1DE 1.2)
Tools2: Test Environment (B1TE 2.0)
Other Tools & Samples
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 5
On SDN: Developer Area / Forums / Blogs
• Developer Area:• News &• Links &• E-Learning &• Knowledge Center
…
• Forums• SDK: SAP Business One Discussion Forum• Integration: SAP Business One Integration Technology
• (We)Blogs:• Search for the phrase „SAP Business One“• Please note that some results will occurr unexpectedly…
(Check: Bloggers until today: Trinidad Martinez, Henry Nordstrom, Ibai Peña, Lutz Morrien)
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 6
On SDN: Business One Knowledge Center in Developer Area
Content:• Articles• Documents• Downloads
sorted per topic
Among other content…:Getting Started => SDK Solution Development Guide
SAP Business One and SDK General => (short) Article „Creating Add-On Documentation“
SAP Business One 2005 A SP01 => Changes + new features
SDK Version 2004 => API DataBase Field Mapping DI 6.7 52-3
SDK User Interface (UI) API => Quite some information
SDK Data Interface (DI) Server => THE Blog from Henry Nordstrom
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 7
SDN SAP Business One SDK Tools area
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 8
Tools: What’s in?
SAP Business One Development Environment (B1DE)Add-On wizardUDO form generatorB1 DB BrowserSetup wizard
SAP Business One Test Environment (B1TE).NET ProfilerB1 DB BrowserB1 DB ProfilerForm CheckerBubble Checker
SAP Business One Test Composer (B1TC) (planned)Test tool with define / record / edit / replay capabilities
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 9
Tools – General remarks
Based on B1 SDKProductivity and testing toolsSome best practices in codeFacilitate creating and delivering a solutionNO magic behind though – could have been coded by ISVs
Based on .NET and Microsoft Visual Studio .NETthe most used development environment for B1
Delivered within SDN license modelfor freewithout any supportwithout any warrantywith source code
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 10
Agenda: On SDN - Articles & Tools
SAP Business One on SDN – not just a Forum
Tools1: Development Environment (B1DE 1.2)
Tools2: Test Environment (B1TE 2.0)
Other Tools & Samples
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 11
B1DE – Motivation
B1DE packages best practices in coding Add-On solutionsLeave the “plumbing” to B1DE’s wizardsAutomatically ensures that the generated code is according some important guidelinesDevelopers can concentrate on the functional side
Facilitate deployment
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 12
B1DE – Components
B1 Code Generator Wizarda set of Microsoft Visual Studio .NET wizards and add-insto generate .NET B1 solutions: VB.NET and C#
B1 UDO Form Generatora Windows tool (also integrated with B1 Code Generator Wizard)to generate an XML form starting from an UDO
B1 Simple Installer Wizarda Microsoft Visual Studio .NET wizardto generate the setup code to install and register an add-on with B1
B1 «Professional» Installer Wizarda Microsoft Visual Studio .NET wizardto generate the .NET setup code to install and register an add-on with B1
B1 DB Browsera Windows tool (also integrated with B1 Code Generator Wizard)to visualize the current status of a SAP Business One database in terms of the tables, columns, types, default values, database constraints and links
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 13
B1DE – Code Generator
B1 Code Generator Wizard generates:Visual Studio .NET solution and projects“Plumbing” codeDB “Metadata”XML forms and menus
In detail the generated code manages:UI and DI connectionsmetadata creation
user tables, user fields, UDO
menu, item and application eventslistener-based interfaceevent registrationevent filtering
menu actionscreation, deletion, updateattach a form to a menu
form generation (UDO) and loading
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 14
<Your Add-On>
B1DE-based Add-On in MS Visual Studio – Overview
Add-On Solution
Concrete Add On:Main + concrete classes
UIWizard
GUICodeGen
Reflection
CodeDOM
Generic Add On Abstract Classes
B1Wizard.dllXMLDOM
B1 SDK
COM.NETVisual Studio
AddOn
Model
XMLGen Menus and UDO Forms XMLs
Metadata
UIAdd-Ins
GUI
Visual Studio
Concrete Project
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 15
B1DE – Code Generator: Step 1 (new project)
• A new Add-On Project with B1DE
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 16
B1DE – Code Generator: Step 2 (DB and „metadata“)
Logon to a company DB and specify „metadata“
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 17
B1DE – Code Generator: Step 3 (menus)
Specify menu changes (add, remove, …)
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 18
B1DE – Code Generator: Step 4 (menu handlers)
Specify menu handlers – or forms to be launched…
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 19
B1DE – Code Generator: Step 5 (item event handlers)
Select a form – then an item on the form and choose the event typeyou‘d like to handle…
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 20
B1DE – Code Generator: Live
Let‘s see it in action now…
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 21
B1DE – Setup Wizard
• „Professional“ setup• …a new Add-On version… - what to do?
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 22
B1DE – Setup Wizard (continued)
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 23
B1DE – Setup Wizard: Live
…
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 24
B1DE – DB Browser Demo
• Demo:• DB Browser gives some graphical overview• Find DB changes through DB Browser
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 25
Agenda: On SDN - Articles & Tools
SAP Business One on SDN – not just a Forum
Tools1: Development Environment (B1DE 1.2)
Tools2: Test Environment (B1TE 2.0)
Other Tools & Samples
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 26
B1TE – Components
B1 .NET Profiler Can trace calls to SAP B1 SDK and any other .NET objectsTraces deprecated SDK API callsSupports generation of list of used objects/methods for certificationOnly available for Add-Ons using in MS .NET (uses Profiling API of MS .NET)
B1 DB Profiler Traces calls to Business (and other) Objects
B1 Bubble Checker Verifies the propagation of events within an Add-OnTraces events like EventSpy did earlier
B1 Form Checker Checks compliance of forms against Screen Design GuidelinesFlexible: Add additional checks (or remove checks)
Detailed documentation on B1TE is included with its installationB1TE together with its source code is available on SDN
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 27
B1 .NET Profiler – Important to know…
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 28
B1TE – B1 .NET Profiler Demo
• Demo:• Setup (filters, rules)• Usage (incl. latest enhancements etc.)
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 29
B1TE – B1 DB Profiler Demo
Demo:• See what‘s getting
logged
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 30
B1TE – B1 Bubble Checker Demo
Demo:
• See the events; events not being bubbled would be highlighted…
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 31
B1TE – B1 Form Checker
Demo:• See how you can
use it• Learn how you can
extend it
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 32
B1TE – Benefits / usage
• Use it for your QA• Test the code
• Support• Have customer going through a scenario and eventualy find the issue;
limitation of .NET Profiling API: no data – just function calls!
• Used for Solution Certification• SAP ICC will perform tests according to the „Test Plan“
•…
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 33
Agenda: On SDN - Articles & Tools
SAP Business One on SDN – not just a Forum
Tools1: Development Environment (B1DE 1.2)
Tools2: Test Environment (B1TE 2.0)
Other Tools & Samples
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 34
Sample / Tool: Form Generators
• The „Form Generator“ is a ready to use sample which shows youhow to generate XML definition of a SAP Business One form from a .NET form.
• B1DE contains a tool just for creating a simple form defintion for a UDO…
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 35
Sample: DIEventService
A ready to use sample
providing database
„events“!
Architecture =>
© SAP AG 2006, On SDN: Articles + Tools for Add-On Development / Frank Möbius / 36
Thank you !
Additional information:http://service.sap.com/smb
http://sdn.sap.com