2021 Jan 12 9:33 AM
Is it necessary to learn alv reports before learning OOALV ?
Is it necessary to learn alv reports before learning OOALV ?
2021 Jan 12 9:53 AM
Hi,
No, Not required. Straight away you can learn OOALV, no prerequisite.
Thanks
Sathish Kumar Sidhaiyan
2021 Jan 12 11:12 AM
Sample Code:
TABLES MARA.
data : it_mara TYPE TABLE OF MARA.
data : o_alv TYPE REF TO cl_salv_table.
START-OF-SELECTION.
select * from MARA INTO TABLE it_mara UP TO 100 ROWS.
call METHOD cl_salv_table=>factory
* EXPORTING
* list_display = if_salv_c_bool_sap=>false " ALV Displayed in List Mode
* r_container = " Abstract Container for GUI Controls
* container_name =
IMPORTING
r_salv_table = o_alv " Basis Class Simple ALV Tables
CHANGING
t_table = it_mara
.
*CATCH cx_salv_msg. " ALV: General Error Class with Message
*CATCH cx_salv_msg. " ALV: General Error Class with Message
o_alv->display( ).
2021 Jan 12 6:36 PM
I wouldn't be able to tell anybody if it's worth learning OOALV or ALV reports (unprecise terms, don't you mean CL_SALV_* classes A.K.A. ALV Object Model, and function modules REUSE_ALV_* function modules), it depends on the context!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |