Show TOC Start of Content Area

Procedure documentation Creating Use Dependencies on Another Development Component  Locate the document in its SAP Library structure

Use

In this step, you create a use dependency for the TaxUIController class to the ITaxCalculator and TaxFactory from the development component technology/tax/calculator. This is required to build the TaxUIController class.

Prerequisites

      You have restarted the SAP NetWeaver Developer Studio to refresh the active DCs list.

      You are in the J2EE Development perspective in the J2EE DC Explorer view.

Procedure

Add Dependency to Another DC

...

       1.      Under ...appl~tax~servlet..., open the node DC MetaData  DC Definition.

       2.      Select the node Used DCs. From the context menu, choose Add Used DC.

       3.      From the component tree in the Active tab page, select the node of your development configuration  example.org_technology  tech/tax/calc  DC MetaData  Public Parts  api.

       4.      Select only the checkboxes Build Time and Run Time – remove other selections if necessary.

       5.      Choose Finish.

The TaxUIController class is rebuilt automatically and all compilation errors should vanish.

Add Modules

...

       1.      Go to the J2EE Development perspective in the J2EE DC Explorer view.

       2.      Select the node of the Enterprise Application Project (...~appl~tax~...) and from the context menu, choose Add Modules.

       3.      In the dialog that appears, select the Servlet project (...~appl~tax~servlet...) and choose OK.

You now add the Servlet to your Enterprise Application.

Up to now, the Enterprise Application has only one compile time dependency to tech/tax/calculator. In order to run this application, you must also create a runtime dependency to the J2EE component technology/tax.

Create a New Reference

...

       1.      Go to the J2EE Development perspective in the J2EE DC Explorer view.

       2.      Open the entry application-j2ee-engine.xml in your Enterprise Application Project (...~appl~tax~...).

       3.      In the editor that appears, choose the General tab.

       4.      Select References.

       5.      Choose Add.

A dialog box appears.

       6.      Choose Create New...

       7.      For the new reference specify:

Data

Value

Referenced Target

tech/tax

Reference type

hard

Reference target type

library

Provider Name

example.org

       8.      Save the file.

Result

You have created the dependencies to the public parts of the other development component. Also, you have managed the required references between the files in the different DCs.

Next Step

Testing, Checking In and Activating the DC

End of Content Area