Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

New ALV Object Model

Former Member
0 Likes
708

Hi guys i want the complete documentation for the following

The Overview of the New ALV Object Model

·Types of ALV display

·Main Classes of the ALV Model

·Structure of Programs that Use this Model

Thanks in advance

Vishnu. R

2 REPLIES 2
Read only

Former Member
0 Likes
404

Hi,

See the help http://help.sap.com/saphelp_nw04/helpdata/en/c3/d023410f6fb167e10000000a155106/frameset.htm

/people/sap.user72/blog/2005/09/14/a-new-approach-to-alv-programming

Examples u can see by Transaction DWDM, Under grid controls...

Also check out all report programs that contain BCALV_GRID*

BCALV_GRID_DEMO being the simple one..

Regards

Kiran Sure

Read only

geetha_k
Active Participant
0 Likes
404

Hi,

Main ALV Classes

Use

You are using the ALV object model with one of the following main ALV classes:

· CL_SALV_TABLE for the simple, two-dimensional table

· CL_SALV_HIERSEQ_TABLE for the hierarchical-sequential list

· CL_SALV_TREE for the tree structure

If you have decided on one of the ALV tools, you use the corresponding main ALV class to make all the settings that you need for the ALV output

Structure:

-

-


In the ALV main classes, you will find somewhat uniform methods that you use to provide the required specifications:

Minimum Information

In each of the three main ALV classes, you must call at least the following methods to obtain your desired ALV output:

· You instantiate the main ALV class:

¡ You define the internal data table that provides the structure and content of the ALV output, as needed.

¡ You define which display type you want to use for the ALV output.

· You display the ALV output on your screen.

Optional Methods in All Main ALV Classes

You can also make a variety of settings to control the ALV output.

The following list includes some examples for methods that you are able to use in all three main ALV classes:

¡ GET_COLUMNS

You get a reference to the individual column objects of the ALV output and make all the technical settings for a column.

¡ GET_FUNCTIONS

You get a reference to the function object of the ALV output and use it to define which functions the user is able to use when working with ALV.

¡ GET_EVENT

You get a reference to the events that you are able to process in the ALV output.

Depending on the main ALV class in which you are using these methods, they return objects of different types.

Optional, Class-Specific Methods

The three main ALV class are based on various data models. This means you can also make various settings, depending on which ALV tool you are using.

The following list includes some examples for methods that you are able to use only in specific main ALV classes:

¡ GET_LEVEL

This method can only be found in the main ALV class CL_SALV_HIERSEQ_TABLE. There you get a reference to the objects in the two hierarchy levels.

¡ GET_NODES

This method can only be found in the main ALV class CL_SALV_TREE. There you get a reference to the node objects (rows) of the tree structure.

¡ GET_SORTS

You are only able to sort in the simple, two-dimensional table or in the hierarchical-sequential list. This method is not available in the tree structure.

The Getting and Modifying Subobjects for a Main Class chapter includes the class diagrams for the three main ALV classes, along with information on the getter methods that you use to retrieve the respective objects.