Show TOC Start of Content Area

Procedure documentation Tutorial 1: Step 1 – Developer 1 Creates Projects  Locate the document in its SAP Library structure

Use

In this step,  Developer 1 as a project leader creates projects to develop a simple J2EE application. The application shows a Web page for tax calculation: you enter your income and the tax amount is displayed..

Prerequisites

You work in the SAP NetWeaver Developer Studio.

Procedure

Create an Enterprise Application Project

...

       1.      To create a J2EE Enterprise Application project, from the menu path choose File New Project J2EE Enterprise Application Project.

       2.      Name the new project TaxEAR and accept the default project location.

       3.      To commit your changes, choose Finish.

The J2EE Development perspective is opened and the J2EE Explorer view becomes visible. In the explorer an entry for your new project has been created.

Share the Project with Team Members

You use the Design Time Repository (DTR) to share projects with all team members. Every member has access to the DTR.

...

       1.      In the J2EE Development perspective, switch to the Navigator view.

       2.      In the project tree select the entry TaxEAR.

       3.      In the context menu choose DTR Share Project.

                            a.      If you are not logged on to the DTR yet, a logon window will appear: Enter USER1 and the corresponding password.

The Share Project dialog appears. The upper part of the dialog shows the folder structure on the DTR server.

                            b.      Select your DTR client.

                            c.      Search the workspace scenario1/tax/dev in this structure and select dev.

                            d.      Choose Create Folder from the context menu and enter projects/TaxEAR.

                            e.      Choose OK.

                              f.      Select the TaxEAR folder and choose Finish.

The project together with its content now will be moved to the folder c:\JDI\scenario1\tax\dev\projects\TaxEAR.

Note

This is the location to which the Developer Studio later on will replicate sources from the server.

       4.      In the Navigator view, click TaxEAR with the secondary mouse button and choose DTR Add Add Subtree.

       5.      in the dialog that appears choose OK.

A dialog box appears.

       6.      To create a new activity, in the dialog choose New.

Note

This activity is used to record your changes. You can add several changes (which should belong together) to one activity.

       7.      Enter New Projects as display name of the new activity and accept your input.

A dialog box appears.

       8.      In the Select Activity dialog, select the new activity and again choose OK.

The files of your project are added to the activity. They are not yet checked in, because you shall use the same activity to create some other projects.

Create a Web Module Project

...

       1.      To create a Web Project, form the menu path choose File New Project J2EE Web Module Project.

       2.      Name the new project TaxWeb and accept the default project location.

       3.      To commit your changes, choose Finish.

The J2EE Explorer view screen appears and shows an entry for your project.

Share the Web Module Project

...

       1.      Switch to the Navigator view.

       2.      Select the entry TaxWeb in the project tree and choose DTR Share Projectfrom the context menu.

A dialog window Share Project appears.

       3.      Select the remote folder scenario1/tax/dev/projects.

       4.      In the context menu choose Create Folder and enter TaxWeb.

       5.      To commit your input, choose OK.

       6.      Select the TaxWeb folder and choose Finish.

The project together with its content now will be moved to the c:\JDI\scenario1\tax\dev\projects\TaxWeb folder.

       7.      In the Navigator view select the project TaxWeb and expand the project node.

       8.      Add subfolders in the project folder to the DTR.

                            a.      Select all subfolders of the project folder except the bin folder (with multi-select, you can select either files or folders).

Note

The Developer Studio uses the bin folder for compiling your projects. For other technologies (WebDynpro, Data Dictionary etc.) you may have to select another set of folders here.

                            b.      From the context menu, choose DTR Add Add Subtree

A dialog box Select Activity appears.

                            c.      Select activity New Projects and choose OK.

       9.      Add files in the project folder to the DTR.

                            a.      Select all files that are located directly in the project folder.

                            b.      From the context menu, choose Add.

A dialog box Select Activity appears.

                            c.      Select activity New Projects (if necessary) and choose OK.

Check In Your Changes

To check in activities, navigate to the Open Activities view.

...

       1.      Choose Window Show View Other Design Time Repository Open Activities.

       2.      In the Open Activities view select the activity New Projects.

Note

If the activity is not yet visible, refresh the display by choosing the appropriate pushbutton in the title bar of the view.

       3.      Choose Checkin from the context menu.

A dialog window Checkin Activity appears.

       4.      Choose OK.

Your changes now are written to the repository.

Note

The activity is closed now. For further changes you have to create a new activity.

Next Step

Tutorial 1: Step 2 – Developer 2 Enhances the Projects

End of Content Area