Application Development 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: 

ALV

Former Member
0 Kudos
249

hi guys can any1 give me th tips on ALV reports.

for wt type of report whic attribute shld b edited on so on..

if its lik a list of fnctn modules wit its exact attribute modifications , wil b more helpfull guys.

3 REPLIES 3

uwe_schieferstein
Active Contributor
0 Kudos
72

Hello Sakthi

I have posted several simplified version of ALV reports showing various aspects of ALV programming. Simply search the <i>ABAP forums</i> for <b>ZUS_SDN</b> (some are listed below):

Regards

Uwe

Former Member
0 Kudos
72

refer this site.

/message/3815745#3815745 [original link is broken]

Former Member
0 Kudos
72

<b>What is ALV Programming?</b>

<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>


"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

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.

<b>How you call this function in your report?</b>

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

if you want more details ... then definitely you have to go through more theory on this link

<a href="http://">http://help.sap.com/saphelp_nw04/helpdata/en/66/bc7aab43c211d182b30000e829fbfe/frameset.htm</a>

reward points if it is usefull .....

Girish