Sie sind auf Seite 1von 35

SAP Business One

Lightweight Deployment
Solution Architects Team
June, 2015 Internal
Agenda

Deploying Extreme Applications…

 Create Extension Registration Files

 Deploy the extreme app artifacts into SAP

 Register & Deploy the extreme app to SAP Business One

 Authorize users in the companies for the extreme app

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 2


Create a B1 UI API
Web Broswer form
SDK new UI API controls

 XSEngine base url interface

b1xsUrl = SBO_Application.XSEngineBaseURL;

 WebBrowser UIAPI control


SAPbouiCOM.IItem m_webItem = m_testForm.Items.Add(“Browser1”,
SAPbouiCOM.BoFormItemTypes.it_WEB_BROWSER);

SAPbouiCOM.IWebBrowser m_webBrowserControl = m_webItem.Specific as
SAPbouiCOM.IWebBrowser;

m_webBrowserControl.Url = b1xsUrl + “/myXSAppPackage/”;

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 4


Create Extension
Registration Files
Create Extension Registration File

 Execute ExtensionPackage.exe program from the folder …


– …\Program Files (x86)\SAP\SAP Business One SDK\Tools\ExtensionPackage

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 6


Create Extension Registration File (1)

 Input “Basic” information about the extreme add-on

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 7


B1 Studio – Create Extension Registration File (2)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 8


Extension Registration Data Generator tool

Lightweight add-on Packaging

Basic Package
Information

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 9


Extension Registration Data Generator tool - Extreme Apps

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 10


Extension Registration Data Generator tool – Extras

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 11


Extension Registration Data Generator tool – Package

• This will create the .zip file with all required files including the .ard file which
is required to add-on registration.

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 12


Deploy the extreme app
artifacts into SAP
SAP B1 Extreme App Framework
From Development to Use

Package Deploy Consume

HTML5
CSS
XSJS

Views

 Develop and test apps in


HANA Studio  Import our package from  Use apps in SAP Business
Extension Manager One client, mobile and
 Export DB & XS artifacts
browser
from HANA Studio  Assign apps to company
databases & configure
 Create Extension
permissions
Registration package

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 14


SAP B1 Extreme App: Import into HANA System (1)

• From the SAP HANA Studio


choose File > Import

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 15


SAP B1 Extreme App: Import into HANA System (2)

• Expand SAP HANA


Content
• Choose Delivery Unit >
Next
• Choose the Target
System > Next

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 16


SAP B1 Extreme App: Import into HANA System (3)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 17


SAP B1 Extreme App: Import into HANA System (4)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 18


Extreme App HANA Deployment for Twitter app - Extras

After the import, on the development perspective of HANA StudioThird level …


• Check the software repositories and execute all the SQL commands that are listed on the
file Summit15 > SQL > CreateIndexes.sql
• Those commands will Activate Text Analysis features on the app.
• The app will be at … http://<yourserver>:8000/Summit15/UI/index.html

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 19


Extreme App HANA Deployment for Twitter app - Extras

Tweets Retriever
 To gather tweets in real time we have a script written in Server Side JavaScript and runs on
a framework called Node.JS.
– This small script is responsible for listening the Twitter API and every time a new tweet comes up, it will
be stored on a HANA Server.
To Run
 Download and Install Node.JS
 From terminal (cmd, shell, etc) download the script dependencies by running these 3
commands:
– npm install util
– npm install hdb
– npm install twitter
Register a new application on Twitter Developers to have your own twitter keys

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 20


Extreme App HANA Deployment for Twitter app - Extras

Open the node scripts (brands.js, sapb1.js and twitterSummit.js) and fill your twitter
keys and HANA server information.

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 21


Extreme App HANA Deployment for Twitter app - Extras

Run the Tweets Retriever scripts with the commands …


 node brands.js
 node twitterSummit.js
 node brands.js

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 22


*Import Delivery Unit - Note

For more information on Importing Delivery Units into SAP HANA … please see …
• Introduction to Software Development on SAP HANA How to Import Delivery
Units …
http://help.sap.com/openSAP/HANA1/openSAP_HANA1_Week_01_How_to_Imp
ort_Delivery_Units.pdf

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 23


Register & Deploy the
extreme app to companies
Accessing SAP Business One Extension Manager (1)

• From SAP Business One client choose Add-ons > Add-on Administration
• Click “Manage Extensions for Lightweight Deployment”

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 25


Accessing SAP Business One Extension Manager (2)

Alternatively, you can access SAP Business One Extension Manager directly
in a Web browser on the machine on which the System Landscape Directory
(SLD) service is running using the following URL:
https://<hostname>:<port>/ExtensionManager.

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 26


Import and Upload Extension

 Click “Import”
 Browse to your extension .zip file and “Open”
 Click “Upload”

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 27


Import and Upload Extension

 Click “Import”
 Browse to your extension .zip file and “Open”
 Click “Upload”

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 28


Import and Upload Extension - Finish

 Specify any Shared Parameters


 Finish import and run company assignment wizard

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 29


Import and Upload Extension - Finish

 Specify Company(s)
 Specify Parameters (if any)

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 30


Import and Upload Extension – Startup Mode - Default

 Specify Startup Mode for all users or …

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 31


Import and Upload Extension – Startup Mode

 Specify Startup Mode for individual users


 Click Next and then click Finish

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 32


Authorize users in the
companies for the extreme
app
Import and Upload Extension – Startup Mode - Default

 Also you can remove users for authorization by clicking the red “x” for this company

© 2015 SAP SE or an SAP affiliate company. All rights reserved. Internal 34


Thank you

Solution Architects

© 2015 SAP SE or an SAP affiliate company. All rights reserved.

Das könnte Ihnen auch gefallen