cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding class builder(SE24)

Former Member
0 Kudos

Hi to all,

I want to know how to create classes and its interfaces and methods using <b>SE24</b> transactions. Is there any documentation for this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Go to <a href="http://help.sap.com/saphelp_nw04/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm">this link</a> in the documentation and read about the Class Builder. That should give you a good starting point.

Regards,

Anand Mandalika.

Answers (2)

Answers (2)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Just check the following links.

1) http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

2) http://help.sap.com/saphelp_46c/helpdata/en/d6/0db357494511d182b70000e829fbfe/frameset.htm

3) http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm

4) http://www.sapgenie.com/abap/example_code.htm ABAP example code

5) http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm

6) http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm

7) http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm SAP Online Help.

9) http://www.sap-img.com/abap-function.htm ABAP Function Modules

10) http://www.sapgenie.com/abap/code/abap19.htm

11) http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm ABAP Quest

12) http://www.planetsap.com/Tips_and_Tricks.htm Tricks & TIps for ABAP

13) http://help.sap.com/saphelp_40b/helpdata/ru/d6/0dc169494511d182b70000e829fbfe/applet.htm SAP Online Help.

14) http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm symbols & Controls commands

15) http://www.henrikfrank.dk/abapexamples/index.html ABAP Examples

16) http://sap.ittoolbox.com/documents/document.asp?i=752 SAP Introduction to ABAP Helps

17) http://members.aol.com/_ht_a/skarkada/sap/ SAP and ABAP Goodies

18) http://sappoint.com/abap/ SAP/ABAP Technical site.

19) http://members.tripod.com/abap4/SAP_Functions.html SAP Functions-ABAP Hints and Tips

20) http://members.ozemail.com.au/~anmari/sap/index.html SAP R/3 Configurations

21) http://www.planetsap.com/Userexit_List.htm All User-Wxirs

22) http://www.planetsap.com/Tips_and_Tricks.htm

23) http://www.kabai.com/abaps/q.htm

24) http://www.planetsap.com/Userexit_List.htm User-Exits

25) http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a8090505211d189550000e829fbbd/frameset.htm bakground jobs

26) http://www.sapgenie.com/abap/bapi/example.htm BAPI step by step

27) http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm SAPscript: Definition of borders, lines, and shading

28) http://www.sap-basis-abap.com/index.htm SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips

29) http://help.sap.com/saphelp_40b/helpdata/en/fc/eb2c46358411d1829f0000e829fbfe/frameset.htm SAP Online help Dialog

30) http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/frameset.htm Dilaog Prog.

31) http://www.geocities.com/ResearchTriangle/1635/system.html System fields

32) http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm Function of table control

33) http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm Defining table control

34) http://www.sapfans.com/sapfans/repos/saprep.htm SAP Repository

35) http://www.planetsap.com/howdo_a.htm ABAP

36) http://help.sap.com/saphelp_util464/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm Table Maintenance Dialog

37) http://www.sapgenie.com/abap/smartforms_detail.htm smart forms

38) http://www.sap-img.com/abap.htm Sample ABAP Codes

3 9) http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d67358411d1829f0000e829fbfe/content.htm Processing Blocks in ABAP Programs

40) http://www.geocities.com/victorav15/sapr3/abap.html ABAP/4 compendium.

41) http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm SAP SCRIPT IMP

42) http://abap4.tripod.com/Other_Useful_Tips.html Additional useful Tips

43) http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm Searach Helps

44) http://www.sap-basis-abap.com/sapmm.htm SAP MM (Materials Management) Configuration Hints and Tips

45) http://sap.ittoolbox.com/nav/t.asp?t=303&p=448&h1=303&h2=322&h3=448

46) http://sapfans.com

Former Member
0 Kudos

Hi,

Creating and Using ABAP Classes


Use
The Web Design API for Tables enables you to modify individual cell data in relation to content, display and navigation options. To do this, you create your own ABAP class that inherits the associated properties and parameters from the class CL_RSR_WWW_MODIFY_TABLE and you redefine one or more methods for this class.

