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 (DC) tech/tax/calc. This is required to build the TaxUIController class.

Prerequisites

You are in the J2EE Developmentperspective in the J2EE DC Explorer view.

Procedure

Create Use Dependencies on Another DC (Public Part api)

To build the TaxUIController, you must create a dependency to component appl/tax/calc.

...

       1.      Under the node of your DC (...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.      Select tab page Inactive.

       4.      In the component tree, choose APPL_dev example.org_application application/tax/calculator DC MetaData Public Parts api.

       5.      Select only the checkboxes Build-Time and Runtime – remove other selections if necessary.

       6.      Choose Finish.

The TaxUIController is rebuilt and any compilation errors should now disappear.

Add Modules

You are in the J2EE Developmentperspective in the J2EE DC Explorer view.

...

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

A dialog window appears.

       2.      Select the servlet project (...~appl~tax~.servlet..) and choose OK.

You now add the servlet to your Enterprise Application.

Note

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

Result

You have created the dependencies to the public parts of the other DC.

Next Step

Creating a Reference

End of Content Area