Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
____________________________________________________
Short text
Functionality
Supports the creation of the field catalog for the ALV function modules based either on a
structure or table defined in the ABAP Data Dictionary, or a program-internal table.
The program-internal table must either be in a TOP Include or its Include must be
specified explicitly in the interface.
The variant based on a program-internal table should only be used for rapid prototyping
since the following restrictions apply:
• Performance is affected since the code of the table definition must always be read
and interpreted at runtime.
If the field catalog contains more than 90 fields, the first 90 fields are output in the list by
default whereas the remaining fields are only available in the field selection.
If the field catalog is passed with values, they are merged with the 'automatically' found
information.
Parameter
I_PROGRAM_NAME
I_INTERNAL_TABNAME
I_STRUCTURE_NAME
I_CLIENT_NEVER_DISPLAY
I_INCLNAME
I_BYPASSING_BUFFER
I_BUFFER_ACTIVE
CT_FIELDCAT
Exceptions
INCONSISTENT_INTERFACE
PROGRAM_ERROR
Function group
SALV
Program from which the function module is called and which contains the exit routines.
The program should always be a Report, Function group, Module pool or Form routine
pool (not an Include).
Return ->
Internal table declaration program
Return ->
Output table name
Description
Return ->
Structure name (structure, table, view)
Description
If the internal output table is defined via an ABAP/4 Dictionary structure (INCLUDE
STRUCTURE struct or LIKE struct), the field catalog can be built-up automatically by
passing the structure name.
The field catalog is internally built up for this structure as follows:
• All fields are in the list (NO_OUT = SPACE) except fields of data type CLNT.
• The key fields of the Dictionary structure are also key fields in the field catalog.
• Dictionary references to unit fields are copied if the reference fields are in the
structure.
For further information about the automatic build-up of the field catalog, see the
documentation of the function module REUSE_ALV_FIELDCATALOG_MERGE.
Return ->
Internal output table structure name
Description
Value Range
'X', SPACE
SPACE: client fields (type CLNT) in the structure passed are flagged as technical (=> no
screen output) in the field catalog.
Return ->
Hide client fields
Description
If the list output structure data declaration is not in the assigned TOP Include, the Include
name can be specified here if no structure is specified.
Return ->
Data declaration include name
Return ->
Field catalog with field descriptions
Field catalog containing descriptions of the list output fields (usually a subset of the
internal output table fields).
The field catalog for the output table is built-up in the caller's coding. The build-up can
be completely or partially automated by calling the
REUSE_ALV_FIELDCATALOG_MERGE module
The minimal field catalog is documented under 'default'. The caller can use the other
optional parameters to assign output attributes to a field which differ from the default.
A field catalog need not be built-up and passed explicitly only under the following
conditions:
• The internal table to be output has the same structure as a Data Dictionary
structure which is referred to in the internal table declaration using LIKE or
INCLUDE STRUCTURE.
Positioning
value set: 0, 1 - 3
Only relevant if the list output is to be multi-line (two or three lines) by default.
A multi-line list can also be defined by the user interactively if the default list is
one-line.
The parameter specifies the relative output line of the column in a multi-line list.
value set: 0, 1 - 60
only relevant when the default relative column positions differ from the field
catalog field sequence.
The parameter specifies the relative column position of the field in the list output.
The column order can be changed interactively by the user. If this parameter is
initial for all field catalog entries, columns appear in the field catalog field
sequence.
Identification
Each internal output table sum or quantity field whose decimal places are to be
formatted appropriately for the unit in the list must follow the convention:
o There is a field in the internal output table which contains the associated
unit.
o There is also an entry in the field catalog for the unit field.
(If the unit is not to appear as a column in the list, and cannot be
interactively displayed as a column, e.g. because it is always unambiguous
and is therefore explicitly output by the caller in the list header, the field
catalog units field entry can take the parameter FIELDCAT-TECH = 'X'.
o an initialized field with a link to a non-initial unit is output as '0' for the
unit (if FIELDCAT-NO_ZERO is initial). When this field is summed, this
unit affects whether the units are homogeneous.
o When non-initial fields with an initial unit are summed, the unit SPACE is
considered to be a unit.
o x: color number
o y: bold
o z: inverse
• icon
• symbol
• just (justification)
Texts
The following text parameters should be specified for program fields without a
Data Dictionary reference.
The texts are taken from the Data Dictionary for fields with a Data Dictionary
reference. If this is not desired, the text parameters can also be specified. The Data
Dictionary texts are then ignored.
If the user changes the column width interactively, the column header text with
the appropriate length is always used.
The interactive function 'Optimize column width' takes account of both the field
contents and the column headers:
if all field contents are shorter than the shortest column header, the column width
depends on the column header.
The 'long field label' is also used in display variant definition, sort, etc. popups.
• reptext_ddic (header)
o FIELDCAT-EDIT_MASK = '==conv'
see also the documentation of the parameter FIELDCAT-EDIT_MASK
o FIELDCAT-INTLEN = n
see also the documentation of the parameter FIELDCAT-INTLEN
o FIELDCAT-EDIT_MASK = '==conv'
see also the documentation of the parameter FIELDCAT-EDIT_MASK
o FIELDCAT-DDIC_OUTPUTLEN = n
see also the documentation of the parameter FIELDCAT-
DDIC_OUTPUTLEN
Others
'X' = When the Report/Report interface is called, the value of this field is passed
in the selected interface start record as a selection criterion.
Default
• The following entries are usually sufficient for internal table fields with a
reference to a field defined in the Data Dictionary :
o fieldname
o ref_tabname
Notes:
If no relative column position (COL_POS) is specified, the fields are output in the list in
the order in which they were added to the field catalog.
REF_FIELDNAME need only be specifid when the name of the internal table field
differs from the name of the referred Data Dictionary field.
Priority rule:
Entries in the field catalog have priority over differing entries in the Data Dictionary.
• The following entries are usually sufficient for internal table fields without a
reference to the Data Dictionary (program fields):
o fieldname
o outputlen
o datatype
o seltext_s
o seltext_m
o seltext_l
Notes:
F1 help can be provided for program fields by assigning a data element to the parameter
ROLLNAME.
Return ->
Field catalog with field descriptions