Prerequisites


You have created a Web application that includes the Web item Table and/or the Web item Generic Navigation Block.

Procedure


Create ABAP Class


...

1. From the SAP Easy Access screen, choose Tools ® ABAP Workbench ® Development ® Class Builder (transaction SE24). See also Class Builder.



You can also use the Object Navigator from the ABAP Workbench (transaction SE 80) to generate a class. See also Object Navigator.

2. To create a new class, under Object Type, enter a technical name for your class (for example, ZCL_RSR_WWW_MODIFY_TABLE) and choose (Create). The Create Class YourClassName dialog box then appears.

3. Save your class. You get to the Object Catalog screen.

4. Depending on the system configuration in regard to changes and the transport of objects, either choose a package or save your class as a local object. For more information, speak to your system administrator. The Class Builder: Change Class YOURCLASSNAME screen.

5. Choose Superclass on the Properties tab page. Under Inherits from, enter CL_RSR_WWW_MODIFY_TABLE as the superclass.

6. To see all of the inherited properties and methods of the class CL_RSR_WWW_MODIFY_CLASS in your ABAP class, choose (Save).

7. On the Methods tab page, choose a method (for example, CHARACTERISTIC_CELL or GET_CELL_INFO) that you want to redefine and choose (Redefine).

8. To change the implementation of the method, call up the method name by double clicking.

9. To get back to the original screen, choose (Back)

10. Save your changes.

11. To activate event linking, choose (Activate).

Using an ABAP Class in a Web Template
To be able to use the ABAP class you created, it must be included in a Web template.



...

1. Open your Web template that contains the Web item Table and/or Generic Navigation Block in the BEx Web Application Designer.

2. Use the HTML tab page to switch to the HTML view of the Web Application Designer.

3. Navigate to the Object Tag of the Web Item Table and/or the Web Item Generic Navigation Block (CL_RSR_WW_ITEM_GRID and/or CL_RSR_WWW_ITEM_NAV_BLOCK) and insert the following parameter line into the HTML:















4. Save the changes.

5. Execute the Web template in the browser.

Debug ABAP Class

For test purposes, you can debug the ABAP class. By setting breakpoints in the redefined methods and using the ABAP debugger, you can determine when the individual methods are called and which information they provide. To better understand the individual methods, you can redefine the methods for test purposes. You can set a breakpoint on the individual method without inserting code. You can see all values for the parameters assigned to the method in the debugger. See also Debugger.

...

1. From the SAP Easy Access screen, choose Tools ® ABAP Workbench ® Development ® Class Builder (transaction SE24).

2. Under the object type, enter the name of the ABAP class you created.

3. Choose (Change).

4. Double click on one of the methods in the Methods tab page that you have changed when creating your ABAP class.

5. To set an external (HTTP) breakpoint in your method, in the menu, choose Utilities ® Breakpoints ® Set/Delete.

· Two types of breakpoints exist: External (HTTP) Breakpoints enable debugging in the Web browser. Session Breakpoints enable debugging within transactions. BEx Web Applications are usually executed in the Web browser. The query monitor (RSRT2) transaction allows you to display a BEx Web application in the SAP GUI. Depending on how you call up your Web application you can choose the appropriate breakpoint type.

· To be able to set an external breakpoint, you have to set the external debugging to active. You can set external debugging to active in the menu under Utilities ® Settings... ® ABAP Editor ® Debugging in the External Debugging field. .

6. Close all Web browser windows or query monitor instances (RSRT2) before you call the Web application in which you have included your ABAP class. Otherwise the debugger could not stop at the set breakpoint.

7. Execute the Web application in the Web browser or in the query monitor transaction. You reach the ABAP debugger that stops at the breakpoint you set.

Result

You have created an ABAP class and have redefined one or more methods to specifically change the display of tables and the generic navigation block with the help of the Web Design API for tables.

Thnaks & Regards,

Judith