Documente Academic
Documente Profesional
Documente Cultură
BY ----Arjun
Review
ALV Reports are mainly used to display the data in the form of either
Grid or List Format with good Look and Feel.
Asc, Desc,
Filtering,
Downloading,
Changing Layout,
sending Mail…..etc
Interactive ALV
hierarchical ALV
Blocked ALV
SAP AG 2001, Smart Forms - the Form Printing Solution,
Claudia Binder / Jens Stumpe 4
ALV WITH STRUCTURES
STEPS
Structure Name
Program Name
Itab Name
SAP AG 2001, Smart Forms - the Form Printing Solution,
Claudia Binder / Jens Stumpe 6
ALV WITH FIELDCATELOG
1. COL_POS = 1.
C – Indicates color
X – Color Numbers
Y – Backgroundcolor – 1 On BG color
0 off BG color
Generation of Fieldcatelog :
1)Manually
2)Automatically by using FM
Declare the internal table and work area for the field catalog
Fill the fieldcatelog Itab with all fields and their corresponding
properties.
wa_fcat-col_pos = 1. "v_pos.
wa_fcat-fieldname = 'KUNNR'.
*wa_fcat-tabname = 'I_KNA1'.
WA_FCAT-SELTEXT_L = 'CUST_NUM'.
*WA_FCAT-EDIT = 'X'.
WA_FCAT-EMPHASIZE = 'C610'.
WA_FCAT-REF_TABNAME = 'KNA1'.
Call the function module and Export the field catalog in internal table
as exporting parameters to IT_FCAT.
But this is obsolete because, the function module uses the old syntax for
declaring internal tables
I.e. the internal table should be created as below and all the fields
in the internal table must be declared using LIKE statement not the TYPE
statement.
WA_FCAT-FIELDNAME = ‘MTART’ OR
WA_FCAT-FIELDNAME = ‘MBRSH’ OR
WA_FCAT-FIELDNAME = ‘MEINS’ .
Steps:
wa_layout-zebra = 'X'.
wa_layout-colwidth_optimize = 'X'.
* wa_layout-edit = 'X'.
* wa_layout-no_vline = 'X'.
wa_layout-no_hline = 'X'.
WA_FCAT-COL_POS = ’5’.
WA_FCAT-FIELDNAME = 'NETWR'.
WA_FCAT-SELTEXT_M = 'NETPRICE‘.
WA_FCAT-DO_SUM = 'X'.
APPEND WA_FCAT TO I_FCAT.
WA_SORT-spos = ‘1’.
WA_SORT-FIELDNAME = 'VBELN'.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOT = 'X'.
APPEND WA_SORT TO I_SORT.
Declare the internal table and work area for the sorting
WA_SORT-FIELDNAME = 'VBELN'.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOT = 'X'.
APPEND WA_SORT TO I_SORT.