Show TOC Start of Content Area

Procedure documentation Defining Actions for the Web Dynpro Project  Locate the document in its SAP Library structure

Use

As with the actions that you created for the permissions checked in the EJB methods, you also have to create actions that apply to the permissions checked in the Web Dynpro client. For this tutorial, you will include these actions in the actions.xml file that you created for the J2EE application. However, depending on the scope and structure of your application, you can create a separate actions.xml file to be used by the Web Dynpro client application.

Prerequisites

This graphic is explained in the accompanying textThis graphic is explained in the accompanying text

The Web Dynpro perspective is displayed in the SAP NetWeaver Developer Studio.

This graphic is explained in the accompanying textThis graphic is explained in the accompanying text

The Web Dynpro car rental project, TutWD_CarRental, is displayed in the Navigator.

Procedure

...

       1.      Return to the Navigator.

       2.      Expand your development component project and open the actions.xml file that you created in the last part of the tutorial (in the src directory).

       3.      Choose the Source tab page from the multi-page editor.

       4.      Enter the XML tags for the action to access the Web Dynpro car rental application as follows:

...
   <ACTION NAME= "WDMaintainPremium" >
       <DESCRIPTION LOCALE= "en" VALUE= "Create Reservations for Premium
            and Luxury" />
      <PERMISSION CLASS= com.sap.engine.examples.ejb.quickcarrental.QuickReservationEjbPermission"
        NAME= "*" VALUE= "view" />
      <PERMISSION CLASS= "com.sap.engine.examples.ejb.quickcarrental.QuickReservationEjbPermission"
         NAME= "Premium" VALUE= "create" />
      <PERMISSION CLASS= "com.sap.engine.examples.ejb.quickcarrental.QuickReservationEjbPermission"
         NAME= "Luxury" VALUE= "create" />
      <PERMISSION CLASS= "com.sap.engine.examples.ejb.quickcarrental.QuickReservationEjbPermission"
         NAME= "Premium" VALUE= "cancel" />
      <PERMISSION CLASS= "com.sap.engine.examples.ejb.quickcarrental.QuickReservationEjbPermission"
         NAME= "Luxury" VALUE= "cancel" />  
   </ACTION>


   <ACTION NAME=
"AccessWebDynproCarRental">
      <DESCRIPTION LOCALE=
"en" VALUE="Access Web Dynpro Car Rental" />
      <PERMISSION CLASS=
"com.sap.tut.wd.carrental.WDCarRentalPermission"
         NAME=
"WDmaintain" />
   </ACTION>
</BUSINESSSERVICE>

       5.      Save the data.

       6.      Rebuild and redeploy the actions archive.

                            a.      Open the context menu for the project and choose Development Component    Build.

                            b.      In the dialog that follows, select your actions and choose OK.

The actions archive is built.

                            c.      Expand the gen  default  deploy subfolder.

                            d.      Select the SDA file, open the context menu and choose Deploy.

The changed actions are deployed to the AS Java.

Next Step:

Modifying the UME Roles and User Assignments

 

End of Content Area