* Include for all style values
INCLUDE.
INCLUDE
DATA: i_flight TYPE STANDARD TABLE OF sflight.
DATA: i_fields TYPE lvc_t_fcat.
FIELD-SYMBOLS:
SELECT * FROM sflight
INTO TABLE i_flight
UP TO 100 ROWS.
IF sy-subrc = 0.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'SFLIGHT'
CHANGING
ct_fieldcat = i_fields
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3
.
IF sy-subrc = 0.
IF sy-tabix > 4.
ELSE.
ENDIF.
ENDLOOP. ENDIF.
* Calling the FM to display ALV report
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_structure_name = 'SFLIGHT'
i_grid_title = 'Style demo'(001)
it_fieldcat_lvc = i_fields
TABLES
t_outtab = i_flight
EXCEPTIONS
program_error = 1
OTHERS = 2.
ALSO READ:
- ALV Data In Different Languages.
- ALV Hierarchical For Tables.
- Display ALV List/Grid Sub-Total & Total.
- Interactive ALV On T-Codes.
..... Back To Index On ALV List/ Grid Display.
..... Back To MAIN INDEX.
No comments:
Post a Comment