Implement Alv Using REUSE_ALV_GRID_DISPLAY .

REUSE_ALV_GRID_DISPLAY :This Function Module Is Used To Display Result in Grid .
               
Field Catalog :   It is Interface Between Final Internal table and Output .
  
SLIS is the type library for ALV grid. .If you'll use the ALV you have to add TYPE-POOLS : SLIS. command at the beginning of your code. 
slis_t_fieldcat_alv is containing "_t_"  It means that it is an internal table and slis_fieldcat_alv is header line of that.

Scenario :- Get Details Of Document Fields For Given Data Range .

Procedure :

Step 1 . Create Selection screen , Internal tables, variable , Message class.
                                           Selection screen



                                                          Type Tables 



                                                    Final Type Table 



                        Internal Table & Work Area Associated To Type Table.


Step 2. Selection Screen Do validation.



Step 3. . Fetch data from database table into Internal table.



Step 4. Club all data from internal table into final internal table.


Step 5. Define field catalog & build it. (For SELTEXT_M or Default Field Name,
           Go To SE11 , Find Out For Each Field ).


Step 6. Call function module  "REUSE_ALV_GRID_DISPLAY" Pass final 
           Internal  Table , Internal table,Program name field catalog.
      

Step 7. Save , Check & Activate . Execute. Provide Values & Execute.


Step 8. Output .





























0 comments:

Post a Comment