SAP - Simple Re-Usable ALV Grid Display Report Program - Reusable Asset

Here's a simple way of displaying data in ALV Grid Display. First create a function module as shown below: Now you can call this function module as shown below SAMPLE REPORT PROGRAM: REPORT ztest_simple_alv_report. DATA: gt_mara TYPE TABLE OF mara, gwa_mara TYPE mara. SELECT * FROM mara UP TO 10 ROWS INTO TABLE gt_mara. CALL FUNCTION 'ZDISPLAY_ALV' EXPORTING * I_START_COLUMN = 25 * I_START_LINE = 6 * I_END_COLUMN = 120 * I_END_LINE = 20 * I_TITLE = 'ALV' * I_POPUP = ' ' * i_pf_status = 'STANDARD' i_program = sy-repid TABLES it_alv = gt_mara. Output Screen: If you want to pass your own custom PF-STATUS, Modify the program as shown below: Create your own custom PF-STATUS for the program and pass i to the function module as shown below. (In this case we created a PF-STATUS named 'STANDARD' for this sample program) REPORT ztest_simple_alv_report. DATA: g...