2008 Aug 19 7:05 AM
Hi,
I am learning ABAP Objects. I want to create some report using standard classes. I know how to create ALV report. Can someone give me any idea or a task to work on a report or anything using standard classes. I will learn easily if i have some task on hand.
Give me some task and give me some standard classes so that i can work on them.
Thanks.
<Subject edited. Please use a meaningful subject as per the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]>
Edited by: Mike Pokraka on Aug 19, 2008 10:31 AM
Hi Ibrahim
To know oops standard classes refer below link,it may useful to you. http://saptechnical.com/Tutorials/OOPS/Enhancement/class.htm
Regards,
Syf
2008 Aug 19 8:10 AM
Hi Ibrahim ,
This is a simple task try it out
Display purchase order details in the basic list of ALV grid on click of a button in toolbar, display details in secondary list on selection of particular record in basic list.
For handling the button create events in ur program using local class. syntax is
Statement used to declare the instance method meth as an event handler.
METHODS meth ABSTRACT FOR EVENT evt OF {class|intf} [IMPORTING p1 p2 ... ].
Event handlers are special methods that are declared with the addition FOR EVENT ... OF to the METHODS statement. Instead of calling them directly with CALL METHOD, they can also be called indirectly with RAISE EVENT. They can only be executed if an event handler exists with SET HANDLER.
RAISE EVENT
SET HANDLER - FOR
SET HANDLER handler1 handler2 ... FOR { oref |{ALL INSTANCES} } [ACTIVATION act].
classes required,
cl_gui_custom_container
cl_gui_alv_grid
cl_gui_custom_container:This control hosts other controls in a logical collection and provides a physical area for displaying them.
You can display logo on your screen using the custom control function. A custom control is an area on the screen, created using the screen painter. To link a custom control to a container control, pass the custom control name to the CONTAINER_NAME parameter of the container control constructor when you instantiate it.
Eg: container EXPORTING container_name = u2018CONTAINER'
cl_gui_alv_grid:
1. CONSTRUCTOR : Generate an instance of the ALV Grid Control.This method is called automatically if you use CREATE OBJECT to create an object of class CL_GUI_ALV_GRID .
When the control is generated, it is created on the frontend and linked to a container control.
2. set_table_for_first_display : Display an output table in the control. Display an output table in the ALV Grid Control instance. In the call sequence, you must specify either a reference structure of the Data Dictionary or a suitable field catalog. Before execution, you can use optional parameters to load a layout, sort the table by fields, set a filter for columns and define properties of the grid control.
3. REFRESH_TABLE_DISPLAY : Refresh the data displayed in the control .You use this method to refresh the output table in the grid control. This is necessary if you change the display of the data by means of methods (for example, using set_frontend_layout), or if you want to display new data selected in the same ALV Grid Control.
Regards,
Vijetha.
2008 Aug 19 8:14 AM
2008 Aug 19 8:26 AM
Vijetha and Varun,
Thanks for replying. I have mentioned in my post that i know how to create an ALV. I want a task other than ALV report. Any other task using standard classes ?
Hope someone would reply.
Thanks.
2008 Aug 19 8:42 AM
IF you go and check ... there are other details also ..
For e.g. A HTML control .. A docking control... a Splitter control !!
And then there is something called exploration !! Did you try that ?
2008 Aug 19 10:47 AM
Hi Ibrahim
To know oops standard classes refer below link,it may useful to you. http://saptechnical.com/Tutorials/OOPS/Enhancement/class.htm
Regards,
Syf
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |