2007 Aug 24 5:59 AM
Can any one tell alv in oops concepts? What is the basic differences in the function modules of alv and oops alv ?
2007 Aug 24 6:08 AM
Hi,
The first major difference between FM ALV and OOPS ALV is that in the later you will have to design additional screens to hold the ALV.
During the design of the screens, we need to embed a custome container. After a customer container is embedded in the program we need to attach the ALV class to this container.
Thanks...
Preetham S
Hi,
The first major difference between FM ALV and OOPS ALV is that in the later you will have to design additional screens to hold the ALV.
During the design of the screens, we need to embed a custome container. After a customer container is embedded in the program we need to attach the ALV class to this container.
Thanks...
Preetham S
2007 Aug 24 6:08 AM
Hi,
The first major difference between FM ALV and OOPS ALV is that in the later you will have to design additional screens to hold the ALV.
During the design of the screens, we need to embed a custome container. After a customer container is embedded in the program we need to attach the ALV class to this container.
Thanks...
Preetham S
2007 Aug 24 6:18 AM
hi
just refer to the link below
http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g
<b>step by step procedure with screen shots</b>
regards
ravish
<b>plz dont forget to reward points if helpful</b>
2007 Aug 24 6:39 AM
Manas,
The major difference b/w ALV thru FM and classes are:
Thru FM, ALV appears in a full screen mode. When you are using classes, you need to create a screen. In the screen you have to include a custom container and this custom container will hold the alv grid. remember grid is a control...
For examples on Class based ALV reporting... you can refer to any report in your system starting with BCALV* say for eg: BCALV_GRID_04
<i><b>Please reward points if you find this reply helpful.</b></i>
Balaji
2007 Aug 24 7:02 AM
hi manas,
using oops alv u can Display non-hierarchical lists consistently with a modern design ,
you can use Use typical list functions - such as sorting and filtering - without extra programming effort ,
Adapt predefined list functions and their enhancements and the Program responses to user actions (such as double-clicking a line) individually
rewards are helpful .
2007 Aug 24 7:08 AM
Hello,
Please regger the links
ALV
1. Please give me general info on ALV.
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
2. How do I program double click in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
3. How do I add subtotals (I have problem to add them)...
http://www.sapfans.com/forums/viewtopic.php?t=20386
http://www.sapfans.com/forums/viewtopic.php?t=85191
http://www.sapfans.com/forums/viewtopic.php?t=88401
http://www.sapfans.com/forums/viewtopic.php?t=17335
4. How to add list heading like top-of-page in ABAP lists?
http://www.sapfans.com/forums/viewtopic.php?t=58775
http://www.sapfans.com/forums/viewtopic.php?t=60550
http://www.sapfans.com/forums/viewtopic.php?t=16629
5. How to print page number / total number of pages X/XX in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
http://www.sapfans.com/forums/viewtopic.php?t=64320
http://www.sapfans.com/forums/viewtopic.php?t=44477
7. How can I set the cell color in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=52107
8. How do I print a logo/graphics in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=81149
http://www.sapfans.com/forums/viewtopic.php?t=35498
http://www.sapfans.com/forums/viewtopic.php?t=5013
9. How do I create and use input-enabled fields in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=84933
http://www.sapfans.com/forums/viewtopic.php?t=69878
10. How can I use ALV for reports that are going to be run in background?
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
11. How can I display an icon in ALV? (Common requirement is traffic light icon).
http://www.sapfans.com/forums/viewtopic.php?t=79424
http://www.sapfans.com/forums/viewtopic.php?t=24512
12. How can I display a checkbox in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919
Go thru these programs they may help u to try on some hands on
ALV Demo program
BCALV_DEMO_HTML
BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
BCALV_GRID_DEMO Simple ALV Control Call Demo Program
BCALV_TREE_DEMO Demo for ALV tree control
BCALV_TREE_SIMPLE_DEMO
BC_ALV_DEMO_HTML_D0100
Please refer
For object oriented concepts refer this link https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c4...
Reward if useful..
regards,
Lijo
2007 Aug 24 7:15 AM
and one more major difference is ...
when u call alv function modules ... an instance of its function group plus its data, is loaded into the memory area of the internal session. An ABAP program can load several instances by calling function modules from different function groups.
The main difference between real object orientation and function groups is that although a program can work with the instances of several function groups at the same time, it cannot work with several instances of a single function group. Suppose a program wanted to use several independent counters, or process several orders at the same time. In this case, you would have to adapt the function group to include instance administration, for example, by using numbers to differentiate between the instances.
In practice, this is very awkward. Consequently, the data is usually stored in the calling program, and the function modules are called to work with it (structured programming). One problem is, for example, that all users of the function module must use the same data structures as the function group itself. Changing the internal data structure of a function group affects many users, and it is often difficult to predict the implications. The only way to avoid this is to rely heavily on interfaces and a technique that guarantees that the internal structures of instances will remain hidden, allowing you to change them later without causing any problems.
This requirement is met by object orientation. ABAP Objects allows you to define data and functions in classes instead of function groups. Using classes, an ABAP program can work with any number of instances (objects) based on the same template.
Instead of loading a single instance of a function group into memory implicitly when a function module is called, the ABAP program can now generate the instances of classes explicitly using the new ABAP statement CREATE OBJECT. The individual instances represent unique objects. You address these using object references. The object references allow the ABAP program to access the interfaces of the instances.
ABAP programs such as executable programs..function modules...
usually have a declaration part in which the global data for the program is defined. This data is visible in all of the processing blocks in the program.
class pools on the otherhand have a definition part, in which you can define data and object types, but no data objects or field symbols. The types that you define in a class pool are only visible in the implementation part of the global class.
rewards are helpful
Message was edited by:
raam
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |