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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4. Import a project.<br />

Import a project (and its associated artifacts) that has been shared by another member of the applicationdevelopment<br />

team.<br />

Related Links<br />

Create a Development Workspace [page 39]<br />

A workspace is a local directory that you map to all (or part) of a package hierarchy in the <strong>SAP</strong> <strong>HANA</strong><br />

repository. When you check out a package from the repository, <strong>SAP</strong> <strong>HANA</strong> copies the contents of the package<br />

hierarchy to your workspace, where you can work on the files..<br />

Create a New Project [page 40]<br />

Before you can start the application-development workflow, you must create a project, which you use to group<br />

all your application-related artifacts.<br />

Share a Project [page 40]<br />

Before you can start working on files associated with a new project, you must share the project; sharing a<br />

project enables you to track and synchronize local changes with the repository.<br />

Import a Project [page 41]<br />

Before you can start the application-development workflow, you must either create a new project and share it<br />

(with the repository), or import a shared project from the repository into your workspace. Importing a project<br />

enables you to track and synchronize local changes with the colleagues working on the objects in the imported<br />

project.<br />

4.2.1 <strong>SAP</strong> <strong>HANA</strong> Repository: Workspaces<br />

The place where you work on project-related objects is called a repository workspace. A workspace is an<br />

environment that maps a local directory to all (or part) of a package hierarchy in the <strong>SAP</strong> <strong>HANA</strong> repository.<br />

In <strong>SAP</strong> <strong>HANA</strong> studio, the repository tools enable you to view and browse the entire hierarchy of design-time<br />

objects stored in the repository. However, when you checkout a package from the repository, <strong>SAP</strong> <strong>HANA</strong> copies<br />

the contents of the package hierarchy to your workspace, where you can work on the files in your local file system.<br />

Note: Before you can create a workspace you must maintain connection information in the <strong>SAP</strong> <strong>HANA</strong><br />

database user store.<br />

To start development work with <strong>SAP</strong> <strong>HANA</strong> studio, for example, to checkout the contents of a package, you must<br />

create a repository workspace. The workspace contains a system folder with metadata and package folders for<br />

the repository content. The file-system folders and their subfolders reflect the package hierarchy in the<br />

repository; the repository client ensures that changes are synchronized. You can use <strong>SAP</strong> <strong>HANA</strong> studio to<br />

perform the following workspace-related actions in the repository:<br />

● Checkout folders and files from the repository<br />

● Commit changes to the repository<br />

● Activate the committed changes<br />

● Revert inactive changes to the previously saved version<br />

The commit operation detects all changes in packages that you configure <strong>SAP</strong> <strong>HANA</strong> studio tool to track and<br />

writes the detected changes back to the repository. The repository client tools also support synchronization with<br />

changes on the server, including conflict detection and merging of change. All workspace-related repository<br />

actions are available as context-sensitive menu options in <strong>SAP</strong> <strong>HANA</strong> studio. For example, if you right click a<br />

repository object at the top of the package hierarchy in the Project Explorer in <strong>SAP</strong> <strong>HANA</strong> studio, you can commit<br />

and activate all changed objects within the selected hierarchy.<br />

38<br />

Note: If you create a new project using <strong>SAP</strong> <strong>HANA</strong> studio, you can assign the new project to an existing<br />

workspace.<br />

P U B L I C<br />

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

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

Setting Up Your Application

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

Saved successfully!

Ooh no, something went wrong!