Show TOC

Procedure documentationUsing a Code Snippet to Execute a Model Locate this document in the navigation structure

 

You use this procedure to execute an executable model class using code snippets in Web Dynpro.

Prerequisites

You have imported the appropriate Model of the type that has been used in an application.

For more information, see Importing Adaptive Web Service Models

For more information, see Importing Adaptive Remote Function Call (RFC 2 ) Models

For more information, see Importing Enterprise JavaBean (EJB) Models

Procedure

  1. In the Web Dynpro perspective, choose   Windows   Show ViewsSnippets.

  2. In the Web Dynpro Explorer, select the required view.

  3. Choose   Open   Java Editor   using the right mouse button.

  4. Drag Execute Model snippet and drop it in the suitable user code area of the Java editor.

  5. Choose Yes in the confirmation dialog box.

  6. In the Insert Snippet: Execute Model dialog box, select Execute a particular model.

  7. Select the required executable model class and choose Insert.

    System inserts the code to execute the executable model class from a model.