Show TOC Start of Content Area

Procedure documentation Defining Application Service Dependencies  Locate the document in its SAP Library structure

Use

You can create dependency to business objects or another application service. This way you specify that an application service needs to use the interface of another application service or business object node.

Procedure

...

       1.      In Composite Application Explorer, choose with the secondary mouse button the application service node for which you want to create dependencies.

       2.      Choose Edit.

       3.      Open the Dependencies tab page.

       4.      Navigate to and select the business object node or the application service you want to add.

       5.      Choose This graphic is explained in the accompanying text with the quick info text Add Dependency.

       6.      Save and generate your application.

Result

Your application service custom code can use an inherited method that references the dependent service. CAF automatically has generated a convenience method for easy access to the dependency service (for example, getBONodeService() ) so that you do not need to look up the service yourself.

To remove a dependency, select it and choose This graphic is explained in the accompanying text with the quick info text Delete Dependency.

End of Content Area