Sunteți pe pagina 1din 4

Instructions for Deploying and Running the Demo Application

The book Design Patterns in Object-Oriented ABAP, by Igor Barbaric, Galileo Press 2009, describes the concept of design patterns used in object-oriented ABAP programming. A demo application was created especially for this book, and referencing it in live performance as you read the book will be helpful. This document describes the procedure to deploy and run the demo application.

ZIP Archive DesignPatternsInOOABAPDemo.zip


The ZIP archive DesignPatternsInOOABAPDemo.zip consists of the following les and folders: Printable diagrams.pdf Deployment instructions.pdf trans data: R900096.NSP, R900092.NSP coles: K900096.NSP, K900092.NSP

Printable diagrams
Some diagrams are frequently referenced in the book, or they contain many small details. These diagrams are provided in PDF format so you can print them separately and reference them as you read the book. These printable diagrams also contain corrections to some minor errors that were spotted after publication.

Deployment Instructions
The application was created in SAP NetWeaver AS 7.00, and two transport requests were created and tested for import in versions as stated in the below table. Depending on your NetWeaver application server version, only one transport request should be chosen and imported.
Trans. request NSPK900096 NSPK900092 Description DPs in OO ABAP: Demo App w Web Dynpro 7.00 DPs in OO ABAP: Demo App w/o Web Dynpro Files K900096.NSP R900096.NSP K900092.NSP R900092.NSP 6.20 and 6.40 (without Web Dynpro) Tested in AS version 7.00 and 7.01

Recommendation: You can also deploy and start the demo application in the SAP NetWeaver 7.01 ABAP Trial Version, which you can download for free at http://www.sdn.sap.com/irj/scn/nw-downloads. This light trial SAP ABAP system (its just an engine without a specic application) can be easily installed on most desktop and portable computers. The requests can be imported via standard SAP transport infrastructure through the STMS transaction, provided that the transport system is correctly set up and that you have the needed authorizations:

1. Place the les into the corresponding coles and data transport folders (e.g. <sapinst dir>\trans\data and <sapinst dir>\trans\coles). Some NetWeaver ABAP based applications (unfortunately not all) have transaction CG3Z for this purpose (copying les from presentation server to application server), while with others, le system access is needed at the application server. 2. The le starting with letter K belongs to the coles folder, while the le starting with letter R belongs to the data folder. For example: coles: K900096.NSP data: R900096.NSP 3. Start transaction STMS. 4. The specic systems import queue is displayed (double-click at the system name). 5. Add the transport request to the queue by following menu path EXTRAS OTHER REQUESTS ADD. 6. Click on the truck button to import the request.

Custom Objects in Transport Requests


All the custom objects in the demo application are stored in the ZDPD package. The table below shows the entire contents of the transport requests, including objects generated by the system.
Type CLAS CLAS CLAS CLAS CLAS CLAS CLAS CLAS DEVC INTF INTF INTF PROG PROG SICF SOTR TABL TABL TRAN TRAN WDYA WDYN WDYN Name ZCL_DPD_APP_MOD ZCL_DPD_DOCK_CONTAINER_FACTORY ZCL_DPD_ITAB_DEC ZCL_DPD_ITAB_DEC_AIRPORTS ZCL_DPD_ITAB_DEC_CARRIERS ZCL_DPD_ITAB_DEC_PLANES ZCL_DPD_MOD_DBT ZCL_DPD_ST_TEXT_EDITOR ZDPD ZIF_DPD_TREE_OBJECT ZIWCI_DPD_APP_CON_WEBDYNPRO ZIWCI_DPD_ST_TEXT_EDITOR ZDPD_APP_CON_GUI ZDPD_SEQUENCE_UML_EXAMPLE NSP00018 ZDPD ZDPD_SFLIGHT_DS ZDPD_SPFLI_DS ZDPD_DEMO_SAP_GUI ZDPD_DEMO_WEB_DYNPRO ZDPD_APP_CON_WEBDYNPRO ZDPD_APP_CON_WEBDYNPRO ZDPD_ST_TEXT_EDITOR BPXI9KP2BASOTAFYZA1IQQI7C NSPK900096 + + + + + + + + + + + + + + + + + + + + + + + NSPK900092 + + + + + + + + + + + + + + +

Running the Demo Application


SAP GUI
To run the SAP GUI part of the application, follow these steps: Start the program ZDPD_APP_CON_GUI from transactions such as SE80, SE38, or SA38. Start Transaction ZDPD_DEMO_SAP_GUI.

Web Dynpro
To start the Web Dynpro part of the application, follow these steps: Run Transaction SE80, choose REPOSITORY BROWSER, enter Package and package name ZDPD in the corresponding elds. Then navigate the tree of the ZDPD package, right click on the Web Dynpro application ZDPD_APP_CON_WEBDYNPRO, and choose TEST from the context menu. The browser with the application should open.

Start the ZDPD_DEMO_WEB_DYNPRO transaction to run the Web Dynpro application in a window within SAP GUI.

It is possible that the HTTP service for the WD application remains inactive after import. If the attempt to start the applications fails, the application should be activated in the following steps: 1. Start transaction SICF. 2. In the eld SERVICE NAME enter the name of the application ZDPD_APP_CON_WEBDYNPRO and execute. The service tree should open, with hierarchy SAP BC WEBDYNPRO SAP ZDPD_APP_ CON_WEBDYNPRO or similar. 3. Perform a right mouse click on the application, and choose ACTIVATE SERVICE.

S-ar putea să vă placă și