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

ALV

Former Member
0 Likes
669

1.Wat is the need for ALV reporting ? why not classical report ?

2. what r the FM u used in ALV reporting ?

3. Wat is the use of field catelog ?

4. How to remove search help in ALV report ?

5. did u worked in interactive ALV ? if so tel me the event in interactive ALV..

6. what is SLIS ?

7. tel some important field of field catelog ?

1.Wat is the need for ALV reporting ? why not classical report ?

2. what r the FM u used in ALV reporting ?

3. Wat is the use of field catelog ?

4. How to remove search help in ALV report ?

5. did u worked in interactive ALV ? if so tel me the event in interactive ALV..

6. what is SLIS ?

7. tel some important field of field catelog ?

4 REPLIES 4
Read only

rodrigo_paisante3
Active Contributor
0 Likes
619

Hi,

See this link, you will get some questions answered here.

Try to search about alv in the forum too

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a41...

Regards.

Read only

Former Member
0 Likes
619

1> Reports require loads of formating, column size , rows, index so to reduce the amount of coding we use ALV.

2>FM used are

REUSE_ALV_grid_display

REUSE_ALV__display

alv_catalog_merge

there are many

3>field cat is used to pass data from internal table

4>

5>at user command

6>slis is a type-pool

thnkx

bhanu

Read only

Former Member
0 Likes
619

1. The ALV Grid Control is a tool with which you can output non-hierarchical lists in a

standardized format. The list data is displayed as a table on the screen.

The ALV Grid Control offers a range of interactive standard list functions that users need

frequently (find, sort, filter, calculate totals and subtotals, print, print preview, send list,

export list (in different formats), and so on. These functions are implemented in the

proxy object class. You as the programmer have the possibility to turn off functions not

needed. In most cases the implementations of the standard functions provided by the

control are sufficient. However, if required, you can adjust these implementations to

meet application-specific needs.

You can add self-defined functions to the toolbar, if necessary.

The ALV Grid Control allows users to adjust the layout of lists to meet their individual

requirements (for example, they can swap columns, hide columns, set filters for the

data to be displayed, calculate totals, and so on). The settings (list customizing) made

by a specific user are called a display variant. Display variants can be saved on a userspecific

or on a global basis. If such display variants exist for a list, they can be offered

to the user for selection. If a display variant is set as the default variant, the associated

list is always displayed based on the settings of this variant.

2. REUSE_ALV_LIST_DISPLAY

REUSE_ALV_GRID_DISPLAY

REUSE_ALV_FIELDCATALOG_MERGE

REUSE_ALV_COMMENTARY_WRITE

3. Use of Field Catalog is to determines the technical properties & add formating information of the column.

6. all the definition of internal table, structure, constants are declared in a type-pool called SLIS.

7.fieldcat-fieldname

fieldcat-ref_fieldname

fieldcat-tabname

fieldcat-seltext_m

5. Form user_command using r_ucomm like sy-ucomm rs_selfield type slis_selfield.

case r_ucomm.

when '&IC1'

Read only

Former Member
0 Likes
619

<b>What is ALV programming in ABAP? When is this grid used in ABAP? </b>

<b>ALV is Application List viewer.</b>

Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.

In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.

The report output can contain up to 90 columns in the display with the wide array of display options.

<b>

The commonly used ALV functions used for this purpose are;</b>

<b>1. REUSE_ALV_VARIANT_DEFAULT_GET

2. REUSE_ALV_VARIANT_F4

3. REUSE_ALV_VARIANT_EXISTENCE

4. REUSE_ALV_EVENTS_GET

5. REUSE_ALV_COMMENTARY_WRITE

6. REUSE_ALV_FIELDCATALOG_MERGE

7. REUSE_ALV_LIST_DISPLAY

8. REUSE_ALV_GRID_DISPLAY

9. REUSE_ALV_POPUP_TO_SELECT</b>

Purpose of the above Functions are differ not all the functions are required in all the ALV Report.

But either no.7 or No.8 is there in the Program.

How you call this function in your report?

After completion of all the data fetching from the database and append this data into an Internal Table. say I_ITAB.

Then use follwing function module.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' 
       EXPORTING 
            I_CALLBACK_PROGRAM       = 'Prog.name' 
            I_STRUCTURE_NAME         = 'I_ITAB' 
            I_DEFAULT                = 'X' 
            I_SAVE                   = 'A' 
       TABLES 
            T_OUTTAB                 = I_ITAB. 
  IF SY-SUBRC <> 0. 
    WRITE: 'SY-SUBRC: ', SY-SUBRC . 
  ENDIF. 
ENDFORM.                    " GET_FINAL_DATA

<b>Classical Reports</b>

These are the most simple reports. Programmers learn this one first. It is just an output of data using the Write statement inside a loop.

Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT.

Events In Classical Reports.

INTIALIZATION: This event triggers before selection screen display.

AT-SELECTION-SCREEN: This event triggers after proccesing user input still selection screen is in active mode.

START OF SELECTION: Start of selection screen triggers after proceesing selection screen.

END-OF-SELECTION : It is for Logical Database Reporting.

reward points if it is usefull ...

Girish