ALV Grid Control
An easy reference for ALV Grid Control.
Download from Rapidshare or Mediafire.
Course Overview
Table of Contents
Purpose………………………………………………………………………………………………………….1
Prerequisites…………………………………………………………………………………………………..1
A. Introduction……………………………………………………………………………………………….1
B. Building Blocks…………………………………………………………………………………………..1
B.1. General Scheme……………………………………………………………………………………..2
B.2. Building Field Catalog……………………………………………………………………………7
B.2.1. Structure of a Field Catalog………………………………………………………………7
B.2.2. Building Field Catalog Manually………………………………………………………9
B.2.3. Building Field Catalog Semi-Automatically……………………………………..10
B.3. Layout Adjustments……………………………………………………………………………..12
B.4. Printing Adjustments…………………………………………………………………………….14
B.5. Excluding Unwanted Standard Function Buttons……………………………………..15
C. Non-Event Based Additional Functionalities……………………………………………..16
C.1. Changing Field Catalog or Layout after First Display……………………………….16
C.2. Setting Sort Conditions…………………………………………………………………………16
C.3. Filtering………………………………………………………………………………………………17
C.4. Making Selections………………………………………………………………………………..18
C.5. Retrieving and Setting Scroll Status Info…………………………………………………19
C.6. Coloring………………………………………………………………………………………………19
C.6.1. Coloring an Entire Column……………………………………………………………..20
C.6.2. Coloring an Entire Row…………………………………………………………………..20
C.6.3. Coloring Individual Cells………………………………………………………………..21
C.7. Inserting Hyperlinks……………………………………………………………………………..22
C.8. Making Fields as Dropdown Menus……………………………………………………….23
C.9. Managing variants………………………………………………………………………………..24
D. Event Based Additional Functionalities……………………………………………………..25
D.1. General Scheme for the Event Handler Class…………………………………………..26
D.2. Hotspot Clicking………………………………………………………………………………….28
D.3. Double Clicking…………………………………………………………………………………..29
D.4. Pushbuttons On The List……………………………………………………………………….29
D.5. Adding Your Own Functions…………………………………………………………………30
D.6. Overriding Standard Functions………………………………………………………………32
D.7. Context Menus…………………………………………………………………………………….32
D.8. About printing……………………………………………………………………………………..33
D.9. Making ALV Grid Editable…………………………………………………………………..34
D.10. Controlling Data Changes……………………………………………………………………35
D.11. Linking F1 Help to Fields……………………………………………………………………36
D.12. Linking F4 Help to Fields……………………………………………………………………37
E. A Piece of Troubleshooting………………………………………………………………………..3
If you like this post, you may as well like these too:
- ALV Grid ALV Grid Control There are two things which you need to basically understand when working with the ALV Grid. 1. You will need a container CL_GUI_CUSTOM_CONAINER class which will hold...
- Using ALV Grid for Begineers this links only shows to use alv but not to create one. http://www.erpgenie.com/sapgenie/docs/Using%20ALV.pdf...
- Working with ALV Grid for End Users Sometimes, when you are new to SAP and working at an end user level. It gets little difficult to get to know all the hidden gems of SAP. Like ALV...



















Leave a Reply