28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

In the New Package dialog, enter information in the following fields:<br />

a) Enter a name for the new package.<br />

The package Name is mandatory.<br />

b) Fill in the other optional information as required:<br />

Related Links<br />

Use the Delivery Unit drop-down list to assign the new package to a delivery unit.<br />

Choose Translation if you intend to have the package content localized. You must maintain the translation<br />

details.<br />

<strong>SAP</strong> <strong>HANA</strong> Delivery-Unit Translation Details [page 353]<br />

The <strong>SAP</strong> <strong>HANA</strong> repository includes features for translating package-related metadata texts. If you plan to<br />

translate the contents of the new delivery unit you create, you must maintain translation details.<br />

4.3.4 Defining a Package Hierarchy<br />

Packages belonging to an application-development delivery unit (DU) should be organized in a clear hierarchical<br />

structure under a single root package representing the vendor, for example, acme.<br />

The package hierarchy for a new project might include sub-packages, for example, to isolate the data model from<br />

the business logic. Although there are no package interfaces to enforce visibility of objects across packages, this<br />

separation of logical layers of development is still a recommended best practice.<br />

Note: You can only assign one project per package; this is important to remember if you have a mixture of<br />

design-time objects that need to be used in multiple projects, for example: server-side JavaScript (XSJS),<br />

<strong>SAP</strong>UI5, and a general project (for procedures).<br />

The following simple example shows a package structure containing tutorials for the use of a new application:<br />

acme<br />

\<br />

hana<br />

\<br />

app1<br />

\<br />

docs<br />

\<br />

tutorials<br />

● Package hierarchy<br />

Each vendor uses a dedicated namespace, for example, acme.<br />

● Package type<br />

Note: Do not use the namespace sap to build your application hierarchy. The namespace sap is<br />

reserved for use by <strong>SAP</strong>; packages created in the sap namespace are overwritten by system updates.<br />

Some packages contain content; other packages contain only other (sub)packages. Packages can also<br />

contain both objects and (sub)packages.<br />

● Package naming conventions<br />

There are recommendations and restrictions regarding package names.<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Setting Up Your Application<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 47

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!